Changeset 3487

Show
Ignore:
Timestamp:
04/07/08 18:14:17 (8 months ago)
Author:
coling
Message:

Start migrating the Stop Work popup to a Genshi template using XHttpRequest to grab it. Doesn't do anything yet so nothing much to see ;)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • worklogplugin/0.11/worklog/webui.py

    r3305 r3487  
    112112          return 'worklog_user.html', data, None 
    113113 
     114        match = re.search('/worklog/stop/([0-9]+)', req.path_info) 
     115        if match: 
     116          ticket = match.group(1) 
     117          data = {'worklog_href': req.href.worklog(), 
     118                  'ticket_href':  req.href.ticket(ticket), 
     119                  'ticket':       ticket, 
     120                  'action':       'stop', 
     121                  'label':        'Stop Work'} 
     122          xhr = req.get_header('X-Requested-With') == 'XMLHttpRequest' 
     123          if xhr: 
     124              data['xhr'] = True 
     125          return 'worklog_stop.html', data, None 
     126         
    114127        mgr = WorkLogManager(self.env, self.config, req.authname) 
    115128        if req.args.has_key('format') and req.args['format'] == 'csv':