On Feb 10, 2010, at 4:12 PM, Jonathan Lundell wrote:

> 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.
> 

Also, the open() needs to be in its own try block, since if it fails to create 
the file, then the unlink will also fail.

-- 
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.

Reply via email to