[web2py] Re: NameError: global name 'formstyle' is not defined
I re-downloaded a working copy of trunk from https://web2py.googlecode.com/hg/. Error disappeared. Topic closed. Thanks On 16 апр, 17:25, mdipierro wrote: > where did you get web2py from? > > On Apr 16, 2:01 am, aabelyakov wrote: > > > > > On 16 апр, 10:21, mdipierro wrote: > > > > In the version in trunk that line is 768 and not 977 and it is > > > defined. It is an argument of the function. > > > Your file appear longer than it should be and that is very odd. Please > > > try download it again. > > > I added into sqlhtml.py 2 missing strings: > > formstyle = 'table3cols', > > self.formstyle = formstyle > > > but got the following error: > > > File "D:\MyProg\_MyPython\Web2py\gluon\sqlhtml.py", line 803, in > > __init__ > > for id,a,b,c in xfields: > > ValueError: need more than 3 values to unpack > > > -- > > Subscription > > settings:http://groups.google.com/group/web2py/subscribe?hl=en- Скрыть > > цитируемый текст - > > - Показать цитируемый текст -
[web2py] Re: NameError: global name 'formstyle' is not defined
where did you get web2py from? On Apr 16, 2:01 am, aabelyakov wrote: > On 16 апр, 10:21, mdipierro wrote: > > > In the version in trunk that line is 768 and not 977 and it is > > defined. It is an argument of the function. > > Your file appear longer than it should be and that is very odd. Please > > try download it again. > > I added into sqlhtml.py 2 missing strings: > formstyle = 'table3cols', > self.formstyle = formstyle > > but got the following error: > > File "D:\MyProg\_MyPython\Web2py\gluon\sqlhtml.py", line 803, in > __init__ > for id,a,b,c in xfields: > ValueError: need more than 3 values to unpack > > -- > Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en
[web2py] Re: NameError: global name 'formstyle' is not defined
On 16 апр, 10:21, mdipierro wrote: > In the version in trunk that line is 768 and not 977 and it is > defined. It is an argument of the function. > Your file appear longer than it should be and that is very odd. Please > try download it again. I added into sqlhtml.py 2 missing strings: formstyle = 'table3cols', self.formstyle = formstyle but got the following error: File "D:\MyProg\_MyPython\Web2py\gluon\sqlhtml.py", line 803, in __init__ for id,a,b,c in xfields: ValueError: need more than 3 values to unpack -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
[web2py] Re: NameError: global name 'formstyle' is not defined
In the version in trunk that line is 768 and not 977 and it is defined. It is an argument of the function. Your file appear longer than it should be and that is very odd. Please try download it again. On Apr 16, 1:01 am, aabelyakov wrote: > Version 1.76.5 (2010-03-20 12:12:17) > web2py source code from trunk > > File "D:\MyProg\_MyPython\Web2py\gluon\sqlhtml.py", line 799, in > __init__ > if formstyle == 'table3cols': > NameError: global name 'formstyle' is not defined > > -- > Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en