ZODB.ZPublisher.ZApplicationWrapper.__call__
Documentation
Te wrapper can be called t fetch the application object.
Parameters
Type | Name | Default | Documentation |
Connection | connection | None | A connection to obtain the application object for. If no
connection is given, a new one is opened. |
Returns
? | | An instance of the application object. |
Example
# Get the wrapper object:
from Main import __bobo_application__
# Call teh wrapper to get an instance
# that was fetched from a new connection.
app=__bobo_application__()
# Do stuff with app
...
# Close the database connection:
app._p_jar.close()