venkatbo wrote:
> Hi folks,
>
> I was looking to add functionality in my TG-app which needs
> to use safely stored/retrieved (not from db) globals info.
> That includes access from within decorators and stateless
> utility function defs.
>
> I looked at fumanchu's dejavu pkg, but appears to be a
> heavyweight wrt resource usage. Can some point me to
> a lightwt way of achieving this. I can see how lock.acquire()
> and lock.release() can be used for thread safety, but 'am
> not sure how I can set it up so the globals are available
> app-wide, especially from within decorators and util functions.
>
> Thanks,
> /venkat
>
>
> >
>   
Hello,

I'm new to python so this might be totally off, but did you look into 
pickle (or much faster version, cPickle) module yet? You can dump 
(almost) any data type to file and then load it from there from any 
decorator/function.

Aleš

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to