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

Badge

Comment

Delegateable

Delegation

Event

Group

Instance

Membership

Milestone

Openid

Page

Permission

Poll

Proposal

Revision

Selection

Tag

Tagging

Tally

Text

Twitter

User

Vote

Watch

Template Variables

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 templates:

c.instance
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 host name.
c.user
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.
c.active_global_nav
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 controller.