Ignore:
Timestamp:
2 Nov 2005, 14:40:07 (19 years ago)
Author:
joachim
Message:

=migrate + editing of folders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/Faculty.py

    r89 r139  
    101101    'allowed_content_types': ('Course',),
    102102    'allow_discussion': False,
    103 ##    'actions': (
    104 ##         {'id': 'view',
    105 ##          'name': 'action_view',
    106 ##          'action': 'string:${object_url}/department_index_html',
    107 ##          'condition': '',
    108 ##          'permission': ('View',),
    109 ##          'category': 'object',
    110 ##          'visible': True,},
    111 ##         {'id': 'new_content',
    112 ##          'name': 'Add Data',
    113 ##          'action': 'string:${object_url}/folder_factories',
    114 ##          'condition': "python:1 or len(object.contentItems()) == 0 ",
    115 ##          'permission': ('Modify portal content',),
    116 ##          'category': 'object',
    117 ##          'visible': True,},
    118 ##         {'id': 'contents',
    119 ##          'name': 'action_folder_contents',
    120 ##          'action': 'string:${object_url}/folder_contents',
    121 ##          'condition': "python:1 or object.getTypeInfo().cps_proxy_type != 'document'",
    122 ##          'permission': ('Modify portal content',),
    123 ##          'category': 'object',
    124 ##          'visible': True,},
    125 ##         {'id': 'edit',
    126 ##          'name': 'action_edit',
    127 ##          'action': 'string:${object_url}/cpsdocument_edit_form',
    128 ##          'condition': '',
    129 ##          'permission': ('Modify portal content',),
    130 ##          'category': 'object',
    131 ##          'visible': True,},
    132 ##    )
    133103}
    134104###)
     
    161131    'allowed_content_types': (),
    162132    'allow_discussion': False,
    163 ##    'actions': (
    164 ##         {'id': 'view',
    165 ##          'name': 'action_view',
    166 ##          'action': 'string:${object_url}/course_index_html',
    167 ##          'condition': '',
    168 ##          'permission': ('View',),
    169 ##          'category': 'object',
    170 ##          'visible': True,},
    171 ##         {'id': 'new_content',
    172 ##          'name': 'Add Data',
    173 ##          'action': 'string:${object_url}/folder_factories',
    174 ##          'condition': "python:1 or len(object.contentItems()) == 0 ",
    175 ##          'permission': ('Modify portal content',),
    176 ##          'category': 'object',
    177 ##          'visible': True,},
    178 ##         {'id': 'contents',
    179 ##          'name': 'action_folder_contents',
    180 ##          'action': 'string:${object_url}/folder_contents',
    181 ##          'condition': "python:1 or object.getTypeInfo().cps_proxy_type != 'document'",
    182 ##          'permission': ('Modify portal content',),
    183 ##          'category': 'object',
    184 ##          'visible': True,},
    185 ##         {'id': 'edit',
    186 ##          'name': 'action_edit',
    187 ##          'action': 'string:${object_url}/cpsdocument_edit_form',
    188 ##          'condition': '',
    189 ##          'permission': ('Modify portal content',),
    190 ##          'category': 'object',
    191 ##          'visible': True,},
    192 ##    )
    193133}
    194134###)
     
    209149    return CPSBase_adder(container, ob, REQUEST=REQUEST)
    210150###)
     151
     152course_ticket_fti = { ###(
     153    'title': 'WAeUP CourseTicket',
     154    'description': '',
     155    'content_icon': '',
     156    'content_meta_type': 'CourseTicket',
     157    'factory': 'addCourseTicket',
     158    'immediate_view': 'cpsdocument_view',
     159    'global_allow': True,
     160    'filter_content_types': True,
     161    'allowed_content_types': (),
     162    'allow_discussion': False,
     163}
     164###)
     165
     166class CourseTicket(CPSDocument): ###(
     167    """
     168    WAeUP CourseTicket 
     169    """
     170    meta_type = 'CourseTicket'
     171    portal_type = meta_type
     172    security = ClassSecurityInfo()
     173   
     174InitializeClass(CourseTicket)
     175
     176def addCourseTicket(container, id, REQUEST=None, **kw):
     177    """Add a CourseTicket."""
     178    ob = CourseTicket(id, **kw)
     179    return CPSBase_adder(container, ob, REQUEST=REQUEST)
     180###)
Note: See TracChangeset for help on using the changeset viewer.