Changeset bbee23b in trunk
- Timestamp:
- 2020-06-18T22:29:39Z (5 years ago)
- Branches:
- master
- Children:
- 2d2e8a58
- Parents:
- 5ec7864
- git-author:
- Sajith Sasidharan <sajith@…> (2020-06-01 22:19:08)
- git-committer:
- Sajith Sasidharan <sajith@…> (2020-06-18 22:29:39)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/web/operations.py ¶
r5ec7864 rbbee23b 51 51 return service.Service.stopService(self) 52 52 53 def add_monitor(self, ctx, monitor, renderer):54 ophandle = get_arg( ctx, "ophandle")53 def add_monitor(self, req, monitor, renderer): 54 ophandle = get_arg(req, "ophandle") 55 55 assert ophandle 56 56 now = time.time() 57 57 self.handles[ophandle] = (monitor, renderer, now) 58 retain_for = get_arg( ctx, "retain-for", None)58 retain_for = get_arg(req, "retain-for", None) 59 59 if retain_for is not None: 60 60 self._set_timer(ophandle, int(retain_for)) … … 73 73 # retain-for= value, so don't touch it. 74 74 75 def redirect_to(self, ctx):76 ophandle = get_arg( ctx, "ophandle")75 def redirect_to(self, req): 76 ophandle = get_arg(req, "ophandle") 77 77 assert ophandle 78 target = get_root( ctx) + "/operations/" + ophandle79 output = get_arg( ctx, "output")78 target = get_root(req) + "/operations/" + ophandle 79 output = get_arg(req, "output") 80 80 if output: 81 81 target = target + "?output=%s" % output
Note: See TracChangeset
for help on using the changeset viewer.