- Timestamp:
- 21 Sep 2007, 19:36:08 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r2265 r2267 919 919 if getattr(academics_folder,fid,None) is not None: 920 920 return '', "Faculty with ID: %s exists" % fid 921 logger.info('Creating Faculty %(code)s =%(title)s' % mapping)921 logger.info('Creating Faculty %(code)s, %(title)s' % mapping) 922 922 academics_folder.invokeFactory('Faculty', fid) 923 923 f = getattr(academics_folder,fid,None) … … 935 935 if f is None: 936 936 return '', "Faculty with ID: %s does not exist" % fid 937 logger.info('Editing Faculty %(code)s =%(title)s' % mapping)937 logger.info('Editing Faculty %(code)s, %(title)s' % mapping) 938 938 f.getContent().edit(mapping=mapping) 939 939 return fid,'' … … 957 957 d = getattr(f,did,None) 958 958 if d is None or d.portal_type == "Faculty": 959 logger.info('Creating Department %(code)s =%(title)s' % mapping)959 logger.info('Creating Department %(code)s, %(title)s' % mapping) 960 960 f.invokeFactory('Department', did) 961 961 d = getattr(f,did) … … 985 985 else: 986 986 if d is None or d.portal_type == "Faculty": 987 logger.info('Editing Department %(code)s =%(title)s' % mapping)987 logger.info('Editing Department %(code)s, %(title)s' % mapping) 988 988 d.getContent().edit(mapping=mapping) 989 989 return did,'' … … 1309 1309 format_error = format + ',"%(Error)s"' 1310 1310 format = '"%(id)s",'+ format 1311 1311 1312 1312 dm = DataModel(item, adapters,context=self) 1313 1313 ds = DataStructure(data=item,datamodel=dm) -
WAeUP_SRP/uniben/profiles/default/layouts/import_department.xml
r2193 r2267 9 9 <property name="validate_values_expr"></property> 10 10 <widget name="code" meta_type="WAeUPId Widget"> 11 <property name="title">Department Id</property>11 <property name="title">Department Code</property> 12 12 <property name="fields"> 13 13 <element value="code"/> 14 14 </property> 15 15 <property name="is_required">True</property> 16 <property name="label">Department Id</property>17 <property name="label_edit">Department Id</property>16 <property name="label">Department Code</property> 17 <property name="label_edit">Department Code</property> 18 18 <property name="readonly_layout_modes"/> 19 19 <property name="hidden_layout_modes"> … … 30 30 <property name="label">Faculty Code</property> 31 31 <property name="label_edit">Faculty Code</property> 32 <property name="readonly_layout_modes"/>33 <property name="hidden_layout_modes"/>34 <property name="hidden_readonly_layout_modes"/>35 </widget>36 <widget name="review_state" meta_type="String Widget">37 <property name="title">Review State</property>38 <property name="fields">39 <element value="review_state"/>40 </property>41 <property name="label">Review State</property>42 <property name="label_edit">Review State</property>43 32 <property name="readonly_layout_modes"/> 44 33 <property name="hidden_layout_modes"/> -
WAeUP_SRP/uniben/profiles/default/layouts/import_faculty.xml
r2264 r2267 18 18 <property name="size_max">200</property> 19 19 </widget> 20 <widget name="bank_code" meta_type="String Widget">21 <property name="title">Bank Code</property>22 <property name="fields">23 <element value="bank_code"/>24 </property>25 <property name="label">Bank Code</property>26 <property name="label_edit">Bank Code</property>27 <property name="readonly_layout_modes"/>28 <property name="hidden_layout_modes"/>29 <property name="hidden_readonly_layout_modes"/>30 </widget>31 20 <widget name="code" meta_type="WAeUPId Widget"> 32 <property name="title">Faculty Id</property>21 <property name="title">Faculty Code</property> 33 22 <property name="fields"> 34 23 <element value="code"/> 35 24 </property> 36 25 <property name="is_required">True</property> 37 <property name="label">Faculty Id</property>38 <property name="label_edit">Faculty Id</property>26 <property name="label">Faculty Code</property> 27 <property name="label_edit">Faculty Code</property> 39 28 <property name="readonly_layout_modes"> 40 29 <element value="edit"/> … … 58 47 <property name="vocabulary">institution_types_voc</property> 59 48 </widget> 60 <widget name="review_state" meta_type="String Widget">61 <property name="title">Review State</property>62 <property name="fields">63 <element value="review_state"/>64 </property>65 <property name="label">Review State</property>66 <property name="label_edit">Review State</property>67 <property name="readonly_layout_modes"/>68 <property name="hidden_layout_modes"/>69 <property name="hidden_readonly_layout_modes"/>70 </widget>71 49 <table> 72 50 <row> … … 79 57 <cell name="title_prefix"/> 80 58 </row> 81 <row>82 <cell name="bank_code"/>83 </row>84 59 </table> 85 60 </object> -
WAeUP_SRP/uniben/profiles/default/schemas/import_department.xml
r2193 r2267 4 4 <field name="code" meta_type="CPS String Field"/> 5 5 <field name="faculty_code" meta_type="CPS String Field"/> 6 <field name="review_state" meta_type="CPS String Field"/>7 6 <field name="title" meta_type="CPS String Field"/> 8 7 <field name="title_prefix" meta_type="CPS String Field"/> -
WAeUP_SRP/uniben/profiles/default/schemas/import_faculty.xml
r2264 r2267 2 2 <?xml-stylesheet type="text/xsl" href="schema.xsl"?> 3 3 <object name="import_faculty" meta_type="CPS Schema"> 4 <field name="bank_code" meta_type="CPS String Field"/>5 4 <field name="code" meta_type="CPS String Field"/> 6 <field name="review_state" meta_type="CPS String Field"/>7 5 <field name="title" meta_type="CPS String Field"/> 8 6 <field name="title_prefix" meta_type="CPS String Field"/>
Note: See TracChangeset for help on using the changeset viewer.