The Server class is a Draco object that provides access to server
variables and some information about the web server Draco is running on.
Server variables are shared amongst all handlers and templates in the web
application and persist forever. The global instance of the
Application class is stored under the name application
in the
current module.
Server variables depend on database access and are not available when
there is no database access. You can check if server variables are
available by testing the global server
instance for non-zeroness.
The Server object provides access to the server namespace using the namespace API. For example:
from draco.server import server server['spanish'] = 'inquisition' del server['spanish']
) |
The public methods of Server are:
scope) |
'__system__'
.
) |
) |
) |
) |
) |