Changeset 933


Ignore:
Timestamp:
24 Nov 2006, 16:04:52 (18 years ago)
Author:
joachim
Message:

added a students directory,
students are now put in this directory
all other members remain in members
waeup_stacking_dir handles this

Location:
WAeUP_SRP/trunk
Files:
7 added
5 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/__init__.py

    r930 r933  
    1616import PatchCPSMembershipTool
    1717import PatchCPSUserFolderUserFolder
    18 import PatchZODBDirectory_searchEntries
     18import PatchCPSStackingDirectoryStorageAdapter
    1919import PatchBasicWidgetsCPSStringWidget
    2020# Only for CPS 3.4.1. In 3.4.2 and later this should be fixed.
  • WAeUP_SRP/trunk/profiles/default/layouts/acco_hall.xml

    r926 r933  
    7979    <property name="max_value">5</property>
    8080 </widget>
     81<widget name="blocks_for_female" meta_type="MultiSelect Widget">
     82 <property name="title">Blocks for Female</property>
     83 <property name="fields">
     84  <element value="blocks_for_female"/>
     85 </property>
     86 <property name="is_required">False</property>
     87 <property name="label">Blocks for Female</property>
     88 <property name="label_edit">Blocks for Female</property>
     89 <property name="readonly_layout_modes"/>
     90 <property name="hidden_layout_modes"/>
     91 <property name="hidden_readonly_layout_modes"/>
     92<property name="vocabulary">waeup_block_letters</property>
     93</widget>
    8194 <widget name="reserved_rooms" meta_type="WAeUPReservedRooms Widget">
    8295  <property name="title">Reserved Rooms</property>
     
    115128  <property name="width">72</property>
    116129 </widget>
    117  <widget name="which_sex" meta_type="Boolean Widget">
    118   <property name="fields">
    119    <element value="which_sex"/>
    120   </property>
    121   <property name="label">Sex</property>
    122   <property name="label_edit">Sex</property>
    123   <property name="label_false">male</property>
    124   <property name="label_true">female</property>
    125  </widget>
    126 <widget name="special_handling" meta_type="Select Widget">
    127  <property name="title">Maintenance Fee Prefix</property>
     130 <widget name="special_handling" meta_type="Select Widget">
     131 <property name="title">Special Handling code</property>
    128132 <property name="fields">
    129133  <element value="special_handling"/>
     
    137141<property name="vocabulary">acco_special_handling</property>
    138142</widget>
     143<widget name="study_courses" meta_type="Lines Widget">
     144 <property name="title">Studycourses</property>
     145 <property name="fields">
     146  <element value="study_courses"/>
     147 </property>
     148 <property name="label">Studycourses</property>
     149 <property name="label_edit">Studycourses</property>
     150 <property name="readonly_layout_modes"/>
     151 <property name="hidden_layout_modes"/>
     152 <property name="hidden_readonly_layout_modes"/>
     153 <property name="width">20</property>
     154 <property name="height">3</property>
     155</widget>
    139156<widget name="maintenance_code" meta_type="Select Widget">
    140157 <property name="title">Maintenance Fee Prefix</property>
     
    161178  </row>
    162179  <row>
     180   <cell name="study_courses"/>
     181  </row>
     182  <row>
    163183   <cell name="text"/>
    164184  </row>
    165185  <row>
    166    <cell name="which_sex"/>
     186   <cell name="blocks_for_female"/>
    167187  </row>
    168188  <row>
  • WAeUP_SRP/trunk/profiles/default/schemas/acco_hall.xml

    r926 r933  
    2020  </field>
    2121 <field name="special_handling" meta_type="CPS String Field"/>
     22 <field name="study_courses" meta_type="CPS String List Field"/>
    2223 <field name="text" meta_type="CPS String Field">
    2324  <property name="is_searchabletext">False</property>
    2425 </field>
    25  <field name="which_sex" meta_type="CPS Boolean Field">
     26 <field name="blocks_for_female" meta_type="CPS String List Field">
    2627  </field>
    2728   <field name="maintenance_code" meta_type="CPS String Field"/>
  • WAeUP_SRP/trunk/profiles/default/vocabularies.xml

    r926 r933  
    1010 <object name="get_faculties_voc" meta_type="CPS Method Vocabulary"/>
    1111 <object name="waeup_bed_letters" meta_type="CPS Vocabulary"/>
     12 <object name="waeup_block_letters" meta_type="CPS Vocabulary"/>
    1213 <object name="nigerian_states" meta_type="CPS Vocabulary"/>
    1314 <object name="semester_voc" meta_type="CPS Vocabulary"/>
  • WAeUP_SRP/trunk/skins/waeup_custom/logged_in.py

    r837 r933  
    9191
    9292if to_waeup_student_home:
    93     member.setProperties(last_login_time=current,login_time=current)
     93    #member.setProperties(last_login_time=current,login_time=current)
    9494    if info['review_state'] == "application_pin_entered":
    9595        return response.redirect("%s/application_edit" % student.absolute_url())
     
    123123first_time = (str(login_time) == '2000/01/01')
    124124
    125 if first_time and member.has_role('Member'):
     125if first_time and member.has_role('Member') and not member.has_role('Student'):
    126126    mtool.createMemberArea()
    127127    now = context.ZopeTime()
Note: See TracChangeset for help on using the changeset viewer.