One can override the following variables :
LOG_LEVEL : The log level, from 0 to 5.
LOG_NONE = 0 => No log output LOG_CRITICAL = 1 => Critical problems (data consistency, module integrity, ...) LOG_ERROR = 2 => Error (runtime exceptions, ...) LOG_WARNING = 3 => Warning (non-blocking exceptions, ...) LOG_NOTICE = 4 => Notices (Special conditions, ...) LOG_DEBUG = 5 => Debug (Debugging information)
LOG_PROCESSOR : A dictionnary holding, for each key, the data processor.
FormatStack(stack) => string
Return a 'loggable' version of the stack trace
Log.FormatStack
Log(level, *args) => Pretty-prints data on the console with additional information.
Log.Log
LogFile : writes data to the LOG_OUTPUT file.
Log.LogFile
LogzLog : writes data though Zope's logging facility
Log.LogzLog
PlonePopoll product
PlonePopollBackend => A simple poll management interface
PlonePopollBackend.PlonePopollBackend
Methods: (__init__, _post_init, getResults, vote)
- method __init__ () __init__(self) -> initialization method
PlonePopollBackend.PlonePopollBackend.__init__
- method _post_init () _post_init(self) => called from manage_add method
PlonePopollBackend.PlonePopollBackend._post_init
- method getResults () getResults(self,) => return results as a dictionary:
{
id: {count: 0,},
}
PlonePopollBackend.PlonePopollBackend.getResults
PlonePopollZODBBackend => A simple ZODB poll backend implementation
PlonePopollBackend.PlonePopollZODBBackend
Methods: (__init__, _getResults, clearResults, getPersonVoteCount, getResults, hasAlreadyVoted, removeUserVote, vote)
PlonePopollBackend.PlonePopollZODBBackend.__init__
- method _getResults () _getResults(self,) => private method for returning results
PlonePopollBackend.PlonePopollZODBBackend._getResults
- method clearResults (poll_id) clearResults(self,) -> reset the _results dict of the poll_id to {}
PlonePopollBackend.PlonePopollZODBBackend.clearResults
- method getPersonVoteCount (poll_id) getPersonVoteCount(self, poll_id) -> int person count
PlonePopollBackend.PlonePopollZODBBackend.getPersonVoteCount
- method getResults (poll_id) getResults(self,) -> dict {choice: {'count': count}}
PlonePopollBackend.PlonePopollZODBBackend.getResults
PlonePopollBackend.PlonePopollZODBBackend.hasAlreadyVoted
- method removeUserVote (poll_id, unicity_factor) remove the previous vote
PlonePopollBackend.PlonePopollZODBBackend.removeUserVote
- method vote (poll_id, choice, unicity_factor, REQUEST = {}, **kw) vote
PlonePopollBackend.PlonePopollZODBBackend.vote
PlonePopollZSQLBackend => A simple ZSQL poll backend implementation
PlonePopollBackend.PlonePopollZSQLBackend
Methods: (_post_init, getResults, vote)
- method _post_init () _post_init(self,) => acquisition-aware init method
PlonePopollBackend.PlonePopollZSQLBackend._post_init
- method getResults (poll_id) getResults(self,) -> dict {choice: {'count': count}}
PlonePopollBackend.PlonePopollZSQLBackend.getResults
- method vote (poll_id, choice, unicity_factor, REQUEST = {}, **kw) vote
PlonePopollBackend.PlonePopollZSQLBackend.vote
PlonePopollBackend.manage_addPlonePopollZODBBackend
PlonePopollBackend.manage_addPlonePopollZSQLBackend
PlonePopollTool main class
PlonePopollTool tool
PlonePopollTool.PlonePopollTool
Methods: (_post_init, canVote, getBackend, getPortletConfiguration, getVoteUnicity, listBackends, manage_migrate, setPortletConfiguration)
PlonePopollTool.PlonePopollTool._post_init
- method canVote (poll) Check permission for voting
PlonePopollTool.PlonePopollTool.canVote
- method getBackend () getBackend(self,) => return the backend
PlonePopollTool.PlonePopollTool.getBackend
- method getPortletConfiguration () Get configuration of PlonePopoll portlet
PlonePopollTool.PlonePopollTool.getPortletConfiguration
PlonePopollTool.PlonePopollTool.getVoteUnicity
- method listBackends () listBackends(self, ) => return a list of available backends
PlonePopollTool.PlonePopollTool.listBackends
- method manage_migrate (REQUEST=None) Run Extensions.Migration.migrateToArchetypes.
PlonePopollTool.PlonePopollTool.manage_migrate
- method setPortletConfiguration (portlet_configuration) Configure PlonePopoll portlet
PlonePopollTool.PlonePopollTool.setPortletConfiguration
PlonePopoll product
PlonePopoll product
Created by Doc-Tool V0.9.1 on Wed Jun 7 19:15:53 2006