Changeset 3870
- Timestamp:
- 23 Jan 2009, 07:39:33 (16 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Accommodation.py
r3786 r3870 38 38 generate the free Bedslist. 39 39 """ 40 logger = logging.getLogger('Accommodation.AccoFolder.generateFreeBedsList') 41 member = self.portal_membership.getAuthenticatedMember() 42 logger.info('%s generated bed list' % member) 40 43 bed_list = self.portal_accommodation 41 44 l = self.portal_catalog({'meta_type': "AccoHall"}) … … 57 60 reserved = [(r.split('/')[0],int(r.split('/')[1])) for r in re.split(',|\.| ',hall_doc.reserved_rooms) 58 61 if r] 62 #import pdb;pdb.set_trace() 59 63 #for block in range(1,int(hall_doc.nr_of_blocks)+1): 60 64 # for block in 'ABCDEFGHIJ'[:int(hall_doc.nr_of_blocks)]: … … 63 67 beds_for_fresh = getattr(hall_doc,'beds_for_fresh',[]) 64 68 beds_for_pre = getattr(hall_doc,'beds_for_pre',[]) 69 beds_for_returning = getattr(hall_doc,'beds_for_returning',[]) 65 70 beds_for_final = getattr(hall_doc,'beds_for_final',[]) 66 71 if set(blocks_for_female).intersection(set(blocks_for_male)): … … 85 90 elif bed in beds_for_final: 86 91 bt = 'fi' 92 elif bed in beds_for_returning: 93 bt = 're' 87 94 if hall_doc.special_handling.startswith("no_"): 88 95 bt += "_" + hall_doc.special_handling[3:] … … 109 116 beds_generated.append(hall_gen) 110 117 current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S") 111 open("%s/ import/bedlist_%s.csv" % (i_home,current),"w+").write('\n'.join(generated))112 open("%s/ import/bedlist_modyfied_%s.csv" % (i_home,current),"w+").write('\n'.join(modyfied))118 open("%s/export/bedlist_%s.csv" % (i_home,current),"w+").write('\n'.join(generated)) 119 open("%s/export/bedlist_modyfied_%s.csv" % (i_home,current),"w+").write('\n'.join(modyfied)) 113 120 return self.accommodation.acco_folder_view(beds_generated=beds_generated) 114 121 ###) -
WAeUP_SRP/trunk/profiles/aaua/layouts/acco_hall.xml
r3689 r3870 41 41 </property> 42 42 <property name="is_required">False</property> 43 <property name="label">Beds for NCE-3Students</property>44 <property name="label_edit">Beds for NCE-3Students</property>43 <property name="label">Beds for Final Students</property> 44 <property name="label_edit">Beds for Final Students</property> 45 45 <property name="help">Name the bedspaces for final year students. 46 46 Attention: The bed letters must not exceed the number of beds per room.</property> … … 50 50 <property name="vocabulary">waeup_bed_letters</property> 51 51 </widget> 52 53 <widget name="beds_for_returning" meta_type="MultiSelect Widget"> 54 <property name="fields"> 55 <element value="beds_for_returning"/> 56 </property> 57 <property name="is_required">False</property> 58 <property name="label">Beds for Returning Students</property> 59 <property name="label_edit">Beds for Returning Students</property> 60 <property name="help">Name the bedspaces for final returning students. 61 Attention: The bed letters must not exceed the number of beds per room.</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">waeup_bed_letters</property> 66 </widget> 67 52 68 <widget name="beds_for_fresh" meta_type="MultiSelect Widget"> 53 69 <property name="fields"> … … 55 71 </property> 56 72 <property name="is_required">False</property> 57 <property name="label">Beds for NCE-1Students</property>58 <property name="label_edit">Beds for NCE-1Students</property>73 <property name="label">Beds for Fresh Students</property> 74 <property name="label_edit">Beds for Fresh Students</property> 59 75 <property name="help">Name the beds for first year students. 60 76 Attention: The bed letters must not exceed the number of beds per room.</property> … … 203 219 <row> 204 220 <cell name="sort_id"/> 205 </row> 221 </row> 206 222 <row> 207 223 <cell name="maintenance_code"/> 208 224 </row> 209 225 <row> 226 <cell name="special_handling"/> 227 </row> 228 <row> 210 229 <cell name="text"/> 211 230 </row> … … 229 248 </row> 230 249 <row> 231 <cell name="beds_for_pre"/>232 </row>233 <row>234 250 <cell name="beds_for_fresh"/> 235 251 </row> 252 <row> 253 <cell name="beds_for_returning"/> 254 </row> 236 255 <row> 237 256 <cell name="beds_for_final"/> -
WAeUP_SRP/trunk/profiles/aaue/layouts/acco_hall.xml
r3763 r3870 41 41 </property> 42 42 <property name="is_required">False</property> 43 <property name="label">Beds for NCE-3Students</property>44 <property name="label_edit">Beds for NCE-3Students</property>43 <property name="label">Beds for Final Students</property> 44 <property name="label_edit">Beds for Final Students</property> 45 45 <property name="help">Name the bedspaces for final year students. 46 46 Attention: The bed letters must not exceed the number of beds per room.</property> … … 50 50 <property name="vocabulary">waeup_bed_letters</property> 51 51 </widget> 52 53 <widget name="beds_for_returning" meta_type="MultiSelect Widget"> 54 <property name="fields"> 55 <element value="beds_for_returning"/> 56 </property> 57 <property name="is_required">False</property> 58 <property name="label">Beds for Returning Students</property> 59 <property name="label_edit">Beds for Returning Students</property> 60 <property name="help">Name the bedspaces for final returning students. 61 Attention: The bed letters must not exceed the number of beds per room.</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">waeup_bed_letters</property> 66 </widget> 67 52 68 <widget name="beds_for_fresh" meta_type="MultiSelect Widget"> 53 69 <property name="fields"> … … 55 71 </property> 56 72 <property name="is_required">False</property> 57 <property name="label">Beds for NCE-1Students</property>58 <property name="label_edit">Beds for NCE-1Students</property>73 <property name="label">Beds for Fresh Students</property> 74 <property name="label_edit">Beds for Fresh Students</property> 59 75 <property name="help">Name the beds for first year students. 60 76 Attention: The bed letters must not exceed the number of beds per room.</property> … … 203 219 <row> 204 220 <cell name="sort_id"/> 205 </row> 221 </row> 206 222 <row> 207 223 <cell name="maintenance_code"/> 208 224 </row> 209 225 <row> 226 <cell name="special_handling"/> 227 </row> 228 <row> 210 229 <cell name="text"/> 211 230 </row> … … 229 248 </row> 230 249 <row> 231 <cell name="beds_for_pre"/>232 </row>233 <row>234 250 <cell name="beds_for_fresh"/> 235 251 </row> 252 <row> 253 <cell name="beds_for_returning"/> 254 </row> 236 255 <row> 237 256 <cell name="beds_for_final"/> -
WAeUP_SRP/trunk/profiles/fceokene/layouts/acco_hall.xml
r3868 r3870 50 50 <property name="vocabulary">waeup_bed_letters</property> 51 51 </widget> 52 53 <widget name="beds_for_returning" meta_type="MultiSelect Widget"> 54 <property name="fields"> 55 <element value="beds_for_returning"/> 56 </property> 57 <property name="is_required">False</property> 58 <property name="label">Beds for NCE-2 Students</property> 59 <property name="label_edit">Beds for NCE-2 Students</property> 60 <property name="help">Name the bedspaces for final returning (NCE-2 students)) students. 61 Attention: The bed letters must not exceed the number of beds per room.</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">waeup_bed_letters</property> 66 </widget> 67 52 68 <widget name="beds_for_fresh" meta_type="MultiSelect Widget"> 53 69 <property name="fields"> … … 238 254 </row> 239 255 <row> 256 <cell name="beds_for_returning"/> 257 </row> 258 <row> 240 259 <cell name="beds_for_final"/> 241 260 </row> -
WAeUP_SRP/trunk/profiles/fceoyo/layouts/acco_hall.xml
r3714 r3870 50 50 <property name="vocabulary">waeup_bed_letters</property> 51 51 </widget> 52 53 <widget name="beds_for_returning" meta_type="MultiSelect Widget"> 54 <property name="fields"> 55 <element value="beds_for_returning"/> 56 </property> 57 <property name="is_required">False</property> 58 <property name="label">Beds for NCE-2 Students</property> 59 <property name="label_edit">Beds for NCE-2 Students</property> 60 <property name="help">Name the bedspaces for final returning (NCE-2 students)) students. 61 Attention: The bed letters must not exceed the number of beds per room.</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">waeup_bed_letters</property> 66 </widget> 67 52 68 <widget name="beds_for_fresh" meta_type="MultiSelect Widget"> 53 69 <property name="fields"> … … 208 224 </row> 209 225 <row> 226 <cell name="special_handling"/> 227 </row> 228 <row> 210 229 <cell name="text"/> 211 230 </row> … … 235 254 </row> 236 255 <row> 256 <cell name="beds_for_returning"/> 257 </row> 258 <row> 237 259 <cell name="beds_for_final"/> 238 260 </row> -
WAeUP_SRP/trunk/profiles/nau/layouts/acco_hall.xml
r3815 r3870 50 50 <property name="vocabulary">waeup_bed_letters</property> 51 51 </widget> 52 53 <widget name="beds_for_returning" meta_type="MultiSelect Widget"> 54 <property name="fields"> 55 <element value="beds_for_returning"/> 56 </property> 57 <property name="is_required">False</property> 58 <property name="label">Beds for Returning Students</property> 59 <property name="label_edit">Beds for Returning Students</property> 60 <property name="help">Name the bedspaces for final returning students. 61 Attention: The bed letters must not exceed the number of beds per room.</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">waeup_bed_letters</property> 66 </widget> 67 52 68 <widget name="beds_for_fresh" meta_type="MultiSelect Widget"> 53 69 <property name="fields"> … … 235 251 </row> 236 252 <row> 253 <cell name="beds_for_returning"/> 254 </row> 255 <row> 237 256 <cell name="beds_for_final"/> 238 257 </row> -
WAeUP_SRP/trunk/profiles/ois/layouts/acco_hall.xml
r3689 r3870 50 50 <property name="vocabulary">waeup_bed_letters</property> 51 51 </widget> 52 53 <widget name="beds_for_returning" meta_type="MultiSelect Widget"> 54 <property name="fields"> 55 <element value="beds_for_returning"/> 56 </property> 57 <property name="is_required">False</property> 58 <property name="label">Beds for NCE-2 Students</property> 59 <property name="label_edit">Beds for NCE-2 Students</property> 60 <property name="help">Name the bedspaces for final returning (NCE-2 students)) students. 61 Attention: The bed letters must not exceed the number of beds per room.</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">waeup_bed_letters</property> 66 </widget> 67 52 68 <widget name="beds_for_fresh" meta_type="MultiSelect Widget"> 53 69 <property name="fields"> … … 208 224 </row> 209 225 <row> 226 <cell name="special_handling"/> 227 </row> 228 <row> 210 229 <cell name="text"/> 211 230 </row> … … 235 254 </row> 236 255 <row> 256 <cell name="beds_for_returning"/> 257 </row> 258 <row> 237 259 <cell name="beds_for_final"/> 238 260 </row> -
WAeUP_SRP/trunk/profiles/uniben/layouts/acco_hall.xml
r3692 r3870 50 50 <property name="vocabulary">waeup_bed_letters</property> 51 51 </widget> 52 53 <widget name="beds_for_returning" meta_type="MultiSelect Widget"> 54 <property name="fields"> 55 <element value="beds_for_returning"/> 56 </property> 57 <property name="is_required">False</property> 58 <property name="label">Beds for Returning Students</property> 59 <property name="label_edit">Beds for Returning Students</property> 60 <property name="help">Name the bedspaces for final returning students. 61 Attention: The bed letters must not exceed the number of beds per room.</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">waeup_bed_letters</property> 66 </widget> 67 52 68 <widget name="beds_for_fresh" meta_type="MultiSelect Widget"> 53 69 <property name="fields"> … … 235 251 </row> 236 252 <row> 253 <cell name="beds_for_returning"/> 254 </row> 255 <row> 237 256 <cell name="beds_for_final"/> 238 257 </row> -
WAeUP_SRP/trunk/profiles/unilorin/layouts/acco_hall.xml
r3689 r3870 41 41 </property> 42 42 <property name="is_required">False</property> 43 <property name="label">Beds for NCE-3Students</property>44 <property name="label_edit">Beds for NCE-3Students</property>43 <property name="label">Beds for Final Students</property> 44 <property name="label_edit">Beds for Final Students</property> 45 45 <property name="help">Name the bedspaces for final year students. 46 46 Attention: The bed letters must not exceed the number of beds per room.</property> … … 50 50 <property name="vocabulary">waeup_bed_letters</property> 51 51 </widget> 52 53 <widget name="beds_for_returning" meta_type="MultiSelect Widget"> 54 <property name="fields"> 55 <element value="beds_for_returning"/> 56 </property> 57 <property name="is_required">False</property> 58 <property name="label">Beds for Returning Students</property> 59 <property name="label_edit">Beds for Returning Students</property> 60 <property name="help">Name the bedspaces for final returning students. 61 Attention: The bed letters must not exceed the number of beds per room.</property> 62 <property name="readonly_layout_modes"/> 63 <property name="hidden_layout_modes"/> 64 <property name="hidden_readonly_layout_modes"/> 65 <property name="vocabulary">waeup_bed_letters</property> 66 </widget> 67 52 68 <widget name="beds_for_fresh" meta_type="MultiSelect Widget"> 53 69 <property name="fields"> … … 55 71 </property> 56 72 <property name="is_required">False</property> 57 <property name="label">Beds for NCE-1Students</property>58 <property name="label_edit">Beds for NCE-1Students</property>73 <property name="label">Beds for Fresh Students</property> 74 <property name="label_edit">Beds for Fresh Students</property> 59 75 <property name="help">Name the beds for first year students. 60 76 Attention: The bed letters must not exceed the number of beds per room.</property> … … 203 219 <row> 204 220 <cell name="sort_id"/> 205 </row> 221 </row> 206 222 <row> 207 223 <cell name="maintenance_code"/> 208 224 </row> 209 225 <row> 226 <cell name="special_handling"/> 227 </row> 228 <row> 210 229 <cell name="text"/> 211 230 </row> … … 229 248 </row> 230 249 <row> 231 <cell name="beds_for_pre"/>232 </row>233 <row>234 250 <cell name="beds_for_fresh"/> 235 251 </row> 252 <row> 253 <cell name="beds_for_returning"/> 254 </row> 236 255 <row> 237 256 <cell name="beds_for_final"/> -
WAeUP_SRP/trunk/skins/waeup_epayment/interswitch_cb.py
r3816 r3870 138 138 139 139 else: 140 logger.info('%s received unsuccessful lcallback: %s' % (student_id,pd['resp_desc']))140 logger.info('%s received unsuccessful callback: %s' % (student_id,pd['resp_desc'])) 141 141 142 142 review_state = wftool.getInfoFor(context,'review_state',None)
Note: See TracChangeset for help on using the changeset viewer.