Anyone has any suggestion on some workaround?
Thanks in advance!

Yangbo

On Saturday, 18 November 2017 12:09:55 UTC+8, Yangbo Xu wrote:
>
> Hello,
>
>
> I have a question regarding how Pydal can accept remote filesystem thru 
> pyfilesystem.
>
> According to the web2py documentation
>
>
> http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Field-constructor
>
> I need to put uploadfs = # pyfilesystem object in field definition.
>
>  
>
> After doing so, at upload, pyfilesystem complains that “*paths must be 
> unicode (not str)”*
>
>
> The source code for pyfilesystem is here (*search for "def validatepath"*)
>
> https://github.com/PyFilesystem/pyfilesystem2/blob/master/fs/base.py
>
>  
>
> So I conclude pydal pass file path in python2 byte string, and 
> pyfilesystem only accepts Unicode in python2.
>
>  
>
> Do you have any suggestion/workaround for this issue?
>
> Thanks in advance.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to