def __init__(self, oid, **kw): """ """ ATFolder.__init__(self, oid, **kw) self.plomino_version = VERSION self.setStatus("Ready") PlominoAccessControl.__init__(self) manage_addCMFBTreeFolder(self, id='plomino_documents') directlyProvides(self.documents, IHideFromBreadcrumbs)
def __init__(self, oid, **kw): """ """ ATFolder.__init__(self, oid, **kw) self.plomino_version = VERSION self.setStatus("Ready") PlominoAccessControl.__init__(self) manage_addCMFBTreeFolder(self, id='plomino_documents') directlyProvides(self.documents, IHideFromBreadcrumbs)
def at_post_create_script(self): """ DB initialization Standard AT hook. """ self.initializeACL() index = PlominoIndex(FULLTEXT=self.FulltextIndex) self._setObject('plomino_index', index) for i in ['resources', 'scripts']: manage_addCMFBTreeFolder(self, id=i)
def at_post_create_script(self): """ DB initialization Standard AT hook. """ self.initializeACL() index = PlominoIndex(FULLTEXT=self.FulltextIndex) self._setObject('plomino_index', index) for i in ['resources', 'scripts']: manage_addCMFBTreeFolder(self, id=i)
def afterDatabaseCreated(obj, event): obj.plomino_version = VERSION obj.setStatus("Ready") manage_addCMFBTreeFolder(obj, id='plomino_documents') directlyProvides(obj.documents, IHideFromBreadcrumbs) obj.ACL_initialized = 0 obj.UserRoles = {} obj.initializeACL() index = PlominoIndex(FULLTEXT=obj.fulltextIndex) obj._setObject('plomino_index', index) for i in ['resources', 'scripts']: manage_addCMFBTreeFolder(obj, id=i) # Due to plone.protect we need to ensure the resource directory is created write_on_read = get_resource_directory()
def afterDatabaseCreated(obj, event): obj.plomino_version = VERSION obj.setStatus(_("Ready")) manage_addCMFBTreeFolder(obj, id='plomino_documents') directlyProvides(obj.documents, IHideFromBreadcrumbs) obj.ACL_initialized = 0 obj.UserRoles = {} obj.initializeACL() index = PlominoIndex(FULLTEXT=obj.fulltextIndex) obj._setObject('plomino_index', index) for i in ['resources', 'scripts']: manage_addCMFBTreeFolder(obj, id=i) # Add permission to avoid manual confirmation dialog if not hasattr(obj, 'specific_rights'): obj.specific_rights = {'specific_deletedocument': 'PlominoAuthor'} # Due to plone.protect we need to ensure the resource directory is created write_on_read = get_resource_directory()
def __init__(self): Container.__init__(self) manage_addCMFBTreeFolder(self, id='resources') manage_addCMFBTreeFolder(self, id='dtcolumns')
def __init__(self): Container.__init__(self) manage_addCMFBTreeFolder(self, id='resources') manage_addCMFBTreeFolder(self, id='dtcolumns')