(cls, project_name: str)
| 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]: |
no test coverage detected