The value is octal which requires the "o" in Python 3:

$ python
Python 2.7.1 (r271:86832, Jul 31 2011, 19:30:53)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on
darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 0644
420
>>> 0o644
420

$ python3
Python 3.3.2 (default, Nov  4 2013, 18:05:17)
[GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.12)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 0644
  File "<stdin>", line 1
    0644
       ^
SyntaxError: invalid token
>>> 0o644
420




On Thu, Jan 23, 2014 at 12:13 PM, nathan <maier.nat...@gmail.com> wrote:

> Hi, been a while since I upgraded mezzanine.
>
> While changing settings.py, I noticed the FILE_UPLOAD_PERMISSIONS = 0o644
> instead of 0644.
> Am I mistaken or is this a typo.
>
> Just a quick check. Trying to be helpful.
> -Nate
>
> --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to