Hi,
I don't understand the purpose of the __iter__ method of the MyRoot class
in the alchemy scaffold:
def __iter__(self):
session= DBSession()
query = session.query(MyModel)
return iter(query)
When is it called by pyramid ? Should that be overriden ? Should that be
defined in childs resources ?
I can't see any doc on the subject.
Thanks
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.