Changeset 3017
- Timestamp:
- 13 Jan 2008, 08:58:26 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTables.py
r2976 r3017 95 95 for key in fields: 96 96 v = getattr(record, key, None) 97 v_dump = '' 97 98 if key == 'sex': 98 if v :99 v = 'F'100 el se:101 v = 'M'102 d[key] = v 99 if v == True: 100 v_dump = 'F' 101 elif key == False: 102 v_dump = 'M' 103 d[key] = v_dump 103 104 elif v: 104 105 if key == 'lga': 105 v = self.portal_vocabularies.local_gov_areas.get(v) 106 v_dump = self.portal_vocabularies.local_gov_areas.get(v) 107 if not v_dump: 108 v_dump = v 106 109 elif key == 'aos': 107 v = self.portal_vocabularies.aos.get(v)108 d[key] = v 110 v_dump = self.portal_vocabularies.aos.get(v) 111 d[key] = v_dump 109 112 else: 110 113 d[key] = ''
Note: See TracChangeset for help on using the changeset viewer.