Ticket #21: elixir.patch
| File elixir.patch, 1.5 kB (added by guest, 6 years ago) |
|---|
-
elixir/options.py
157 157 table_options=dict(), 158 158 ) 159 159 160 colname_format = '%s_%s' 161 160 162 valid_options = options_defaults.keys() + [ 161 163 'metadata', 162 164 'session', -
elixir/entity.py
839 839 return cls.query.get(*args, **kwargs) 840 840 get = classmethod(get) 841 841 842 def set(self, **kw): 843 for k in kw: 844 setattr(self, k, kw[k]) 845 842 846 #-----------------# 843 847 # DEPRECATED LAND # 844 848 #-----------------# -
elixir/relationships.py
329 329 from sqlalchemy.ext.associationproxy import association_proxy 330 330 331 331 import sys 332 import options 332 333 333 334 __doc_all__ = [] 334 335 … … 545 546 if self.colname: 546 547 colname = self.colname[key_num] 547 548 else: 548 colname = '%s_%s'% (self.name, pk_col.key)549 colname = options.colname_format % (self.name, pk_col.key) 549 550 550 551 # we can't add the column to the table directly as the table 551 552 # might not be created yet.
