Internal API Documentation
Adhocracy does not have a public programming API. There is a plan to develop a
common Kernel interface for Liquid Democracy projects. Once such an API
becomes available, Adhocracy will be modified to implement that API.
Core polling logic
Delegation management and traversal
Database models and helper classes
Pylons provides a thread local variable
pylons.tmpl_context that is available in templates a
c. The following variables are commonly or always available in
- A adhocracy.model.Instance object or None. It is set by
adhocracy.lib.base.BaseController from a value determinated
by adhocracy.lib.instance.DescriminatorMiddleware from the
- A adhocracy.model.User object or None if unauthenticated.
It is set by adhocracy.lib.base.BaseController from a value
determinated by the repoze.who middleware.
- A str naming the current active top navigation item. It is set to
‘instance’ in adhocracy.lib.base.BaseController if the
request is made to an instance and can be overridden in any