def handle_get_reseller(self, req):
if not self.is_reseller_admin(req):<EOL><INDENT>return self.denied_response(req)<EOL><DEDENT>listing = []<EOL>marker = '<STR_LIT>'<EOL>while True:<EOL><INDENT>path = '<STR_LIT>' % (quote(self.auth_account),<EOL>quote(marker))<EOL>resp = self.make_pre_authed_request(<EOL>req.environ, '<STR_LIT:GET>', path).get_response(self.app)<EOL>if resp.status_int // <NUM_LIT:100> != <NUM_LIT:2>:<EOL><INDENT>raise Exception('<STR_LIT>' %<EOL>(path, resp.status))<EOL><DEDENT>sublisting = json.loads(resp.body)<EOL>if not sublisting:<EOL><INDENT>break<EOL><DEDENT>for container in sublisting:<EOL><INDENT>if container['<STR_LIT:name>'][<NUM_LIT:0>] != '<STR_LIT:.>':<EOL><INDENT>listing.append({'<STR_LIT:name>': container['<STR_LIT:name>']})<EOL><DEDENT><DEDENT>marker = sublisting[-<NUM_LIT:1>]['<STR_LIT:name>'].encode('<STR_LIT:utf-8>')<EOL><DEDENT>return Response(body=json.dumps({'<STR_LIT>': listing}),<EOL>content_type=CONTENT_TYPE_JSON)<EOL>
Handles the GET v2 call for getting general reseller information
        (currently just a list of accounts). Can only be called by a
        .reseller_admin.

        On success, a JSON dictionary will be returned with a single `accounts`
        key whose value is list of dicts. Each dict represents an account and
        currently only contains the single key `name`. For example::

            {"accounts": [{"name": "reseller"}, {"name": "test"},
                          {"name": "test2"}]}

        :param req: The swob.Request to process.
        :returns: swob.Response, 2xx on success with a JSON dictionary as
                  explained above.