On Feb 10, 2010, at 5:07 PM, Alexandre Andrade wrote: > thanks, > > but I used the 'brute force' method: > > changed the .w2p to tgz, unpacked and copy the folders/files to my app. > > But anyway, I think is a bug of web2py.
At least one bug. There's still the question of why it got to the unlink in the first place. > > > > 2010/2/10 Jonathan Lundell <jlund...@pobox.com> > On Feb 10, 2010, at 4:00 PM, Alexandre Andrade wrote: > >> I'm trying to install the plugin webfolder >> (http://jaguar.biologie.hu-berlin.de/~fkrause/web2py.plugin.webfolder.w2p) > > Try changing gluon/admin.py line 314 to os.unlink(upname) (instead of upfile). > > Also, Massimo, the docstring says: > > Returns > ------- > upname: > name of the file where app is temporarily stored or `None` on failure > > > ...but in fact it returns False on failure. > > > >> >> and get this error: >> >> Traceback (most recent call last): >> >> File "gluon/restricted.py", line 173, in restricted >> >> >> >> exec ccode in environment >> File "/home/www-data/web2py/applications/admin/controllers/default.py", >> line 1034, in <module> >> >> >> >> File "gluon/globals.py", line 96, in <lambda> >> >> >> >> self._caller = lambda f: f() >> >> >> >> File "/home/www-data/web2py/applications/admin/controllers/default.py", >> line 565, in design >> >> >> >> request, filename): >> File "gluon/admin.py", line 314, in plugin_install >> >> >> >> os.unlink(upfile) >> TypeError: coercing to Unicode: need string or buffer, file found >> >> >> ---------------------- >> >> what could be? a bug in plugin, web2py, or a wrong deployment? >> -- >> Atenciosamente -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.