- changed milestone to 0.3.0
custom list classes should be specified in relation()
Issue #212
resolved
custom list types are specifeid like this:
class Foo(object):
elements: sets.Set
mapper(Foo, table, properties={'elements':relation(Element)})
having the sets.Set
specified at the class level is inconsistent with everything else. this is a leftover from the old way this was done where classes would construct the list class themselves, etc. now it should be:
class Foo(object):
pass
mapper(Foo, table, properties={'elements':relation(Element, collection=sets.Set)})
and deprecate the other way of doing it.
Comments (4)
-
reporter -
reporter - marked as major
-
reporter - changed status to resolved
-
reporter - removed milestone
Removing milestone: 0.3.0 (automated comment)
- Log in to comment