- Add SDLC dashboard, pipeline editor, ops center UI - build.sh: clone business modules to pkgs/, xls2ui CRUD, fix created_by - global_func.py: password_encode None-safe wrapper - pipeline_app.py: permission cache warmup removed - load_path.py: RBAC permission registration for all modules - scripts/merge_i18n.py: i18n merge tool - bin/init_perms.py, bin/init_data.py: init scripts - set_role_perm.py: single permission registration - Model uitype fields set for form editing - pipeline_core/pipeline_ops load_path.py scripts
14 lines
442 B
Plaintext
14 lines
442 B
Plaintext
|
|
from sqlor.dbpools import DBPools
|
|
|
|
async def main():
|
|
dbname = get_module_dbname('pipeline_core')
|
|
async with DBPools().sqlorContext(dbname) as sor:
|
|
recs = await sor.R('pipelines', {'status': 'published'})
|
|
if not recs:
|
|
recs = await sor.R('pipelines', {})
|
|
result = []
|
|
for r in recs:
|
|
result.append({'id': r.id, 'name': r.name, 'text': r.name, 'value': r.id})
|
|
return result
|