def initialize(context): """ """ from constants import PERMISSION_ADD_SITE, PERMISSION_ADD_FOLDER from naaya.content.base import discover import NySite import NyFolder #register classes context.registerClass( NySite.NySite, permission = PERMISSION_ADD_SITE, constructors = ( NySite.manage_addNySite_html, NySite.manage_addNySite, ), icon = 'www/Site.gif', ) context.registerClass( NyFolder.NyFolder, permission = PERMISSION_ADD_FOLDER, constructors = ( NyFolder.manage_addNyFolder_html, NyFolder.folder_add_html, NyFolder.addNyFolder, ), icon = 'www/NyFolder.png' ) #initialize NaayaContent discover.initialize(context) from Products.NaayaCore.LayoutTool.DiskFile import allow_path allow_path('Products.Naaya:skel/layout/')
def initialize(context): """ """ managers_initialize(context) #register classes context.registerClass( NySite.NySite, permission = PERMISSION_ADD_SITE, constructors = ( NySite.manage_addNySite_html, NySite.manage_addNySite, ), icon = 'www/Site.gif', ) context.registerClass( NyFolder.NyFolder, permission = PERMISSION_ADD_FOLDER, constructors = ( NyFolder.manage_addNyFolder_html, NyFolder.folder_add_html, NyFolder.addNyFolder, ), icon = 'www/NyFolder.gif' ) #initialize NaayaContent discover.initialize(context)
def initialize(context): """ """ from constants import PERMISSION_ADD_SITE, PERMISSION_ADD_FOLDER from naaya.content.base import discover import NySite import NyFolder #register classes context.registerClass( NySite.NySite, permission=PERMISSION_ADD_SITE, constructors=( NySite.manage_addNySite_html, NySite.manage_addNySite, ), icon='www/Site.gif', ) context.registerClass(NyFolder.NyFolder, permission=PERMISSION_ADD_FOLDER, constructors=( NyFolder.manage_addNyFolder_html, NyFolder.folder_add_html, NyFolder.addNyFolder, ), icon='www/NyFolder.png') #initialize NaayaContent discover.initialize(context) from Products.NaayaCore.LayoutTool.DiskFile import allow_path allow_path('Products.Naaya:skel/layout/')