- Timestamp:
- 05/02/09 16:44:28 (3 years ago)
- Children:
- 4e17a72f98bff34332fbca7853ac4aa7b854d997
- Parents:
- 4bceacf6b979775083c8623c2906a66e95eefe48
- git-committer:
- John Hampton <pacopablo@pacopablo.com> / 2009-05-02T16:44:28Z-0700
- File:
-
- 1 edited
-
resourcetotrac/resourcetotrac/api.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
resourcetotrac/resourcetotrac/api.py
ref235ae rc8845e4 57 57 """ 58 58 59 59 60 class IResourceSubmitter(Interface): 60 61 """ Interface for submitting Resources to Trac """ … … 65 66 def submit_resource(self, obj): 66 67 """ Submits the resource to Trac """ 68 67 69 68 70 class IResourceParser(Interface): … … 80 82 """ 81 83 84 82 85 class ITypeParser(Interface): 83 86 """ Extracts the resource type from the message … … 92 95 93 96 class BaseParsedMessage(object): 94 """ Base class for parsed messages. 97 """ Base class for parsed messages. """ 95 98 96 At a bare minimum, get_id() and get_type() need to be overridden97 """99 def __init__(self, message=None): 100 self.raw_message = message 98 101 99 102 def get_author(self): … … 107 110 def get_id(self): 108 111 """ Return the id of the resource """ 112 return '' 109 113 110 114 def get_type(self): 111 115 """ Return the type of resource """ 116 return 'unknown' 112 117 113 118 def get_data(self):
Note: See TracChangeset
for help on using the changeset viewer.
