[Twisted-Python] an easy twisted application question

Phil Christensen phil at bubblehouse.org
Tue Nov 11 12:03:39 MST 2003


okay, so if i've got a tap with the following updateApplication method:

def updateApplication(app, config):
	app.registry = registry.Registry()
	...
	...

and i want to access that app.registry attribute from an arbitrary
location, how do i do it?

i seem to remember hearing that there was only one instance of Application
in a process, so does that mean that there's some (forgive the Java-speak)
static method defined on the Application module that will get the current
running instance?

thanks in advance,

-phil




More information about the Twisted-Python mailing list