Changeset 164
- Timestamp:
- 07/30/07 00:47:39 (5 years ago)
- Location:
- elixir/trunk/elixir
- Files:
-
- 2 modified
-
entity.py (modified) (1 diff)
-
statements.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/entity.py
r161 r164 117 117 # try to setup all uninitialized relationships 118 118 EntityDescriptor.setup_relationships() 119 120 # finally, allow the statement to do any "finalization" 121 Statement.finalize(self.entity) 119 122 120 123 def translate_order_by(self, order_by): -
elixir/trunk/elixir/statements.py
r93 r164 24 24 statements = class_locals.setdefault(STATEMENTS, []) 25 25 statements.append((self, args, kwargs)) 26 26 27 @classmethod 28 def finalize(cls, entity): 29 for statement, args, kwargs in getattr(entity, STATEMENTS, []): 30 getattr(statement.target, 'finalize', lambda x: None)(entity) 31 32 @classmethod 27 33 def process(cls, entity): 28 34 ''' … … 33 39 for statement, args, kwargs in getattr(entity, STATEMENTS, []): 34 40 statement.target(entity, *args, **kwargs) 35 process = classmethod(process)
