Changeset 500 for elixir/trunk
- Timestamp:
- 10/15/09 10:55:03 (3 years ago)
- Files:
-
- 1 modified
-
elixir/trunk/elixir/entity.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/entity.py
r497 r500 846 846 setattr(self, key, value) 847 847 848 @classmethod 848 849 def update_or_create(cls, data, surrogate=True): 849 850 pk_props = cls._descriptor.primary_key_properties … … 865 866 record.from_dict(data) 866 867 return record 867 update_or_create = classmethod(update_or_create)868 868 869 869 def from_dict(self, data):
