Re: [QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope

2019-02-01 Thread Bjørn Burr Nyberg
regards, Bjorn -Original Message- From: Nyall Dawson Sent: Friday, February 01, 2019 12:21 AM To: Bjørn Burr Nyberg Cc: qgis-developer@lists.osgeo.org Subject: Re: [QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope On Thu, 31 Jan 2019 at 02

Re: [QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope

2019-02-01 Thread Nyall Dawson
veloper@lists.osgeo.org > Subject: Re: [QGIS-Developer] free variable 'self' referenced before > assignment in enclosing scope > > On Thu, 31 Jan 2019 at 02:46, Bjørn Burr Nyberg wrote: > > > > Dear QGIS community, > > > > In the spirit of open-sour

Re: [QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope

2019-01-31 Thread Nyall Dawson
On Thu, 31 Jan 2019 at 02:46, Bjørn Burr Nyberg wrote: > > Dear QGIS community, > > In the spirit of open-source I am trying to convert a set of scripts that ive > designed in ArcMap to QGIS 3.x. I hope that this will enable a broader > community of individuals to use the workflows ive designed.

Re: [QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope

2019-01-31 Thread Raymond Nijssen
Nevermind, that return line should work. The self.Branches and self.Nodes are variables containing the strings for your dict. The problem is in the AlgorithmDialog code. Hope someone else can help you with that. Cheers, Raymond On 31-01-19 09:02, Raymond Nijssen wrote: Hi Bjorn, What do y

Re: [QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope

2019-01-31 Thread Raymond Nijssen
Hi Bjorn, What do you expect this {self.Branches:dest_id,self.Nodes:dest_id2} would result in? It doesn't look like python to me but I might be missing something. What does the variable self.Branches contain? "self" Refers to your Branches_Nodes class itself. (By the way, it is a good h

[QGIS-Developer] free variable 'self' referenced before assignment in enclosing scope

2019-01-30 Thread Bjørn Burr Nyberg
Dear QGIS community, In the spirit of open-source I am trying to convert a set of scripts that ive designed in ArcMap to QGIS 3.x. I hope that this will enable a broader community of individuals to use the workflows ive designed. The original scripts can be found at https://github.com/BjornNyb