Changeset 1799
- Timestamp:
- 26.01.2012 16:25:22 (4 weeks ago)
- File:
-
- 1 edited
-
ZMS/trunk/zmssqldb.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/zmssqldb.py
r1745 r1799 187 187 container = self.getModelContainer() 188 188 container_xml = container.raw 189 model_xml = getattr(self,'model_xml','<list>\n</list>') 189 model_xml = getattr(self,'model_xml',None) 190 if model_xml is None: 191 model_xml = '<list>\n</list>' 192 self.model_xml = model_xml 193 self.model = [] 190 194 if container_xml != model_xml: 191 195 self.model_xml = container_xml … … 446 450 except: 447 451 pass 452 print "getEntities" 448 453 449 454 entities = [] … … 486 491 if len(l) > 0: 487 492 c += l + ' ' 488 if c.startswith('"') and c.find(' ') > 0: 489 col = {} 490 col["id"] = str(c[1:c.find(' ')-1]) 491 col["description"] =str(c[c.find(' ')+1:]) 492 columnBrwsrs.append(col) 493 cl = filter(lambda x: len(x.strip()) > 0, c.split(' ')) 494 if len(cl) >= 2: 495 cid = cl[0] 496 if cid.startswith('"') and cid.endswith('"'): 497 cid = cid[1:-1] 498 ucid = cid.upper() 499 uctype = cl[1].upper() 500 if not ucid == 'CHECK' and not uctype=='KEY' and not uctype.startswith('('): 501 col = {} 502 col["id"] = cid 503 col["description"] = ' '.join(cl[1:]) 504 columnBrwsrs.append(col) 493 505 else: 494 506 for columnBrwsr in tableBrwsr.tpValues():
Note: See TracChangeset
for help on using the changeset viewer.
