root / elixir / trunk / CHANGES @ 250

Revision 250, 9.6 kB (checked in by ged, 7 years ago)

let's release

10.4.0 - 2007-10-29
3Please see for detailed
4upgrade notes.
6New features:
7- Implemented a new syntax to declare fields and relationships, much closer to
8  what is found in other Python ORM's. The with_fields syntax is now
9  deprecated in favor of a that new syntax. The old statement based (has_field
10  et al.) syntax is still available though (and will remain so for quite some
11  time). This was done with help from a patch by Adam Gomaa.
12- Implemented polymorphic single-table inheritance as well as polymorphic and
13  non-polymorphic multi-table (aka joined table) inheritance.
14- Added ext sub-package for additional Elixir statements.
15- Added associable extension for generating polymorphic associations with
16  Elixir statements.
17- Added versioning extension to keep track to all changes to your entities by
18  storing them in a secondary table.
19- Added encryption extenstion to encrypt/decrypt some fields data on the fly
20  when writing to/reading from the database.
21- Added support for synonym properties.
22- Added shortcut syntax to define column_properties.
23- Added a .query attribute on all entities. The old .query() syntax is still
24  available.
25- Added support to add any SQLAlchemy property on your mapper, through the
26  GenericProperty class (as well as the has_property statement). These can
27  work even if they rely on the entity columns (an thus need them to be
28  defined before the property can be declared). See tests/
29  for examples.
30- Added support for "manual session management" (ie you can now define an
31  entity with "using_options(session=None)" and it won't use any
32  SessionContext extension, nor receive the "query" attribute.
33- Made the statement system more powerfull.
36- The setup time was changed. That is the table and mapper are not created as
37  soon as the class is defined, but rather when first used, or when explicitly
38  calling the setup function (recommended). This also allowed us to reorder
39  the setup process and allows, among others to use a ManyToOne-generated
40  column as a primary key, to use unique constraints on those columns, to
41  order by those columns and so on...
42- Made Elixir work with both SQLAlchemy 0.4 and 0.3.10 (with help from a patch
43  by Ants Aasma).
44- Moved away from assign_mapper, now all assign_mapper-provided methods are on
45  the Entity class. Now, if people don't like them, they have the option to
46  simply provide another base class.
47- Default objectstore is now a ScopedSession when working on SQLAlchemy 0.4.
48  It means that it's not wrapped in an Objectstore object at all. This means,
49  that depending on the version of SA you are using, you'll get a slightly
50  different behavior.
51- Relationships to other classes can now also be defined using the classes
52  themselves in addition to the class namees. Obviously, this doesn't work for
53  forward references.
54- Classes defined inside a function can now have relationships to each other.
55- Added default __init__ method on entities so that subclasses can override it
56  and still have the "set attribute by keyword" behavior by calling super()
57- Added "through" and "via" keyword arguments on relationships and has_field
58  statement, to proxy values through relationships (uses association_proxy)
59- Made EntityMeta public, so that people can actually define their own base
60  class.
61- Changed the order of relationship kwargs processing so that computed kwargs
62  can be overridden by kwargs manually passed to the statement. This should
63  only be used if you know what you are doing.
64- Added onupdate kwarg to BelongsTo relationships for consistency with the
65  ondelete kwarg
66- Added ondelete and onupdate kwargs for use with has_and_belongs_to_many
67  to apply on delete clauses to foreign key constraints on the m2m table.
68- Columns of the intermediary table of an has_and_belongs_to_many relationship
69  are now marked as primary keys.
70- Reworked how entities look for primary keys on related entities. This
71  enables one "normal" entity (fully defined in Elixir) to refer to an entity
72  which is autoloaded.
73- Added translation (from column name to column object) of the primary_key
74  mapper option so that it can actually be used. This allows to have entities
75  without any primary key defined at the table level.
76- Added the possibility to give a custom name for ManyToOne constraints
77  (patch from and closes ticket #16)
78- Dropped support for the old threadlocal SA extension (which doesn't even exist
79  anymore in SA 0.4)
81Bug fixes:
82- Reworked/cleaned tests so that they don't leak stuff to other tests (both at
83  the method level and module level) anymore. Uses nosetest's module level
84  fixture.
85- Fixed relationships to entities whose primary_key field has been defined
86  with a "key" argument (based on a patch by Paul Johnston).
87- Fixed some buggy tests.
88- Fixed relationships to tables using a schema (patch by Neil Blakey-Milner)
89- Made inverse relationships use backrefs. This fixes the "bidirectional
90  coherency" problem some people had before doing a flush. (based on a patch
91  from Remi Jolin).
930.3.0 - 2007-03-27
94- Made the provided metadata not threadlocal. This could break things for you
95  in some rare case. Please see the (newly created) FAQ file for details about
96  this.
97- Added support for autoloading/reflecting databases with
98  has_and_belongs_to_many relationships. The tablename argument is now
99  optional, but still recommended, otherwise you'll have to use the same exact
100  name for your intermediary table than the one generated. You also _have to_
101  specify at least one of either local_side or remote_side argument.
102- Added support for the "version_id_col" option on entities. This option adds
103  a column to the table which will be used to prevent concurrent modifications
104  on any row of the entity's table (i.e. it will raise an error if it happens).
105- Made the colname argument optional for belongs_to relationships in
106  autoloaded entities. It is only required to specify it if you have several
107  belongs_to relationships between two entities/tables.
108- Applied patch from "Wavy" so that columns of a table are in the same order
109  as they were declared (this only works for the has_field statement).
110- Applied patch from Isaac Csandl to add an "ondelete" argument to
111  belongs_to relationships. The content of that argument is forwarded to the
112  foreign key constraint.
113- Foreign key names generated by belongs_to relationships use column names
114  instead of relation names in case we have a relation with the same name
115  defined in several entities inheriting from the same entity using single-
116  table inheritance (and we set a custom column name in one of them to avoid
117  a column-name conflict).
118- Using invalid options on entities will now raise an exception
119- Added __version__
120- Use an explicit metaclass for entities, so that people can define their own
121  base class.
122- Changed the approach to reflecting/autoloading belongs_to relationships.
123  This shouldn't change anything to how it's used but allowed me to factor
124  some code with has_and_belongs_to_many relationships.
125- The tablename option can now be given a callable so that people can provide
126  their own function to get the table name for an entity. The tablename option
127  can now also be set globally (using the options_defaults dictionary). Of
128  course, this only makes sense for the callable usecase.
130- Fixed bug preventing having entities without any statement.
131- Fixed documentation for belongs_to relationships (the arguemnt is "required",
132  not "nullable").
133- Fixed typo which broke the use_alter argument on belongs_to relationships.
134- Fixed inheritance unit test to pass SQLAlchemy type check on relations
135  (introduced in SA 0.3.6)
136- Fixed wrong field length in autoload test (it was not noticeable with sqlite).
137- Actually make the code python 2.3 compatible (Robin's patch was based on
138  0.1.0 while I had introduced more decorators in the trunk in the mean time).
140- Made some PEP8 tweaks in many places. Used the pep8 script provided with
141  Cheesecake.
142- Some cleanup/useless code removal
1440.2.0 - 2007-02-28
145- Applied patch from Robin Munn to make the code python 2.3 compatible
146- Per a suggestion on the mailing list, look at the calling stack frame to
147  ensure that we apply statements to the proper class.  We now attach the
148  statement list to the class itself, rather than attaching it to a global
149  list that is neither threadsafe, nor safe when doing nested class
150  definition.  Also added a test to validate that this works.
151- implemented singletable non-polymorphic inheritance
152- added support to pass non-keyword arguments to tables. You just pass
153  them to the using_table_options statement and they will be forwarded to the
154  table along with the keyword arguments. This can be used to set table
155  constraints.
156- added support for deferred columns (use the "deferred" keyword argument on
157  fields)
158- added a "required" keyword argument on fields and BelongsTo
159  relationships. This is the opposite of the "nullable" SA argument.
160- added a "column_kwargs" keyword argument to BelongsTo relationships
161  to forward any keyword argument directly to the SA Column.
162- added support for the use_alter and constraint_kwargs kwargs on BelongsTo
163  relationships (forwarded to SA ForeignKeyConstraint).
164    -> removed the systematic use_alter on BelongsTo relations since it
165       can now be specified only when needed.
166    -> removed it from HasAndBelongsToMany relations, since I think a
167       circular foreign key dependency can't happen with those relations.
168- fixed foreign key names on MySQL (and possibly other) databases by
169  making sure the generated name is unique for the whole database, and not
170  only for the table on which it applies.
171- corrected some docstrings
1730.1.0 - 2007-02-12
174initial release
Note: See TracBrowser for help on using the browser.