Changeset bbee23b in trunk


Ignore:
Timestamp:
2020-06-18T22:29:39Z (5 years ago)
Author:
Sajith Sasidharan <sajith@…>
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)
Message:

Rename a parameter for clarity

"context" is nevow terminology, whereas these are really requests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/allmydata/web/operations.py

    r5ec7864 rbbee23b  
    5151        return service.Service.stopService(self)
    5252
    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")
    5555        assert ophandle
    5656        now = time.time()
    5757        self.handles[ophandle] = (monitor, renderer, now)
    58         retain_for = get_arg(ctx, "retain-for", None)
     58        retain_for = get_arg(req, "retain-for", None)
    5959        if retain_for is not None:
    6060            self._set_timer(ophandle, int(retain_for))
     
    7373            # retain-for= value, so don't touch it.
    7474
    75     def redirect_to(self, ctx):
    76         ophandle = get_arg(ctx, "ophandle")
     75    def redirect_to(self, req):
     76        ophandle = get_arg(req, "ophandle")
    7777        assert ophandle
    78         target = get_root(ctx) + "/operations/" + ophandle
    79         output = get_arg(ctx, "output")
     78        target = get_root(req) + "/operations/" + ophandle
     79        output = get_arg(req, "output")
    8080        if output:
    8181            target = target + "?output=%s" % output
Note: See TracChangeset for help on using the changeset viewer.