Changeset 532 for elixir/trunk/elixir/entity.py
- Timestamp:
- 09/02/10 12:21:58 (21 months ago)
- Files:
-
- 1 modified
-
elixir/trunk/elixir/entity.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/entity.py
r531 r532 881 881 if record is None: 882 882 if surrogate: 883 raise Exception(" cannot create surrogate with pk")883 raise Exception("Cannot create surrogate with pk") 884 884 else: 885 885 record = cls() … … 888 888 record = cls() 889 889 else: 890 raise Exception(" cannot create non surrogate without pk")890 raise Exception("Cannot create non surrogate without pk") 891 891 record.from_dict(data) 892 892 return record
