MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / new_mgr

Method new_mgr

mod/project/python/serviceMod.py:416–423  ·  view source on GitHub ↗
(cls, project_name: str)

Source from the content-addressed store, hash-verified

414
415 @classmethod
416 def new_mgr(cls, project_name: str) -> Union["ServiceManager", str]:
417 data = public.M("sites").where(
418 'project_type=? AND name=? ', ('Python', project_name)
419 ).field('id,project_config').find()
420 if not data:
421 return "未查询到网站信息"
422 project_config = json.loads(data['project_config'])
423 return cls(project_name, project_config)
424
425 @property
426 def service_list(self) -> List[Dict]:

Callers 9

get_services_infoMethod · 0.80
add_serviceMethod · 0.80
modify_serviceMethod · 0.80
remove_serviceMethod · 0.80
handle_serviceMethod · 0.80
get_service_logMethod · 0.80
StartProjectMethod · 0.80
StopProjectMethod · 0.80
RestartProjectMethod · 0.80

Calls 5

findMethod · 0.45
fieldMethod · 0.45
whereMethod · 0.45
MMethod · 0.45
loadsMethod · 0.45

Tested by

no test coverage detected