From 8517689d88ac96d708861b3de6aac2fa06beb5bf Mon Sep 17 00:00:00 2001 From: Frisle <47441164+Frisle@users.noreply.github.com> Date: Sat, 29 Jun 2024 11:26:48 +0600 Subject: [PATCH] FIX: added fixes to argument syntax, readme correction --- README.md | 4 ++-- src/dc/python/PersistentClass.cls | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a0a80ec..9575e2c 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ Follow it - it will let to execute Embedded Python scripts vs IRIS and develop i Once devcontainer is opened go to /python/irisapp.py and run it, either with Run button in the top right corner, or in terminal via: ```bash -$ irispython /python/irisapp.py +$ irispython python/irisapp.py ``` @@ -222,7 +222,7 @@ $ docker-compose exec iris bash Run the following commands to start the flask server: ``` -irispython /python/flask/app.py +irispython python/flask/app.py ``` That will start the flask server and you will see the following output: diff --git a/src/dc/python/PersistentClass.cls b/src/dc/python/PersistentClass.cls index f458619..36b6569 100644 --- a/src/dc/python/PersistentClass.cls +++ b/src/dc/python/PersistentClass.cls @@ -4,7 +4,7 @@ Class dc.python.PersistentClass Extends %Persistent /// Description Property Test As %VarString; -ClassMethod CreateRecord(propValue As %VarString = "TestString", ByRef id As %Integer) As %Status +ClassMethod CreateRecord(propValue As %VarString = "TestString", id As %Integer) As %Status { set sc=$$$OK set obj=..%New() @@ -14,7 +14,7 @@ ClassMethod CreateRecord(propValue As %VarString = "TestString", ByRef id As %In return sc } -ClassMethod CreateRecordPython(propValue As %VarString, ByRef id As %Integer) [ Language = python ] +ClassMethod CreateRecordPython(propValue As %VarString, id As %Integer) [ Language = python ] { import iris obj=iris.cls(__name__)._New()