INTRANET_USERS_GROUP_ID = 'All Intranet Users'
DYNAMIC_GROUPS_PLUGIN_ID = 'ploneintranet_workspace_dynamic_groups'
GROUPINGS = ['label', 'author', 'type']
DOCUMENT_TYPE = 'ploneintranet.document_type'
TEMPLATES_FOLDER = 'templates'

# Mime types

PPT = ('application/vnd.openxmlformats-officedocument.presentationml.template',
       'application/vnd.openxmlformats-officedocument.presentationml'
       '.slideshow',
       'application/vnd.openxmlformats-officedocument.presentationml'
       '.presentation',
       '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')


class SecretWorkspaceNotAllowed(Exception):
    pass
