Changeset 4596 for MILK


Ignore:
Timestamp:
11/12/08 14:44:35 (11 years ago)
Author:
cbyrom
Message:

Add new web page to display an example of the granulite file contents
and link this to the granulite input page.

Location:
MILK/trunk/milk_server/milk_server
Files:
1 added
2 edited

Legend:

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

    r4535 r4596  
    2727                saveData = None) 
    2828    map.connect('createGranule', controller = 'atom_editor/editatom', action='createGranule') 
     29    map.connect('exampleGranulite', controller = 'atom_editor/listatom', action='showExampleGranulite') 
    2930    map.connect('atomHome', controller = 'atom_editor/listatom', action='atomHome') 
    3031    map.connect('listAtom/:searchData/:associatedAtomID/:associatedAtomType/:associationType', \ 
  • MILK/trunk/milk_server/milk_server/controllers/atom_editor/listatom.py

    r4594 r4596  
    5050        return savePageAndRender(self.pathInfo, "atom_editor/atom_home") 
    5151 
     52 
     53    def showExampleGranulite(self): 
     54        ''' 
     55        Show an example granulite file 
     56        ''' 
     57        logging.info("Rendering example granulite file page") 
     58        c.title = "Example granulite file" 
     59        return savePageAndRender(self.pathInfo, "atom_editor/granulite_example") 
     60     
    5261     
    5362    def list(self, searchData=None, associatedAtomID=None, \ 
Note: See TracChangeset for help on using the changeset viewer.