diff --git a/cms/engine/project/__init__.py b/cms/engine/project/__init__.py index 47c9a21..210cd35 100644 --- a/cms/engine/project/__init__.py +++ b/cms/engine/project/__init__.py @@ -55,17 +55,17 @@ def _icode(_path,_root): :path location of the project """ _code = """ - import cms - # - # register this in config.plugins: {"demo":["info"]} +import cms +# +# register this in config.plugins: {"demo":["info"]} - @cms.plugins(mimetype='application/json') : - def info (**_args): - _request= _args['request'] - _config = _args['config'] - return {"version":_config['system']['version'],'title':_config['layout']['header']['title']} - pass +@cms.plugins(mimetype='application/json') : +def info (**_args): + _request= _args['request'] + _config = _args['config'] + return {"version":_config['system']['version'],'title':_config['layout']['header']['title']} + pass """ loc = os.sep.join([_path,_root,'_plugins','demo.py']) f = open(loc,'w') diff --git a/pyproject.toml b/pyproject.toml index 6e9b19c..e7561f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,8 @@ dependencies = [ "gitpython", "termcolor", "flask-session", - "mistune", + "mistune","git+https://github.com/lnyemba/plugins-ix", + "numpy","pandas", "typer","smart-open", "pyncclient" ] [project.optional-dependencies]