'permissions': (Permissions.access_contents_information, ), 'category': 'object' }, { 'id': 'local_roles', 'name': 'Local Roles', 'action': 'folder_localrole_form', 'permissions': (CMFCorePermissions.ManageProperties, ), 'category': 'object' }, { 'id': 'render_html', 'name': 'Render HTML', 'action': 'render_html', 'permissions': (CMFCorePermissions.ManageProperties, ), 'category': 'object' }) factory_type_information = { 'id': 'LampadasDocument', 'description': """\ Lampadas documents can hold source files and generate output files.""", 'content_icon': 'folder_icon.gif', 'filter_content_types': 0, 'immediate_view': 'portal_form/folder_contents' } manage_options = unique_options(SkinnedFolder.manage_options + \ PortalContent.manage_options,) registerType(LampadasDocument)
Field('body', required=0, searchable=1, allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword'), form_info=RichFormInfo(description="Enter a valid body for this document. This is what you will see", label="Body Text", )), Field('filepath', default='', accessor='getFilepath', mutator='setFilepath'), # Field('mime_type'), Field('behave_like', default='DTMLDocument', accessor='getBehaveLike', mutator='setBehaveLike', vocabulary=DisplayList((('DTMLDocument', 'DTMLDocument'), ('DTMLMethod', 'DTMLMethod'), ('File', 'File'), ('Image', 'Image'), ('PageTemplate', 'PageTemplate'))), form_info=SingleSelectionInfo(format='pulldown', label='Behave Like', description='Determines how the file is managed.')) )) manage_options = PortalContent.manage_options registerType(LampadasCVSFile)
searchable=1, allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword'), form_info=RichFormInfo( description= "Enter a valid body for this document. This is what you will see", label="Body Text", )), Field('filepath', default='', accessor='getFilepath', mutator='setFilepath'), # Field('mime_type'), Field('behave_like', default='DTMLDocument', accessor='getBehaveLike', mutator='setBehaveLike', vocabulary=DisplayList( (('DTMLDocument', 'DTMLDocument'), ('DTMLMethod', 'DTMLMethod'), ('File', 'File'), ('Image', 'Image'), ('PageTemplate', 'PageTemplate'))), form_info=SingleSelectionInfo( format='pulldown', label='Behave Like', description='Determines how the file is managed.')))) manage_options = PortalContent.manage_options registerType(LampadasCVSFile)
, 'category' : 'object' } , { 'id' : 'local_roles' , 'name' : 'Local Roles' , 'action' : 'folder_localrole_form' , 'permissions' : (CMFCorePermissions.ManageProperties,) , 'category' : 'object' } , { 'id' : 'render_html' , 'name' : 'Render HTML' , 'action' : 'render_html' , 'permissions' : (CMFCorePermissions.ManageProperties,) , 'category' : 'object' } ) factory_type_information = { 'id': 'LampadasDocument', 'description' : """\ Lampadas documents can hold source files and generate output files.""" , 'content_icon' : 'folder_icon.gif' , 'filter_content_types' : 0 , 'immediate_view' : 'portal_form/folder_contents'} manage_options = unique_options(SkinnedFolder.manage_options + \ PortalContent.manage_options,) registerType(LampadasDocument)