root / elixir / tags / 0.5.1 / CHANGES

Revision 304, 13.1 kB (checked in by ged, 4 years ago)
  • update copyright notice for 2008
  • prepare for release
Line 
10.5.1 - 2008-02-07
2
3New features:
4- Added a new elixir plugin for managing entities as (ordered) lists.
5- Added a `column_format` keyword argument to `ManyToMany` which can be used
6  to specify an alternate format string for column names in the mapping table.
7- Added support for custom base classes which inherit from another class (ie
8  not directly from object).
9- Added an alternate (nicer) syntax to define synonym properties.  This syntax
10  has a more limited scope, except that it can refer to properties defined in
11  a parent entity. This is based on a patch from Alexandre da Silva.
12
13Changes:
14- Added check so that using an inexisting column in an order_by or other
15  column-name based argument raises an exception.
16- The polymorphic_identity kwarg in using_mapper_options is not overriden
17  anymore by the one generated by Elixir (patch from Ben Bangert).
18- Moved the format of the multi-table inheritance column to a constant in
19  options (so that it can be changed globally).
20- The foreign key constraint of the column in a multi-table inheritance is
21  configured with a cascade rule.
22
23Bug fixes:
24- A child entity doesn't inherit anymore its parent entity statements (such as
25  options) if it doesn't use any statement itself.
26- Made inheritance work for custom base classes (closes #25).
27- Fixed the inverse relationship matching when the inverse relationship is
28  defined in a parent Entity (thanks to Alexandre da Silva).
29- Fixed bug in setup_entities (it always used the global entity list and not
30  the list given as argument).
31- Fixed the versioning extension not appropriately handling versioned
32  entities with onupdate events (patch from Remi Jolin, closes #29).
33- Fixed videostore example (patch from Jason R. Coombs, closes #31).
34
350.5.0 - 2007-12-08
36
37Please see http://elixir.ematia.de/trac/wiki/Migrate04to05 for detailed
38upgrade notes.
39
40New features:
41- Added set method on base Entity (set attributes using kwargs)
42
43Changes:
44- Autosetup defaults to False ! (please look at those upgrade notes!)
45- Polymorphic defaults to True (inheritance is polymorphic by default).
46- Removed one of the autosetup triggers altogether: there is no "fake" mapper
47  registered in SQLAlchemy's mapper_registry anymore, so if you try to
48  access the class mapper directly (not through the 'mapper' attribute on
49  the class), before the setup phase happens, it won't work. This was done
50  because of a change in SQLAlchemy trunk (future SA 0.4.2) which broke that
51  piece of code (and prevented to use autosetup at all). Since that code
52  was a hack in the first place, instead of doing some even uglier hackery,
53  I got rid of it altogether.
54- Moved some format strings to constants in options, so that one can change
55  them if he wants to.
56- Allow overriding primary_key columns on autoloaded entities (closes tickets
57  #20 and #22)
58- Columns created by ManyToOne relationships can now optionally (through
59  column_kwargs) *not* create an index (ie it's not harcoded anymore).
60  Suggestion by Jason R. Coombs.
61
62Bug fixes:
63- Fixed a nasty bug which prevented inheritance to work correctly when using
64  the attribute syntax in many cases.
65- Fixed associable extension to work with SQLAlchemy trunk (future 0.4.2).
66- Fixed an incompatibility with zope.interfaces.
67- Tweaked the initialization sequence again (in fact revert an older change)
68  which prevented to reuse class properties of one class in other (subsequent)
69  classes.
70- Fixed our tests to work with SA trunk (future 0.4.2) (unicode data + use of
71  deprecated attributes)
72
730.4.0 - 2007-10-29
74
75Please see http://elixir.ematia.de/trac/wiki/Migrate03to04 for detailed
76upgrade notes.
77
78New features:
79- Implemented a new syntax to declare fields and relationships, much closer to
80  what is found in other Python ORM's. The with_fields syntax is now
81  deprecated in favor of a that new syntax. The old statement based (has_field
82  et al.) syntax is still available though (and will remain so for quite some
83  time). This was done with help from a patch by Adam Gomaa.
84- Implemented polymorphic single-table inheritance as well as polymorphic and
85  non-polymorphic multi-table (aka joined table) inheritance.
86- Added ext sub-package for additional Elixir statements.
87- Added associable extension for generating polymorphic associations with
88  Elixir statements.
89- Added versioning extension to keep track to all changes to your entities by
90  storing them in a secondary table.
91- Added encryption extenstion to encrypt/decrypt some fields data on the fly
92  when writing to/reading from the database.
93- Added support for synonym properties.
94- Added shortcut syntax to define column_properties.
95- Added a .query attribute on all entities. The old .query() syntax is still
96  available.
97- Added support to add any SQLAlchemy property on your mapper, through the
98  GenericProperty class (as well as the has_property statement). These can
99  work even if they rely on the entity columns (an thus need them to be
100  defined before the property can be declared). See tests/test_properties.py
101  for examples.
102- Added support for "manual session management" (ie you can now define an
103  entity with "using_options(session=None)" and it won't use any
104  SessionContext extension, nor receive the "query" attribute.
105- Made the statement system more powerfull.
106
107Changes:
108- The setup time was changed. That is the table and mapper are not created as
109  soon as the class is defined, but rather when first used, or when explicitly
110  calling the setup function (recommended). This also allowed us to reorder
111  the setup process and allows, among others to use a ManyToOne-generated
112  column as a primary key, to use unique constraints on those columns, to
113  order by those columns and so on...
114- Made Elixir work with both SQLAlchemy 0.4 and 0.3.10 (with help from a patch
115  by Ants Aasma).
116- Moved away from assign_mapper, now all assign_mapper-provided methods are on
117  the Entity class. Now, if people don't like them, they have the option to
118  simply provide another base class.
119- Default objectstore is now a ScopedSession when working on SQLAlchemy 0.4.
120  It means that it's not wrapped in an Objectstore object at all. This means,
121  that depending on the version of SA you are using, you'll get a slightly
122  different behavior.
123- Relationships to other classes can now also be defined using the classes
124  themselves in addition to the class namees. Obviously, this doesn't work for
125  forward references.
126- Classes defined inside a function can now have relationships to each other.
127- Added default __init__ method on entities so that subclasses can override it
128  and still have the "set attribute by keyword" behavior by calling super()
129- Added "through" and "via" keyword arguments on relationships and has_field
130  statement, to proxy values through relationships (uses association_proxy)
131- Made EntityMeta public, so that people can actually define their own base
132  class.
133- Changed the order of relationship kwargs processing so that computed kwargs
134  can be overridden by kwargs manually passed to the statement. This should
135  only be used if you know what you are doing.
136- Added onupdate kwarg to BelongsTo relationships for consistency with the
137  ondelete kwarg
138- Added ondelete and onupdate kwargs for use with has_and_belongs_to_many
139  to apply on delete clauses to foreign key constraints on the m2m table.
140- Columns of the intermediary table of an has_and_belongs_to_many relationship
141  are now marked as primary keys.
142- Reworked how entities look for primary keys on related entities. This
143  enables one "normal" entity (fully defined in Elixir) to refer to an entity
144  which is autoloaded.
145- Added translation (from column name to column object) of the primary_key
146  mapper option so that it can actually be used. This allows to have entities
147  without any primary key defined at the table level.
148- Added the possibility to give a custom name for ManyToOne constraints
149  (patch from and closes ticket #16)
150- Dropped support for the old threadlocal SA extension (which doesn't even exist
151  anymore in SA 0.4)
152
153Bug fixes:
154- Reworked/cleaned tests so that they don't leak stuff to other tests (both at
155  the method level and module level) anymore. Uses nosetest's module level
156  fixture.
157- Fixed relationships to entities whose primary_key field has been defined
158  with a "key" argument (based on a patch by Paul Johnston).
159- Fixed some buggy tests.
160- Fixed relationships to tables using a schema (patch by Neil Blakey-Milner)
161- Made inverse relationships use backrefs. This fixes the "bidirectional
162  coherency" problem some people had before doing a flush. (based on a patch
163  from Remi Jolin).
164
1650.3.0 - 2007-03-27
166- Made the provided metadata not threadlocal. This could break things for you
167  in some rare case. Please see the (newly created) FAQ file for details about
168  this.
169- Added support for autoloading/reflecting databases with
170  has_and_belongs_to_many relationships. The tablename argument is now
171  optional, but still recommended, otherwise you'll have to use the same exact
172  name for your intermediary table than the one generated. You also _have to_
173  specify at least one of either local_side or remote_side argument.
174- Added support for the "version_id_col" option on entities. This option adds
175  a column to the table which will be used to prevent concurrent modifications
176  on any row of the entity's table (i.e. it will raise an error if it happens).
177- Made the colname argument optional for belongs_to relationships in
178  autoloaded entities. It is only required to specify it if you have several
179  belongs_to relationships between two entities/tables.
180- Applied patch from "Wavy" so that columns of a table are in the same order
181  as they were declared (this only works for the has_field statement).
182- Applied patch from Isaac Csandl to add an "ondelete" argument to
183  belongs_to relationships. The content of that argument is forwarded to the
184  foreign key constraint.
185- Foreign key names generated by belongs_to relationships use column names
186  instead of relation names in case we have a relation with the same name
187  defined in several entities inheriting from the same entity using single-
188  table inheritance (and we set a custom column name in one of them to avoid
189  a column-name conflict).
190- Using invalid options on entities will now raise an exception
191- Added __version__
192- Use an explicit metaclass for entities, so that people can define their own
193  base class.
194- Changed the approach to reflecting/autoloading belongs_to relationships.
195  This shouldn't change anything to how it's used but allowed me to factor
196  some code with has_and_belongs_to_many relationships.
197- The tablename option can now be given a callable so that people can provide
198  their own function to get the table name for an entity. The tablename option
199  can now also be set globally (using the options_defaults dictionary). Of
200  course, this only makes sense for the callable usecase.
201
202- Fixed bug preventing having entities without any statement.
203- Fixed documentation for belongs_to relationships (the arguemnt is "required",
204  not "nullable").
205- Fixed typo which broke the use_alter argument on belongs_to relationships.
206- Fixed inheritance unit test to pass SQLAlchemy type check on relations
207  (introduced in SA 0.3.6)
208- Fixed wrong field length in autoload test (it was not noticeable with sqlite).
209- Actually make the code python 2.3 compatible (Robin's patch was based on
210  0.1.0 while I had introduced more decorators in the trunk in the mean time).
211
212- Made some PEP8 tweaks in many places. Used the pep8 script provided with
213  Cheesecake.
214- Some cleanup/useless code removal
215
2160.2.0 - 2007-02-28
217- Applied patch from Robin Munn to make the code python 2.3 compatible
218- Per a suggestion on the mailing list, look at the calling stack frame to
219  ensure that we apply statements to the proper class.  We now attach the
220  statement list to the class itself, rather than attaching it to a global
221  list that is neither threadsafe, nor safe when doing nested class
222  definition.  Also added a test to validate that this works.
223- implemented singletable non-polymorphic inheritance
224- added support to pass non-keyword arguments to tables. You just pass
225  them to the using_table_options statement and they will be forwarded to the
226  table along with the keyword arguments. This can be used to set table
227  constraints.
228- added support for deferred columns (use the "deferred" keyword argument on
229  fields)
230- added a "required" keyword argument on fields and BelongsTo
231  relationships. This is the opposite of the "nullable" SA argument.
232- added a "column_kwargs" keyword argument to BelongsTo relationships
233  to forward any keyword argument directly to the SA Column.
234- added support for the use_alter and constraint_kwargs kwargs on BelongsTo
235  relationships (forwarded to SA ForeignKeyConstraint).
236    -> removed the systematic use_alter on BelongsTo relations since it
237       can now be specified only when needed.
238    -> removed it from HasAndBelongsToMany relations, since I think a
239       circular foreign key dependency can't happen with those relations.
240- fixed foreign key names on MySQL (and possibly other) databases by
241  making sure the generated name is unique for the whole database, and not
242  only for the table on which it applies.
243- corrected some docstrings
244
2450.1.0 - 2007-02-12
246initial release
Note: See TracBrowser for help on using the browser.