Show
Ignore:
Timestamp:
05/02/09 16:44:28 (3 years ago)
Author:
John Hampton <pacopablo@…>
Children:
4e17a72f98bff34332fbca7853ac4aa7b854d997
Parents:
4bceacf6b979775083c8623c2906a66e95eefe48
git-committer:
John Hampton <pacopablo@pacopablo.com> / 2009-05-02T16:44:28Z-0700
Message:

Fleshed out framework. Begun implementation of IMAP email data source

File:
1 edited

Legend:

Unmodified
Added
Removed
  • resourcetotrac/resourcetotrac/api.py

    ref235ae rc8845e4  
    5757        """ 
    5858 
     59 
    5960class IResourceSubmitter(Interface): 
    6061    """ Interface for submitting Resources to Trac """ 
     
    6566    def submit_resource(self, obj): 
    6667        """ Submits the resource to Trac """  
     68 
    6769 
    6870class IResourceParser(Interface): 
     
    8082        """ 
    8183 
     84 
    8285class ITypeParser(Interface): 
    8386    """ Extracts the resource type from the message 
     
    9295 
    9396class BaseParsedMessage(object): 
    94     """ Base class for parsed messages. 
     97    """ Base class for parsed messages. """ 
    9598 
    96     At a bare minimum, get_id() and get_type() need to be overridden 
    97     """ 
     99    def __init__(self, message=None): 
     100        self.raw_message = message 
    98101 
    99102    def get_author(self): 
     
    107110    def get_id(self): 
    108111        """ Return the id of the resource """ 
     112        return '' 
    109113     
    110114    def get_type(self): 
    111115        """ Return the type of resource """ 
     116        return 'unknown' 
    112117 
    113118    def get_data(self): 
Note: See TracChangeset for help on using the changeset viewer.