Changeset 2192 for WAeUP_SRP/trunk
- Timestamp:
- 11 Sep 2007, 12:48:10 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r2191 r2192 94 94 for key in fields: 95 95 v = getattr(record, key, None) 96 if v: 96 if key == 'sex': 97 if v: 98 v = 'F' 99 else: 100 v = 'M' 101 d[key] = v 102 elif v: 97 103 if key == 'lga': 98 104 v = self.portal_vocabularies.local_gov_areas.get(v) 99 elif key == 'sex':100 if v:101 v = 'F'102 else:103 v = 'M'104 105 d[key] = v 105 106 else:
Note: See TracChangeset for help on using the changeset viewer.