2014-12-05, 07:53
Hello all,
I am trying to set a number of pages in an add-on, but have the following issues and need help.
In settings.xml I have
<setting id="page" type="enum" label="Choose number of pages" values="10|50|100" default="50" />
In defautlt.py I have
pages = mysettings.getSetting('page')
and use
for i in range(pages):
I got this error shown in log
Error Type: <type 'exceptions.TypeError'>
Error Contents: range() integer end argument expected, got str
Another issue is when I go into add-on settings and click on Defaults tab, the number does not go to 50 and does not change at all.
Thanks in advance.
I am trying to set a number of pages in an add-on, but have the following issues and need help.
In settings.xml I have
<setting id="page" type="enum" label="Choose number of pages" values="10|50|100" default="50" />
In defautlt.py I have
pages = mysettings.getSetting('page')
and use
for i in range(pages):
I got this error shown in log
Error Type: <type 'exceptions.TypeError'>
Error Contents: range() integer end argument expected, got str
Another issue is when I go into add-on settings and click on Defaults tab, the number does not go to 50 and does not change at all.
Thanks in advance.