Re: Global variables

2011-02-22 Thread Iain Duncan
On Sat, Feb 19, 2011 at 12:09 AM, Chris Withers wrote: > A bit late in on this one, sorry: > > > > On 18/02/2011 23:15, Iain Duncan wrote: > >> > > Some of us *do* write apps that expect to be extended / >>reconfigured via >> > > the ZCA registry, but Pyramid itself doesn't mandate th

Re: Global variables

2011-02-19 Thread Chris Withers
A bit late in on this one, sorry: On 18/02/2011 23:15, Iain Duncan wrote: > > Some of us *do* write apps that expect to be extended / reconfigured via > > the ZCA registry, but Pyramid itself doesn't mandate that (or even > > document it all that well). If such an app uses th

Re: Global variables

2011-02-18 Thread Iain Duncan
On Sat, Feb 12, 2011 at 9:53 AM, Chris McDonough wrote: > On Sat, 2011-02-12 at 09:43 -0800, Mike Orr wrote: > > On Wed, Feb 9, 2011 at 2:46 PM, Tres Seaver > wrote: > > > One bit I noticed: In > > > > https://bytebucket.org/sluggo/pyramid-docs/wiki/html/migration.html#app-globals-and-cache > ,

Re: Global variables

2011-02-12 Thread Rocky Burt
I don't think there's any concrete patterns yet for where such things get stuffed. I myself use a combination of items set on the application object itself and additionally in the registry ... and sometimes in the settings dict attached to the registry. For example, Khufu-SQLAHelper stores the

Re: Global variables

2011-02-12 Thread Chris McDonough
On Sat, 2011-02-12 at 09:43 -0800, Mike Orr wrote: > On Wed, Feb 9, 2011 at 2:46 PM, Tres Seaver wrote: > > One bit I noticed: In > > https://bytebucket.org/sluggo/pyramid-docs/wiki/html/migration.html#app-globals-and-cache, > > you state:: > > > > You can also use ordinary module globals or clas