On 5/23/11 11:20 , neurino wrote:
@Wichert:

Where do you see that in Pyramid?

here:

http://docs.pylonsproject.org/projects/pyramid/1.0/tutorials/wiki2/basiclayout.html#content-models-with-models-py
(code row #29)

That code is run when initialising the application, not during normal request processing. That is an entirely different context, so any patterns you use there are not necessarily suitable for using in a view context.

The approach that example uses of creating initial data on app startup is in my opinion a very bad pattern and not something I would recommend. Creating tables and adding initial content is better done with paster setup-app or another separate command.

Wichert.

--
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To post to this group, send email to pylons-devel@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-devel?hl=en.

Reply via email to