Skip to content

Commit 364220b

Browse files
cbcuncalanking
andcommitted
[#178] Add hints about plug-in stanza placement to README.
Co-authored-by: Alan King <alanking@renci.org>
1 parent 674f565 commit 364220b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ To activate the plugin, add a new stanza to the "rule_engines" array within `ser
3434
}
3535
```
3636

37-
Adding the Python Rule Engine Plugin stanza above the default "irods_rule_engine_plugin-irods_rule_language" stanza will allow any defined Python rules to take precedence over any similarly named rules in the iRODS Rule Language.
37+
Adding the Python Rule Engine Plugin stanza above the default "irods_rule_engine_plugin-irods_rule_language" stanza will allow any defined Python rules to take precedence over any similarly named rules in the iRODS Rule Language. Placing the "irods_rule_engine_plugin-python-instance" stanza before the "irods_rule_engine_plugin-cpp_default_policy-instance" stanza will ensure that any default C++ policies will not cancel out any similarly named Python rules.
3838

3939
As soon as the stanza is inserted, the iRODS server expects a Python source code module to exist at the path `/etc/irods/core.py`. Once imported by the iRODS server and successfully compiled to a Python byte-code file bearing the ".pyc" extension, any functions in the module will be callable as rules as long as they conform to a calling convention
4040
```
@@ -50,7 +50,7 @@ When the plugin is freshly installed, a template file is located at `/etc/irods/
5050

5151
# Default PEPs
5252

53-
The example `core.py.template` file in this repository contains a Python implementation of all static policy enforcement points (PEPs), equivalent to the default `core.re` rulebase.
53+
The example `core.py.template` file in this repository contains a Python implementation of all static policy enforcement points (PEPs), equivalent to the default `core.re` rulebase. Placing the "irods_rule_engine_plugin-python-instance" stanza before the "irods_rule_engine_plugin-cpp_default_policy-instance" stanza in `/etc/irods/server_config.json` will ensure that any default C++ policies will not cancel out any similarly named Python rules copied from the example `core.py.template` file.
5454

5555
# Python Version
5656

0 commit comments

Comments
 (0)