MCPcopy Index your code
hub / github.com/dashingsoft/pyarmor-webui / do_new

Method do_new

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

Source from the content-addressed store, hash-verified

511 self.name = 'license'
512
513 def do_new(self, args):
514 c = self._get_config()
515 n = c['counter'] + 1
516 rcode = args.get('rcode')
517 if not rcode:
518 args['rcode'] = rcode = self.template % n
519
520 args['filename'] = self._create(args)
521
522 args['id'] = n
523 c['licenses'].append(args)
524 c['counter'] = n
525 self._set_config(c)
526
527 return args
528
529 def _create(self, args, update=False):
530 path = self._get_path()

Callers

nothing calls this directly

Calls 3

_createMethod · 0.95
_get_configMethod · 0.80
_set_configMethod · 0.80

Tested by

no test coverage detected