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
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]
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