Changeset 5298


Ignore:
Timestamp:
18/05/09 10:18:12 (10 years ago)
Author:
cbyrom
Message:

Extend trackback code to add author details to produced feeds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/trackback/trackback.py

    r5261 r5298  
    1212''' 
    1313from milk_server.lib.base import * 
     14import milk_server.lib.constants as constants 
    1415from milk_server.models.ndgdoc import NDGDoc  
    1516from ndg.common.src.models.ndgObject import ndgObject 
     
    8990            # lastly, add to citation feed 
    9091            logging.info("Mail sent - now add data to the citations feed") 
    91             g.validator._atomClient.feedClient.createGenericFeedEntry(name, payload, 
     92            g.validator._atomClient.feedClient.createGenericFeedEntry(constants.AUTO_AUTHOR, 
     93                                                                      name, payload, 
    9294                                                                      dc.CITATIONS_COLLECTION_PATH) 
    9395         
     
    118120                g.server+h.url_for(controller="trackback/trackback", action="ping")) 
    119121        return s 
    120  
    121122 
    122123     
     
    171172        # add the maintainer info 
    172173        body += " - for metadata maintainer, '%s'" %g.metadataMaintainer  
    173         g.validator._atomClient.feedClient.createGenericFeedEntry(body, payload, 
     174        g.validator._atomClient.feedClient.createGenericFeedEntry(self.inputs['Submitter'], body, payload, 
    174175                                                                  dc.CORRECTIONS_COLLECTION_PATH) 
    175176 
Note: See TracChangeset for help on using the changeset viewer.