from Products.CMFCore import permissions try: from Products.CMFPlone.migrations import v2_5 except ImportError: PLONE25 = 0 PLONE21 = 1 # This is ok since we've never supported anything below Plone 2.1 else: PLONE25 = 1 PLONE21 = 0 PROJECTNAME = "Koolielu" SKINS_DIR = 'skins' SKIN_NAMES = ['Koolielu',] BASE_SKIN = 'Plone Default' SKIN_COMMON_FOLDERS=['common',] GLOBALS = globals() # permissions ADD_CONTENT_PERMISSION = permissions.AddPortalContent TABS = [ ['index_html', 'portal_tabs', '<<', 'string:${globals_view/navigationRootUrl}'], ['news', 'portal_tabs', 'Uudised', ''], ['artiklid', 'portal_tabs', 'Artiklid', ''], ['aineopetajale', 'portal_tabs', 'Aineõpetajale'.decode('utf-8'), ''], ['kursused', 'portal_tabs', 'Kursused', ''], ['juridica', 'portal_tabs', 'Juridica', ''], ['vestlusring', 'portal_tabs', 'Vestlusring', ''] ] from types import UnicodeType def to_unicode(s,encoding='utf-8'): """Convenience method for converting strings to unicode.""" us=None if not s: us=u'' elif type(s)==UnicodeType: us=s else: us=unicode(s,encoding) return us