Ignore:
Timestamp:
16/02/09 17:16:00 (11 years ago)
Author:
cbyrom
Message:

Add new trackback controller and implement methods to allow
authenticated users to post comments on metadata docs. These comments
are then emailed to the metadata maintainer and added to the
corrections feed. Control then returns to the metadata document - in
non edit form - and, in the case of moles atom docs, a pop up informs
the user that the operation has completed successfully. Also add the
required genshi templates and template methods to enable this new
functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/config/routing.py

    r4803 r4984  
    4343    map.connect('semantic',controller='browse/discovery', action='semantic') 
    4444    map.connect('view/:uri', controller = 'browse/retrieve', action='view') 
    45     map.connect('askCorrect/:uri', controller='browse/retrieve', action='askCorrect') 
    46     map.connect('correct/:uri', controller='browse/retrieve', action='correct') 
    4745    map.connect('retrive', 'retrieve/:uri', controller = 'browse/retrieve') 
    4846    map.connect('selectedItems',controller='visualise/selectedItems',action='index') 
     
    5553    map.connect('discovery',controller='browse/discovery') 
    5654 
     55    # routing for trackback 
     56    map.connect('trackback/:uri', controller='trackback/trackback') 
     57    map.connect('askCorrect/:uri', controller='trackback/trackback', action='askCorrect') 
     58    map.connect('correct/:uri', controller='trackback/trackback', action='correct') 
     59 
     60 
    5761    #do this last or else you'll get bizarre behaviour 
    5862    map.connect('',controller='browse/discovery',action='index') 
Note: See TracChangeset for help on using the changeset viewer.