- Timestamp:
- 27 May 2009, 08:19:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
waeup/branches/ulif-rewrite/src/waeup/datacenter.py
r4173 r4175 6 6 import os 7 7 import shutil 8 import struct 8 9 import sys 9 10 import grok … … 136 137 this case we can use the memory address of it. 137 138 """ 138 if hasattr(obj, '_p_oid'): 139 return getattr(obj, '_p_oid') 140 return str(id(obj)) 139 if not hasattr(obj, '_p_oid'): 140 return str(id(obj)) 141 oid = getattr(obj, '_p_oid') 142 return str(struct.unpack('>Q', oid)[0]) 141 143 142 144 … … 249 251 def __init__(self, filedescr, importers): 250 252 self.file = filedescr 251 self.importers = importers 253 self.importers = [] 254 for importer, receiverid in importers: 255 importer.receiverid = receiverid 256 self.importers.append(importer) 252 257 253 258 class ImportCSVMain(grok.Viewlet):
Note: See TracChangeset for help on using the changeset viewer.