Skip to content

Commit

Permalink
FIX: added fixes to argument syntax, readme correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Frisle committed Jun 29, 2024
1 parent 8445924 commit 8517689
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions src/dc/python/PersistentClass.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 8517689

Please sign in to comment.