Changeset 505 for elixir/trunk/elixir
- Timestamp:
- 10/15/09 14:41:44 (3 years ago)
- Location:
- elixir/trunk/elixir
- Files:
-
- 2 modified
-
entity.py (modified) (1 diff)
-
options.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/entity.py
r504 r505 145 145 self.identity = self.mapper_options['polymorphic_identity'] 146 146 else: 147 #TODO: include module name 147 #TODO: include module name (We could have b.Account inherit 148 # from a.Account) 148 149 self.identity = entity.__name__.lower() 149 150 elif 'polymorphic_identity' in self.mapper_options: -
elixir/trunk/elixir/options.py
r502 r505 231 231 raise Exception("'%s' is not a valid option for Elixir entities." 232 232 % kwarg) 233 234 entity.options_defaults = kwargs 233 if not hasattr(entity, 'options_defaults'): 234 entity.options_defaults = {} 235 entity.options_defaults.update(kwargs) 235 236 236 237 … … 245 246 246 247 def using_table_options_handler(entity, *args, **kwargs): 247 entity._descriptor.table_args = list(args)248 entity._descriptor.table_args.extend(list(args)) 248 249 entity._descriptor.table_options.update(kwargs) 249 250
