Source code for ploneintranet.workspace.config
INTRANET_USERS_GROUP_ID = "All Intranet Users"
GROUPINGS = ["label", "author", "type"]
DOCUMENT_TYPE = "ploneintranet.document_type"
TEMPLATES_FOLDER = "templates"
PDF_VERSION_KEY = "pi.pdfversion"
PREVIEW_IMAGES_KEY = "pi.previewimages"
THUMBNAIL_KEY = "pi.thumbnails"
# Mime types
PPT = (
"application/vnd.openxmlformats-officedocument.presentationml.template",
"application/vnd.openxmlformats-officedocument.presentationml" ".slideshow",
"application/vnd.openxmlformats-officedocument.presentationml" ".presentation",
"application/vnd.ms-powerpoint",
"application/vnd.openxmlformats-officedocument.presentationml.slide",
)
DOC = (
"application/msword",
"application/vnd.ms-word.document.macroEnabled.12",
"application/msword-template",
"application/vnd.openxmlformats-officedocument.wordprocessingml" ".document",
"application/vnd.openxmlformats-officedocument.wordprocessingml" ".template",
)
XLS = (
"application/vnd.ms-excel",
"application/vnd.ms-excel.addin.macroEnabled.12",
"application/vnd.ms-excel.sheet.binary.macroEnabled.12",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.openxmlformats-officedocument.spreadsheetml.template",
)
PDF = ("application/pdf", "application/x-pdf", "image/pdf")
ZIP = ("application/zip", "application/x-zip-compressed")
URI = ("text/x-uri",)
NEWS = ("message/news",)
[docs]class SecretWorkspaceNotAllowed(Exception):
pass