Ignore:
Timestamp:
27 Oct 2005, 06:51:08 (19 years ago)
Author:
joachim
Message:

=adding and editing of several types

File:
1 edited

Legend:

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

    r89 r96  
    7272        if CPSSubscriptions: ###(
    7373            ptypes = "('Portal', 'CPSMailAccess Message', 'CPSMailAccess Box', 'CPSMailAccess Folder',"\
    74                      +  "'University', 'StudentsFolder', 'Student', 'Jamb')"
     74                     +  "'University', 'StudentsFolder', 'Student', 'Jamb', 'Faculty', 'Department','Course')"
    7575            condition = "object.portal_type not in %s" % ptypes
    7676   
     
    8585            self.verifyAction('portal_subscriptions', **action)
    8686        if CPSForum:
    87             ptypes = "('University', 'StudentsFolder', 'Student', 'Jamb')"
     87            ptypes = "('University','StudentsFolder','Student', 'Jamb','Faculty', 'Department','Course')"
    8888            condition = "object.portal_type not in %s" % ptypes
    8989   
     
    314314    dirtool = getattr(self,'portal_directories')
    315315    groups = dirtool.groups
    316     for newEntry in ('Students','StudentManager'):
     316    for delEntry in ('StudentManager',):
     317        if delEntry in groups.listEntryIds():
     318            groups.deleteEntry(delEntry) 
     319    for newEntry in ('Students',):
    317320        if newEntry not in groups.listEntryIds():
    318321            groups.createEntry({'group': newEntry,
    319322                                'members': []}) 
    320     groups.manage_setLocalGroupRoles(groupid = 'StudentManager',roles=('Manager',))
     323    #groups.manage_setLocalGroupRoles(groupid = 'StudentManager',roles=('Manager',))
    321324    #groups.manage_setLocalGroupRoles(groupid = 'Students',roles=('Contributor',))
    322325    sections = getattr(self,'sections')
Note: See TracChangeset for help on using the changeset viewer.