Sha256: 620474043992bb4a9a38c5aeef1031de9f2b724866bdaf462030fd228a8c824f

Contents?: true

Size: 695 Bytes

Versions: 4

Compression:

Stored size: 695 Bytes

Contents

from lxml import etree
from trac.core import *

class IClientSummaryProvider(Interface):
  """Extension point interface for components that define their own way
  to summarise a given client.
  """

  def get_name():
    """Return the name of the summary (for use in UI)
    """

  def get_description():
    """Return the description of the summary (for use in UI)
    """

  def options(client=None):
    """Return a series of tupoles defining the options
    """

  def init(event, client):
    """Initialise the summary for a specific instance and client combo
    """

  def get_summary(req, fromdate = None, todate = None):
    """Get the summary. This must return an etree object
    """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
keithsalisbury-subtrac-0.1.1 lib/subtrac/trac-plugins/clientsplugin/clients/summary.py
keithsalisbury-subtrac-0.1.2 lib/subtrac/trac-plugins/clientsplugin/clients/summary.py
keithsalisbury-subtrac-0.1.3 lib/subtrac/trac-plugins/clientsplugin/clients/summary.py
keithsalisbury-subtrac-0.1.4 lib/subtrac/trac-plugins/clientsplugin/clients/summary.py