Ignore:
Timestamp:
25/06/10 14:29:20 (10 years ago)
Author:
astephen
Message:

fixing up jobs page and moving renderer code into renderer package

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/cows_wps/controllers/view.py

    r6955 r7095  
    55 
    66from cows_wps.renderer.ui_renderer import * 
     7from cows_wps.renderer.proc_config_renderer import * 
    78from cows_wps.controllers import * 
    89from cows_wps.lib.ui.proc_config import * 
     
    1718        Shows a table of all procs. 
    1819        """ 
    19         pc = ProcConfig() 
    20         procs = pc.renderProcsViewTable() 
     20#        pc = ProcConfig() 
     21        pcr = ProcConfigRenderer() 
     22        resp = pcr.renderProcsViewTable() 
    2123 
    22         resp = "%s" % procs 
    2324        renderer = UIPageRenderer() 
    24         c.tester = "tester" 
     25#        c.tester = "tester" 
    2526        resp = renderer.render("View available processes", 
    2627                               [("Select your process", resp)]) 
     
    5960            return "Please provide an argument proc=<Something>" 
    6061 
    61         pc = ProcConfig()  
    62         proc_view_html = pc.renderProcConfig(proc) 
     62#        pc = ProcConfig()  
     63#        proc_view_html = pc.renderProcConfig(proc) 
     64        pcr = ProcConfigRenderer() 
     65        proc_view_html = pcr.renderProcConfig(proc) 
     66 
    6367        resp = "\n".join(proc_view_html) 
    6468 
Note: See TracChangeset for help on using the changeset viewer.