Error, trying to use the upload form:
Traceback (most recent call last):
File "D:\Projetos\GAE\web2py\gluon\restricted.py", line 107, in restricted
exec ccode in environment
File "D:/Projetos/GAE/web2py/applications/store/controllers/manage.py"
<http://127.0.0.1:8000/admin/default/edit/store/controllers/manage.py>,
line 110, in <module>
File "D:\Projetos\GAE\web2py\gluon\globals.py", line 97, in <lambda>
self._caller = lambda f: f()
File "D:/Projetos/GAE/web2py/applications/store/controllers/manage.py"
<http://127.0.0.1:8000/admin/default/edit/store/controllers/manage.py>,
line 37, in data
def data(): return dict(form=crud())
File "D:\Projetos\GAE\web2py\gluon\tools.py", line 1532, in __call__
return self.update(args[1], args[2])
File "D:\Projetos\GAE\web2py\gluon\tools.py", line 1606, in update
upload=self.settings.download_url
File "D:\Projetos\GAE\web2py\gluon\sqlhtml.py", line 517, in __init__
inp = self.widgets.upload.widget(field, default, upload)
File "D:\Projetos\GAE\web2py\gluon\sqlhtml.py", line 270, in widget
A(GENERIC_DESCRIPTION, _href = url),
NameError: global name 'GENERIC_DESCRIPTION' is not defined
Thanks!
Tito
On Mon, Jun 8, 2009 at 1:35 AM, Tito Garrido <[email protected]> wrote:
> It works now! Thanks!
>
> Tito
>
>
> On Mon, Jun 8, 2009 at 12:45 AM, mdipierro <[email protected]>wrote:
>
>>
>> Try again. It is working for me. Perhaps the commit was incomplete
>> when you tried.
>> svn revision 1007 or launchpad 889
>>
>> massimo
>>
>> On Jun 7, 10:26 pm, Tito Garrido <[email protected]> wrote:
>> > Hi,
>> >
>> > It's not working yet...
>> >
>> >
>> >
>> > On Sun, Jun 7, 2009 at 11:28 PM, mdipierro <[email protected]>
>> wrote:
>> >
>> > > There was a bug introduced in latest commit. I think I fixed. Please
>> > > download trunk again and let me know.
>> >
>> > > Massimo
>> >
>> > > On Jun 7, 9:14 pm, Tito Garrido <[email protected]> wrote:
>> > > > I've just update to trunk and when I try to load a for with an
>> "upload"
>> > > > field I'm receiving:
>> >
>> > > > Traceback (most recent call last):
>> > > > File "D:\Projetos\GAE\web2py\gluon\restricted.py", line 107, in
>> > > restricted
>> >
>> > > > exec ccode in environment
>> > > > File
>> "D:/Projetos/GAE/web2py/applications/store/controllers/manage.py"
>> > > > <
>> http://127.0.0.1:8000/admin/default/edit/store/controllers/manage.py>,
>> > > > line 110, in <module>
>> >
>> > > > File "D:\Projetos\GAE\web2py\gluon\globals.py", line 97, in
>> <lambda>
>> >
>> > > > self._caller = lambda f: f()
>> >
>> > > > File
>> "D:/Projetos/GAE/web2py/applications/store/controllers/manage.py"
>> > > > <
>> http://127.0.0.1:8000/admin/default/edit/store/controllers/manage.py>,
>> > > > line 67, in products
>> >
>> > > > form_prod = SQLFORM(store.product)
>> >
>> > > > File "D:\Projetos\GAE\web2py\gluon\sqlhtml.py", line 517, in
>> __init__
>> >
>> > > > inp = self.widgets.upload.widget(field, default, upload)
>> >
>> > > > File "D:\Projetos\GAE\web2py\gluon\sqlhtml.py", line 258, in
>> widget
>> >
>> > > > attr = UploadWidget._attributes(field, default, **attributes)
>> > > > NameError: global name 'attributes' is not defined
>> >
>> > > > Thanks,
>> >
>> > > > Tito
>> > > > --
>> >
>> > > > Linux User #387870
>> > > > .........____
>> > > > .... _/_õ|__|
>> > > > ..º[ .-.___.-._| . . . .
>> > > > .__( o)__( o).:_______
>> >
>> > --
>> >
>> > Linux User #387870
>> > .........____
>> > .... _/_õ|__|
>> > ..º[ .-.___.-._| . . . .
>> > .__( o)__( o).:_______
>> >>
>>
>
>
> --
>
> Linux User #387870
> .........____
> .... _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:_______
> Sent from Salvador, BA, Brazil
--
Linux User #387870
.........____
.... _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:_______
Sent from Salvador, BA, Brazil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---