Sha256: cf1dfbe197e57a9f17f25c3bac5a00c558818773f80771e723b577499089bed8

Contents?: true

Size: 719 Bytes

Versions: 4

Compression:

Stored size: 719 Bytes

Contents

from lxml import etree
from trac.core import *

class IClientActionProvider(Interface):
  """Extension point interface for components that define their own way
  to act on a given client summary (IClientSummaryProvider.get_summary
  """

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

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

  def options(client=None):
    """The options for this action
       If the client option is None then these options are defined as being per instance.
    """

  def init(event, client):
    """Todo
    """

  def perform(req, summary):
    """Perform the action. 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/action.py
keithsalisbury-subtrac-0.1.2 lib/subtrac/trac-plugins/clientsplugin/clients/action.py
keithsalisbury-subtrac-0.1.3 lib/subtrac/trac-plugins/clientsplugin/clients/action.py
keithsalisbury-subtrac-0.1.4 lib/subtrac/trac-plugins/clientsplugin/clients/action.py