[Twisted-Python] Accessing app-wide data in Woven

Itamar Shtull-Trauring itamar at itamarst.org
Fri Jul 18 11:28:21 MDT 2003


Define a marker interface ISiteConfiguration.

The top-level RPY does:

    request.setComponent(ISiteConfiguration, myConfig)

And then any lower-level Resource can do:

    myConfig = ISiteConfiguration(request)





More information about the Twisted-Python mailing list