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
mid itself doesn't mandate that (or even > > > document it all that well). If such an app uses the "global" ZCA APIs, > > > it won't benefit from Pyramid's segregated registries, but that is no > > > different from use of any other global (modul

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
segregated registries, but that is no > > different from use of any other global (module- or class-scope > > variables, etc.) > > I just got back from my trip. So what's the official recommendation > for arbitrary global variables? I just wrote what I thought would be > safe

Global variables

2011-02-12 Thread Mike Orr
document it all that well).  If such an app uses the "global" ZCA APIs, > it won't benefit from Pyramid's segregated registries, but that is no > different from use of any other global (module- or class-scope > variables, etc.) I just got back from my trip. So what