Index: WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml
===================================================================
--- WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml	(revision 862)
+++ WAeUP_SRP/trunk/profiles/default/workflows/waeup_student_wf/definition.xml	(revision 868)
@@ -101,6 +101,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -110,7 +109,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>Owner</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -120,7 +117,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>ClearanceOfficer</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -139,7 +134,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>Owner</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
   <transition-behavior behavior_id="allow-sub-create"/>
@@ -150,6 +143,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -159,7 +151,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>Owner</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -169,7 +159,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>Owner</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -179,7 +167,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>ClearanceOfficer</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -189,6 +175,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -198,6 +183,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -207,7 +191,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>Owner</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -217,6 +199,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -226,7 +207,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>ClearanceOfficer</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
@@ -236,7 +215,5 @@
   
   <guard>
-   <guard-role>Manager</guard-role>
-   <guard-role>SectionManager</guard-role>
-   <guard-role>Owner</guard-role>
+   <guard-expression>python: context.student_wf_guard(transition,state_change)</guard-expression>
   </guard>
  </transition>
