Changeset 5
- Timestamp:
- 10/04/04 20:26:43
- Files:
-
- trunk/__init__.py (modified) (2 diffs)
- trunk/engines.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/__init__.py
r4 r5 88 88 89 89 class UnitProperty(object): 90 """D ejavu.Unit data which will persist in storage.90 """Data descriptor for Unit data which will persist in storage. 91 91 92 92 pre, post: Override these with functions to provide custom behaviors … … 220 220 descriptor=UnitProperty): 221 221 """Set a Unit Property for cls.""" 222 ## if hasattr(cls, key):223 ## raise ValueError(u"%s already has an attribute named '%s'."224 ## % (cls, key))225 222 setattr(cls, key, descriptor(cls, key, type, index)) 226 223 set_property = classmethod(set_property) trunk/engines.py
r4 r5 425 425 A.acquire() 426 426 try: 427 func( A)427 func(self.sandbox, A) 428 428 finally: 429 429 A.release()
