- 修复文件权限 (600→644) - 删除调试日志 (global_func.py) - 添加 CRUD 生成的 wwwroot 文件 (pipeline_core/dist/ops) - 添加 mysql.ddl.sql 文件 - 更新 pyproject.toml 配置 - 添加 showcase 模块安装 (build.sh) - 更新 index.ui (sidebar toggle + 管理按钮) - 设置 start.sh/stop.sh 可执行权限 - 添加 wwwroot 符号链接 (appbase/rbac/pipeline_sdlc) - 更新 .gitignore (排除 pkgs/bricks/pipeline.pid)
47 lines
765 B
Plaintext
47 lines
765 B
Plaintext
|
|
ns = {
|
|
'id':params_kw['id'],
|
|
}
|
|
|
|
|
|
userorgid = await get_userorgid()
|
|
if not userorgid:
|
|
return {
|
|
"widgettype":"Error",
|
|
"options":{
|
|
"title":"Authorization Error",
|
|
"timeout":3,
|
|
"cwidth":16,
|
|
"cheight":9,
|
|
"message":"Please login"
|
|
}
|
|
}
|
|
ns['org_id'] = userorgid
|
|
|
|
db = DBPools()
|
|
dbname = get_module_dbname('pipeline_ops')
|
|
async with db.sqlorContext(dbname) as sor:
|
|
r = await sor.D('pipeline_capacity', ns)
|
|
debug('delete success');
|
|
return {
|
|
"widgettype":"Message",
|
|
"options":{
|
|
"title":"Delete Success",
|
|
"timeout":3,
|
|
"cwidth":16,
|
|
"cheight":9,
|
|
"message":"ok"
|
|
}
|
|
}
|
|
|
|
debug('Delete failed');
|
|
return {
|
|
"widgettype":"Error",
|
|
"options":{
|
|
"title":"Delete Error",
|
|
"timeout":3,
|
|
"cwidth":16,
|
|
"cheight":9,
|
|
"message":"failed"
|
|
}
|
|
} |