docs: def pub_view(request, docid, configuration):
      """The initial view, does not provide the document content yet"""
      if 'autodeclare' in settings.CONFIGURATIONS[configuration]:
          for annotationtype, set in settings.CONFIGURATIONS['configuration']['autodeclare']:
              try:
                  r = flat.comm.query(request, "USE pub/" + docid + " DECLARE " + annotationtype + " OF " + set)
              except Exception as e:
                  return fatalerror(request,e)
  
      return initdoc(request, 'pub',docid, 'editor', 'editor.html', configuration=configuration)