Changeset 84
- Timestamp:
- 03/07/07 12:19:47 (6 years ago)
- Location:
- elixir/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (2 diffs)
-
elixir/relationships.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/CHANGES
r83 r84 10 10 autoloaded entities. It is only required to specify it if you have several 11 11 belongs_to relationships between two entities/tables. 12 - Fixed bug preventing having entities without any statement.13 12 - Applied patch from "Wavy" so that columns of a table are in the same order 14 13 as they were declared. 15 - Made some PEP8 tweaks in many places. Used the pep8 script provided with16 Cheesecake.17 14 - Foreign key names generated by belongs_to relationships use column names 18 15 instead of relation names in case we have a relation with the same name … … 20 17 table inheritance (and we set a custom column name in one of them to avoid 21 18 a column-name conflict). 19 - Using invalid options on entities will now raise an exception 20 - Fixed bug preventing having entities without any statement. 21 - Fixed documentation for belongs_to relationships (the arguemnt is "required", 22 not "nullable"). 23 - Fixed typo which broke the use_alter argument on belongs_to relationships. 22 24 - Actually make the code python 2.3 compatible (Robin's patch was based on 23 25 0.1.0 while I had introduced more decorators in the trunk in the mean time). 24 - Using invalid options on entities will now raise an exception 26 - Made some PEP8 tweaks in many places. Used the pep8 script provided with 27 Cheesecake. 25 28 - Some cleanup/useless code removal 26 29 -
elixir/trunk/elixir/relationships.py
r82 r84 70 70 | ``colname`` | Specify a custom column name. | 71 71 +----------------------+------------------------------------------------------+ 72 | ``nullable`` | True if this column should allow nulls. Defaults to | 73 | | True unless this column is a primary key column. | 72 | ``required`` | Specify whether or not this field can be set to None | 73 | | (left without a value). Defaults to ``False``, | 74 | | unless the field is a primary key. | 74 75 +----------------------+------------------------------------------------------+ 75 76 | ``column_kwargs`` | A dictionary holding any other keyword argument you | … … 321 322 self.constraint_kwargs = kwargs.pop('constraint_kwargs', {}) 322 323 if 'use_alter' in kwargs: 323 self.con traint_kwargs['use_alter'] = kwargs.pop('use_alter')324 self.constraint_kwargs['use_alter'] = kwargs.pop('use_alter') 324 325 325 326 self.foreign_key = list()
