MCPcopy Create free account
hub / github.com/dashingsoft/pyarmor-webui / _get_license

Method _get_license

handler.py:576–583  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

574 return c['licenses']
575
576 def _get_license(self, args):
577 c = self._get_config()
578 n = args.get('id')
579 r = args.get('rcode')
580 for p in c['licenses']:
581 if n == p['id'] and r == p['rcode']:
582 return c, p
583 raise RuntimeError('No license %s found' % n)
584
585
586class RuntimeHandler(BaseHandler):

Callers 2

do_updateMethod · 0.95
do_removeMethod · 0.95

Calls 1

_get_configMethod · 0.80

Tested by

no test coverage detected