Changeset 4244
- Timestamp:
- 10 Jun 2009, 11:18:29 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTables.py
r4242 r4244 91 91 ###) 92 92 93 def record2dict(self,fields,record ): ###(93 def record2dict(self,fields,record,index): ###( 94 94 d = {} 95 95 for key in fields: … … 103 103 d[key] = v_dump 104 104 elif v: 105 #if key == 'lga': 106 # v_dump = self.portal_vocabularies.local_gov_areas.get(v) 107 # if not v_dump: 108 # v_dump = v 109 #elif key == 'aos': 110 # v_dump = self.portal_vocabularies.aos.get(v) 105 if index == 'translate': 106 if key == 'lga': 107 v_dump = self.portal_vocabularies.local_gov_areas.get(v) 108 if not v_dump: 109 v_dump = v 110 elif key == 'aos': 111 v_dump = self.portal_vocabularies.aos.get(v) 111 112 d[key] = v_dump 112 113 else: … … 234 235 for record in records: 235 236 not_all = False 236 d = self.record2dict(fields,record )237 d = self.record2dict(fields,record,index) 237 238 lines.append(d) 238 239 total += 1
Note: See TracChangeset for help on using the changeset viewer.