Ignore:
Timestamp:
11 Oct 2005, 12:10:17 (19 years ago)
Author:
joachim
Message:

major rewrite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup_product/trunk/Extensions/install.py

    r28 r45  
    2929        if CPSSubscriptions:
    3030            ptypes = "('Portal', 'CPSMailAccess Message', 'CPSMailAccess Box', 'CPSMailAccess Folder',"\
    31                      +  "'StudentFolder', 'Student', 'Jamb')"
     31                     +  "'University', 'StudentsFolder', 'Student', 'Jamb')"
    3232            condition = "object.portal_type not in %s" % ptypes
    3333   
     
    4242            self.verifyAction('portal_subscriptions', **action)
    4343        if CPSForum:
    44             ptypes = "('StudentFolder', 'Student', 'Jamb')"
     44            ptypes = "('University', 'StudentsFolder', 'Student', 'Jamb')"
    4545            condition = "object.portal_type not in %s" % ptypes
    4646   
     
    7070                        'id'        : 'new_student',
    7171                        'name'      : 'Add Student',
    72                         'action'    : 'string:${object/absolute_url}/create_student',
     72                        'action'    : 'string:${object/absolute_url}/create_student_form',
    7373                        'permission': (View),
    74                         'condition' : 'python: member and here.portal_type == "StudentFolder"',
     74                        'condition' : 'python: member and here.portal_type == "StudentsFolder"',
    7575                        'category'  : 'student',
    7676                        'visible'   : 1,
     
    8888                        'id'        : 'add_jamb',
    8989                        'name'      : 'Add Jamb Data',
    90                         'action'    : 'string:${object/absolute_url}/create_jamb',
     90                        'action'    : 'string:${object/absolute_url}/create_jamb_form',
    9191                        'permission': (),
    9292                        'condition' : 'python:here.portal_type != "Jamb" and len(object.contentItems()) == 0',
     
    119119        dtypes = portal.getWAeUPTypes()
    120120        self.verifyFlexibleTypes(dtypes)
    121         self.allowContentTypes('StudentFolder', ('Workspace','Section',))
     121        self.allowContentTypes('University', ('Workspace','Section',))
    122122        #self.allowContentTypes('Student', ('Workspace', 'Section'))
    123         ptypes = {
    124                   'StudentFolder' : {
    125                   'allowed_content_types': ('Student',),
    126                   'typeinfo_name': 'WAeUP: StudentFolder',
    127                   'add_meta_type': 'Factory-based Type Information',
    128                   },
    129                   'Student' : {
    130                   'allowed_content_types': ('Jamb',),
    131                   'typeinfo_name': 'WAeUP: Student',
    132                   'add_meta_type': 'Factory-based Type Information',
    133                   },
    134                  }
    135         self.verifyContentTypes(ptypes)
     123##        ptypes = {
     124##                  'University' : {
     125##                  'allowed_content_types': ('StudentsFolder',),
     126##                  'typeinfo_name': 'University',
     127##                  'add_meta_type': 'Factory-based Type Information',
     128##                  },
     129##                  'StudentsFolder' : {
     130##                  'allowed_content_types': ('Student',),
     131##                  'typeinfo_name': 'StudentFolder',
     132##                  'add_meta_type': 'Factory-based Type Information',
     133##                  },
     134##                  'Student' : {
     135##                  'allowed_content_types': ('Jamb',),
     136##                  'typeinfo_name': 'Student',
     137##                  'add_meta_type': 'Factory-based Type Information',
     138##                  },
     139##                 }
     140##        self.verifyContentTypes(ptypes)
    136141        ##########################################
    137142        # Schemas
     
    179184                      }
    180185
    181         se_chains = { 'StudentFolder': 'waeup_section_wf',
     186        se_chains = { 'University': 'waeup_section_wf',
     187                      'StudentsFolder': 'waeup_section_wf',
    182188                      'Student': 'waeup_section_wf',
    183189                      'Jamb': 'waeup_section_wf',
Note: See TracChangeset for help on using the changeset viewer.