Orange Forum • View topic - rebuild registry problem with commented lines

rebuild registry problem with commented lines

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

rebuild registry problem with commented lines

Postby sesam » Tue Jun 14, 2005 17:59

Rebuilding the widget registry crashes and leaves orange unsusable if you have (some kinds of) commented out lines before the rows with
self.inputs and self.outputs

To reproduce, take OWDataSamplerA.py from the widget school and put it in one folder for orange widgets (I tried only with Other).
Add this row
#self.outputs = [("Dummy", ExampleTable, 1, 0)]before the row with self.outputs (probably row 16)

It seems that # isn't noticed. When removing ,1 ,0 above, the registry building works but fills in "Dummy" instead.

With variations of the above you might get some output in outputLog.htm and that's how I noticed this problem earlier.

Since self.output and self.input are always indented with space or tab, it seems this problem is solved by adding [ \t]+ in two rows in xmlParse.py, like this:
def GetAllOutputs(self, data):
result = re.search('[ \t]+self.outputs *= *[[].*]', data)

Postby Gregor Leban » Wed Jun 15, 2005 9:33

Hi sesam,

thanks a lot for your bug report (and also for the fix). We have already commited the changes to the cvs.

Gregor


Return to Bugs



cron