Skip to content

Instantly share code, notes, and snippets.

@marc-hughes
Created January 1, 2011 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marc-hughes/761938 to your computer and use it in GitHub Desktop.
Save marc-hughes/761938 to your computer and use it in GitHub Desktop.
Optional methods
def associate( self, project):
"called when an extra is first associated with a project."
def unassociate( self, project):
"called when an extra is removed from a project."
def initialSync( self, project):
""" Does whatever needs doing for an initial sync of the project.
An extra's configuration should add this event to the queue when
it's ready. """
def pullProject( self, project ):
""" Should cause a full pull syncronization of this extra from whatever external source
there is. This will be called on a scheduled basis for all active projects. The project
parameter be an apps.projects.models.Project object. """
def storyUpdated( self, project, story ):
"Called when a story is updated in a project that this extra is associated with."
def storyDeleted( self, project, external_id):
"""Called when a story is deleted in a project that this extra is associated with.
Note: the ScrumDo story has already been deleted by the time this method is called. """
def storyCreated( self, project, story):
"Called when a story is created in a project that this extra is associated with."
def storyStatusChange( self, project, story):
"Called when a story's status has changed in a project that this extra is associated with."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment