-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Original report by Kevin Adler (Bitbucket: kadler, GitHub: kadler).
#!python
from itoolkit import *
itool = iToolKit()
itool.add(iSrvPgm('test','TEST','test', iopt={'lib': 'MYLIB'}))
print(itool.xml_in())
gives
#!xml
<?xml version='1.0'?>
<xmlservice><pgm error="fast" func="test" name="TEST" var="test"/></xmlservice>
The problem is here:
#!python
def __init__(self, ikey, iname, ifunc, iopt={}):
# parent class
iPgm.__init__(self, ikey, iname, {'func': ifunc})
iopt
is completely ignored
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working