Changeset 610


Ignore:
Timestamp:
08/09/06 14:41:09 (13 years ago)
Author:
szabolcs
Message:

closes #644 spent 20m

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ConfigurationMethods.py

    r605 r610  
    445445    safeEditProperty(lt, 'portal_search_link', value="TODO", data_type="string") 
    446446 
     447def setupRoles(self, portal): 
     448    portal._addRole('CoAuthor') 
     449 
    447450######### 
    448451# Collect all setup functions into a setup widget 
  • trunk/LeMillWorkflow.py

    r591 r610  
    6868    state = wf.states['draft'] 
    6969    state.setProperties(title='draft', transitions=('publish','delete')) 
    70     state.setPermission(view, 0, ('Manager', 'Owner', 'Member', 'Authenticated', 'Anonymous')) 
    71     state.setPermission(edit, 0, ('Manager', 'Owner')) 
    72     state.setPermission(delete, 0, ('Manager', 'Reviewer', 'Owner'))     
    73     state.setPermission(access, 0, ('Manager', 'Owner', 'Member', 'Authenticated', 'Anonymous')) 
     70    state.setPermission(view, 0, ('Manager', 'Owner', 'CoAuthor', 'Member', 'Authenticated', 'Anonymous')) 
     71    state.setPermission(edit, 0, ('Manager', 'Owner', 'CoAuthor')) 
     72    state.setPermission(delete, 0, ('Manager', 'Reviewer', 'Owner')) 
     73    state.setPermission(access, 0, ('Manager', 'Owner', 'CoAuthor', 'Member', 'Authenticated', 'Anonymous')) 
    7474 
    7575    state = wf.states['public'] 
    7676    state.setProperties(title='published', transitions=('retract','delete')) 
    77     state.setPermission(view, 0, ('Manager', 'Owner', 'Member', 'Authenticated', 'Anonymous')) 
    78     state.setPermission(edit, 0, ('Manager', 'Owner')) 
    79     state.setPermission(delete, 0, ('Manager', 'Reviewer', 'Owner'))     
    80     state.setPermission(access, 0, ('Manager', 'Reviewer', 'Owner', 'Member', 'Authenticated', 'Anonymous')) 
     77    state.setPermission(view, 0, ('Manager', 'Owner', 'CoAuthor', 'Member', 'Authenticated', 'Anonymous')) 
     78    state.setPermission(edit, 0, ('Manager', 'Owner', 'CoAuthor')) 
     79    state.setPermission(delete, 0, ('Manager', 'Reviewer', 'Owner')) 
     80    state.setPermission(access, 0, ('Manager', 'Reviewer', 'Owner', 'CoAuthor', 'Member', 'Authenticated', 'Anonymous')) 
    8181 
    8282    state = wf.states['deleted'] 
    8383    state.setProperties(title='deleted', transitions=('restore','publish')) 
    84     state.setPermission(view, 0, ('Manager', 'Reviewer', 'Owner', 'Member', 'Authenticated', 'Anonymous')) 
    85     state.setPermission(edit, 0, ('Manager', 'Owner')) 
    86     state.setPermission(delete, 0, ('Manager', 'Reviewer', 'Owner'))     
    87     state.setPermission(access, 0, ('Manager', 'Owner', 'Member', 'Authenticated', 'Anonymous')) 
     84    state.setPermission(view, 0, ('Manager', 'Reviewer', 'Owner', 'CoAuthor', 'Member', 'Authenticated', 'Anonymous')) 
     85    state.setPermission(edit, 0, ('Manager', 'Owner', 'CoAuthor')) 
     86    state.setPermission(delete, 0, ('Manager', 'Reviewer', 'Owner')) 
     87    state.setPermission(access, 0, ('Manager', 'Owner', 'CoAuthor', 'Member', 'Authenticated', 'Anonymous')) 
    8888     
    8989    # transitions  
     
    176176    # Add edit access to all members 
    177177    state=wf.states['public'] 
    178     state.setPermission(edit, 0, ('Manager', 'Owner', 'Member')) 
     178    state.setPermission(edit, 0, ('Manager', 'Owner', 'CoAuthor', 'Member')) 
    179179 
    180180addWorkflowFactory(createGroup_workflow, 
  • trunk/Resources.py

    r602 r610  
    365365            self.manage_delLocalRoles((old_value[0],)) 
    366366        if value: 
    367             self.manage_setLocalRoles(value, ('Owner',)) 
     367            self.manage_setLocalRoles(value, ('CoAuthor',)) 
    368368            f.set(self, value) 
    369369 
Note: See TracChangeset for help on using the changeset viewer.