Changeset 880 for WAeUP_SRP/trunk


Ignore:
Timestamp:
16 Nov 2006, 20:17:08 (18 years ago)
Author:
joachim
Message:

patched getRolesInContext to support dynamic roles
modified waeup_student_wf accordingly

Location:
WAeUP_SRP/trunk
Files:
2 added
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/PatchBasicWidgetsCPSStringWidget.py

    r869 r880  
    33from Products.CPSSchemas.BasicWidgets import CPSEmailWidget
    44CPSStringWidget.display_width = 30
    5 CPSEmailWidgetdisplay_width = 30
     5CPSEmailWidget.display_width = 30
  • WAeUP_SRP/trunk/__init__.py

    r867 r880  
    1515import PatchCPSSchemasAttributeStorageAdapter
    1616import PatchBasicWidgetsCPSStringWidget
     17import PatchCPSUserFolderUserFolderWithGroups
    1718# Only for CPS 3.4.1. In 3.4.2 and later this should be fixed.
    1819import PatchCPSDefaultImportExport
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml

    r870 r880  
    102102
    103103  <guard>
    104    <guard-expression>here/clearance_officer_guard</guard-expression>
     104   <guard-role>ClearanceOfficer</guard-role>
     105   <guard-role>Manager</guard-role>
     106   <guard-role>SectionManager</guard-role>
    105107  </guard>
    106108 </transition>
     
    110112
    111113  <guard>
    112    <guard-expression>here/owner_guard</guard-expression>
     114   <guard-role>Owner</guard-role>
     115   <guard-role>Manager</guard-role>
     116   <guard-role>SectionManager</guard-role>
    113117  </guard>
    114118 </transition>
     
    118122
    119123  <guard>
    120    <guard-expression>here/clearance_officer_guard</guard-expression>
     124   <guard-role>ClearanceOfficer</guard-role>
     125   <guard-role>Manager</guard-role>
     126   <guard-role>SectionManager</guard-role>
    121127  </guard>
    122128 </transition>
     
    135141
    136142  <guard>
    137    <guard-expression>here/owner_guard</guard-expression>
     143   <guard-role>Owner</guard-role>
     144   <guard-role>Manager</guard-role>
     145   <guard-role>SectionManager</guard-role>
    138146  </guard>
    139147  <transition-behavior behavior_id="allow-sub-create"/>
     
    144152
    145153  <guard>
    146    <guard-expression>here/owner_guard</guard-expression>
     154   <guard-role>Owner</guard-role>
     155   <guard-role>Manager</guard-role>
     156   <guard-role>SectionManager</guard-role>
    147157  </guard>
    148158 </transition>
     
    152162
    153163  <guard>
    154    <guard-expression>here/owner_guard</guard-expression>
     164   <guard-role>Owner</guard-role>
     165   <guard-role>Manager</guard-role>
     166   <guard-role>SectionManager</guard-role>
    155167  </guard>
    156168 </transition>
     
    160172
    161173  <guard>
    162    <guard-expression>here/owner_guard</guard-expression>
     174   <guard-role>Owner</guard-role>
     175   <guard-role>Manager</guard-role>
     176   <guard-role>SectionManager</guard-role>
    163177  </guard>
    164178 </transition>
     
    168182
    169183  <guard>
    170    <guard-expression>here/clearance_officer_guard</guard-expression>
     184   <guard-role>ClearanceOfficer</guard-role>
     185   <guard-role>Manager</guard-role>
     186   <guard-role>SectionManager</guard-role>
    171187  </guard>
    172188 </transition>
     
    176192
    177193  <guard>
    178    <guard-expression>here/clearance_officer_guard</guard-expression>
     194   <guard-role>ClearanceOfficer</guard-role>
     195   <guard-role>Manager</guard-role>
     196   <guard-role>SectionManager</guard-role>
    179197  </guard>
    180198 </transition>
     
    184202
    185203  <guard>
    186    <guard-expression>here/clearance_officer_guard</guard-expression>
     204   <guard-role>ClearanceOfficer</guard-role>
     205   <guard-role>Manager</guard-role>
     206   <guard-role>SectionManager</guard-role>
    187207  </guard>
    188208 </transition>
     
    192212
    193213  <guard>
    194    <guard-expression>here/clearance_officer_guard</guard-expression>
     214   <guard-role>ClearanceOfficer</guard-role>
     215   <guard-role>Manager</guard-role>
     216   <guard-role>SectionManager</guard-role>
    195217  </guard>
    196218 </transition>
     
    200222
    201223  <guard>
    202    <guard-expression>here/clearance_officer_guard</guard-expression>
     224   <guard-role>ClearanceOfficer</guard-role>
     225   <guard-role>Manager</guard-role>
     226   <guard-role>SectionManager</guard-role>
    203227  </guard>
    204228 </transition>
     
    208232
    209233  <guard>
    210    <guard-expression>here/clearance_officer_guard</guard-expression>
     234   <guard-role>ClearanceOfficer</guard-role>
     235   <guard-role>Manager</guard-role>
     236   <guard-role>SectionManager</guard-role>
    211237  </guard>
    212238 </transition>
     
    216242
    217243  <guard>
    218    <guard-expression>here/owner_guard</guard-expression>
     244   <guard-role>Owner</guard-role>
     245   <guard-role>Manager</guard-role>
     246   <guard-role>SectionManager</guard-role>
    219247  </guard>
    220248 </transition>
     
    223251  <description>Time of the last transition</description>
    224252  <default>
    225 
    226253   <expression>state_change/getDateTime</expression>
    227254  </default>
Note: See TracChangeset for help on using the changeset viewer.