Changeset 288 for WAeUP_SRP/trunk


Ignore:
Timestamp:
7 Jul 2006, 14:43:03 (18 years ago)
Author:
joachim
Message:

=waeup_faculty_wf started

Location:
WAeUP_SRP/trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Academics.py

    r287 r288  
    173173            if len(course_id) == 3:
    174174                course_id = "%s000" % course_id
    175             elif course_id.startswith('CHEM'):
    176                 tid = course_id.replace('CHEM','CHE')
    177                 logger.info("invalid course_code %(course_id)s renaming to %(tid)s" % vars())
    178                 course_id = tid
     175##            elif course_id.startswith('CHEM'):
     176##                tid = course_id.replace('CHEM','CHE')
     177##                logger.info("invalid course_code %(course_id)s renaming to %(tid)s" % vars())
     178##                course_id = tid
    179179##            elif course_id.startswith('DAIC'):
    180180##                tid = course_id.replace('DAIC','DAC')
     
    189189                if not no_import:
    190190                    no_import = open("%s/import/%s_not_imported.csv" % (i_home,name),"w")
    191                     no_import.write('"CourseCode","Description","Credits","Dept","Semester","Session","PassMark","CourseKey","Category","AdmStatus"')
     191                    no_import.write('"CourseCode","Description","Credits","Dept","Semester","Session","PassMark","CourseKey","Category","AdmStatus"\n')
    192192                no_import.write("invalid course_code %(CourseCode)s\n" % course)
    193193                no_import.write('"%(CourseCode)s","%(Description)s","%(Credits)s","%(Dept)s","%(Semester)s","%(Session)s","%(PassMark)s","%(CourseKey)s","%(Category)s","%(AdmStatus)s"\n' % course)
  • WAeUP_SRP/trunk/profiles/default/rolemap.xml

    r256 r288  
    22<rolemap>
    33  <roles>
     4    <role name="UniversityManager"/>
     5    <role name="FacultyManager"/>
     6    <role name="DepartmentManager"/>
    47    <role name="CourseAdvisor"/>
    58    <role name="Lecturer"/>
  • WAeUP_SRP/trunk/profiles/default/workflows/waeup_faculty_wf/definition.xml

    r210 r288  
    55              meta_type="CPS Workflow">
    66 <permission>View</permission>
     7 <state state_id="reviewed" title="">
     8  <exit-transition transition_id="retract"/>
     9 </state>
    710 <state state_id="work" title="Work">
    811  <exit-transition transition_id="create_content"/>
    912  <exit-transition transition_id="cut_copy_paste"/>
     13  <exit-transition transition_id="review"/>
    1014  <permission-map name="View" acquired="False">
    1115   <permission-role>Manager</permission-role>
     
    5256  <transition-behavior behavior_id="allow-sub-copy"/>
    5357 </transition>
     58 <transition transition_id="retract"
     59             title="Retract a reviewed Faculty"
     60             new_state="work" trigger="USER"
     61             before_script="" after_script="">
     62  <action url="%(content_url)s/cpsdocument_edit_form"
     63          category="workflow">action_retract</action>
     64  <guard>
     65   <guard-role>FacultyManager</guard-role>
     66   <guard-role></guard-role>
     67  </guard>
     68 </transition>
     69 <transition transition_id="review" title=""
     70             new_state="reviewed" trigger="USER"
     71             before_script="" after_script="">
     72  <action url="%(content_url)s/cpsdocument_edit_form"
     73          category="workflow">Review</action>
     74  <guard>
     75   <guard-role>FacultyManager</guard-role>
     76   <guard-role>Manager</guard-role>
     77  </guard>
     78 </transition>
    5479</cps-workflow>
  • WAeUP_SRP/trunk/skins/waeup_default/temporary_view_all_form.pt

    r256 r288  
    2525    <br />
    2626    <span  tal:condition="python:context.portal_type != 'University' and doc.render()"  tal:omit-tag="">
     27      <p>object's workflowstate: <span tal:replace="python: context.portal_workflow.getInfoFor(context,'review_state',None)"/></p>
    2728      <p>Exemplary view of the <strong>object's data fields</strong>: </p>
    2829      <tal:block 
Note: See TracChangeset for help on using the changeset viewer.