Changeset 70
- Timestamp:
- 02/22/07 09:30:26 (6 years ago)
- Location:
- elixir/trunk
- Files:
-
- 6 modified
-
CHANGES (modified) (1 diff)
-
elixir/__init__.py (modified) (1 diff)
-
elixir/entity.py (modified) (2 diffs)
-
elixir/fields.py (modified) (2 diffs)
-
elixir/relationships.py (modified) (3 diffs)
-
elixir/statements.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/CHANGES
r65 r70 1 1 0.1.1 2 - Applied patch from Robin Munn to make the code python 2.3 compatible 2 3 - Per a suggestion on the mailing list, look at the calling stack frame to 3 4 ensure that we apply statements to the proper class. We now attach the -
elixir/trunk/elixir/__init__.py
r64 r70 25 25 from elixir.fields import * 26 26 from elixir.relationships import * 27 28 try: 29 set 30 except NameError: 31 from sets import Set as set 27 32 28 33 __all__ = ['Entity', 'Field', 'has_field', 'with_fields', -
elixir/trunk/elixir/entity.py
r66 r70 8 8 from elixir.fields import Field 9 9 from elixir.options import options_defaults 10 11 try: 12 set 13 except NameError: 14 from sets import Set as set 10 15 11 16 import sys … … 263 268 return res 264 269 265 @classmethod266 270 def setup_relationships(cls): 267 271 for relationship in list(EntityDescriptor.uninitialized_rels): 268 272 if relationship.setup(): 269 273 EntityDescriptor.uninitialized_rels.remove(relationship) 274 setup_relationships = classmethod(setup_relationships) 270 275 271 276 -
elixir/trunk/elixir/fields.py
r64 r70 80 80 self.kwargs = kwargs 81 81 82 @property83 82 def column(self): 84 83 ''' … … 90 89 *self.args, **self.kwargs) 91 90 return self._column 91 column = property(column) 92 92 93 93 -
elixir/trunk/elixir/relationships.py
r67 r70 235 235 return True 236 236 237 @property238 237 def target(self): 239 238 if not self._target: … … 264 263 265 264 return self._target 266 267 @property265 target = property(target) 266 268 267 def inverse(self): 269 268 if not self._inverse: … … 288 287 289 288 return self._inverse 289 inverse = property(inverse) 290 290 291 291 def match_type_of(self, other): -
elixir/trunk/elixir/statements.py
r64 r70 24 24 statements.append((self, args, kwargs)) 25 25 26 @classmethod27 26 def process(cls, entity): 28 27 ''' … … 33 32 for statement, args, kwargs in getattr(entity, STATEMENTS): 34 33 statement.target(entity, *args, **kwargs) 34 process = classmethod(process)
