root / elixir / trunk / CHANGES @ 266

Revision 266, 9.8 kB (checked in by ged, 6 years ago)

changelog fix

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