Re: What is the best way to write a service object with Pylons

2007-09-02 Thread Max Ischenko
On 9/1/07, mickolka [EMAIL PROTECTED] wrote: Hi all I want to write a FileStorage service object with following features - should be configured on the start of the application - should be accessible from the any controller - have only one instance Pylons provide a `g` namespace for your

Re: What is the best way to write a service object with Pylons

2007-09-02 Thread mickolka
Thanks Max, seems like it makes sense to put it to global scope this way and configure programmaticaly. Just used to configure everything with XML, but programmatic object configuration with python seems to be less verbose than with Java. m On Sep 2, 4:01 pm, Max Ischenko [EMAIL PROTECTED]

What is the best way to write a service object with Pylons

2007-09-01 Thread mickolka
Hi all I want to write a FileStorage service object with following features - should be configured on the start of the application - should be accessible from the any controller - have only one instance What is the best way to do that? From the top of my head I can create some singleton and init