Re: [pylons-devel] Adding custom properties to the request, or how is the request meant to be used?

2016-01-29 Thread Paul Everitt
m Freitag, 29. Januar 2016 14:00:08 UTC+1 schrieb Paul Everitt: > I think what some people do is put *one* object on the request, such as > request.api, as an instance of a class with a bunch of @reify properties and > methods such as request.api.db. > > This lets you avoid the kin

Re: [pylons-devel] Best Practices with ORM use

2016-01-07 Thread Paul Everitt
For the O’Reilly video series on Pyramid (and for the proposed PyCon talk with @mmerickel), I emphasized route factories. Move the location of the model instance out of the view and into the framework, namely, a context variable passed into the view. I then moved more helper-style logic into

Re: use of specified as in documentation

2013-01-22 Thread Paul Everitt
FWIW, later in the month I plan to do some docs work, so any pull requests you can file would be great. --Paul On Monday, January 21, 2013 10:53:03 PM UTC-8, Tshepang Lekhonkhobe wrote: As an example, given this piece of doc: render(renderer_name, value, request=None, package=None) As

Re: pyramid terminology: model-resource

2010-12-17 Thread Paul Everitt
Me too. Of course, when something makes sense to me (e.g. XSLT) it is usual a sign of impending doom. --Paul On 12/17/10 9:05 AM, Chris Rossi wrote: Sold. +1 Chris On Thu, Dec 16, 2010 at 11:57 PM, Mark Rammmark.mchristen...@gmail.comwrote: So, I will confess to being the one who

Re: Pyramid project templates

2010-12-08 Thread Paul Everitt
On 12/6/10 10:56 PM, jorge.var...@gmail.com wrote: My 0.02 cents on this. From many bad nights of chasing bugs with TurboGears' quickstart command. Make it as simple as possible! In TG it was decided to go the Full project route and then having experience users delete what's not needed. Back