Changeset 1987


Ignore:
Timestamp:
5 Jul 2007, 09:55:08 (17 years ago)
Author:
joachim
Message:

solution for #300

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1965 r1987  
    855855                        d[zu] = mapping[von]
    856856            sub_doc.edit(mapping = d)
    857 
    858             new_state = f2t[pt]['wf_transition_admitted']
     857            transition = mapping.get('reg_transition','admitted')
     858            if transition not in ('admitted','returning'):
     859                transition = 'admitted'
     860            #import pdb;pdb.set_trace()
     861            new_state = f2t[pt]['wf_transition_%(transition)s' % vars()]
    859862            if new_state != "remain":
    860863                self.portal_workflow.doActionFor(sub_obj,new_state,dest_container=sub_obj)
  • WAeUP_SRP/trunk/profiles/default/layouts/import_student.xml

    r1986 r1987  
    88 <property name="flexible_widgets"/>
    99 <property name="validate_values_expr"></property>
     10 <widget name="reg_transition" meta_type="String Widget">
     11  <property name="title">Transition after import</property>
     12  <property name="fields">
     13   <element value="reg_transition"/>
     14  </property>
     15  <property name="label">Transition</property>
     16  <property name="label_edit">Transition</property>
     17  <property name="readonly_layout_modes"/>
     18  <property name="hidden_layout_modes"/>
     19  <property name="hidden_readonly_layout_modes"/>
     20 </widget>
    1021 <widget name="email" meta_type="Email Widget">
    1122  <property name="title">Email</property>
  • WAeUP_SRP/trunk/profiles/default/schemas/import_student.xml

    r1804 r1987  
    22<?xml-stylesheet type="text/xsl" href="schema.xsl"?>
    33<object name="import_student" meta_type="CPS Schema">
     4 <field name="reg_transition" meta_type="CPS String Field"/>
    45 <field name="firstname" meta_type="CPS String Field"/>
    56 <field name="middlename" meta_type="CPS String Field"/>
Note: See TracChangeset for help on using the changeset viewer.