Commit 2630cafc authored by David Hoffman's avatar David Hoffman Committed by Claude Paroz
Browse files

[1.6.x] Fixed #23097 -- Switched to new octal format in docs

Backport of e1c85167 from master.
parent ae5a4668
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -687,8 +687,8 @@ Write stderr to the *FILE* file.

``umask=UMASK``

Umask to use when daemonizing. The value is interpeted as an octal number
(default value is ``022``).
Umask to use when daemonizing. The value is interpreted as an octal number
(default value is ``0o22``).

Example usage::

+2 −2
Original line number Diff line number Diff line
@@ -1114,13 +1114,13 @@ FILE_UPLOAD_PERMISSIONS

Default: ``None``

The numeric mode (i.e. ``0644``) to set newly uploaded files to. For
The numeric mode (i.e. ``0o644``) to set newly uploaded files to. For
more information about what these modes mean, see the documentation for
:func:`os.chmod`.

If this isn't given or is ``None``, you'll get operating-system
dependent behavior. On most platforms, temporary files will have a mode
of ``0600``, and files saved from memory will be saved using the
of ``0o600``, and files saved from memory will be saved using the
system's standard umask.

.. warning::
+1 −1
Original line number Diff line number Diff line
@@ -559,7 +559,7 @@ Miscellaneous

* Uploaded files are no longer created as executable by default. If you need
  them to be executable change :setting:`FILE_UPLOAD_PERMISSIONS` to your
  needs. The new default value is ``0666`` (octal) and the current umask value
  needs. The new default value is ``0o666`` (octal) and the current umask value
  is first masked out.

* The :ref:`F() expressions <query-expressions>` supported bitwise operators by
+1 −1
Original line number Diff line number Diff line
@@ -598,7 +598,7 @@ Miscellaneous

* Uploaded files are no longer created as executable by default. If you need
  them to be executable change :setting:`FILE_UPLOAD_PERMISSIONS` to your
  needs. The new default value is ``0666`` (octal) and the current umask value
  needs. The new default value is ``0o666`` (octal) and the current umask value
  is first masked out.

* The :ref:`F() expressions <query-expressions>` supported bitwise operators by
+1 −1
Original line number Diff line number Diff line
@@ -676,7 +676,7 @@ Miscellaneous

* Uploaded files are no longer created as executable by default. If you need
  them to be executable change :setting:`FILE_UPLOAD_PERMISSIONS` to your
  needs. The new default value is ``0666`` (octal) and the current umask value
  needs. The new default value is ``0o666`` (octal) and the current umask value
  is first masked out.

* The :ref:`F() expressions <query-expressions>` supported bitwise operators by
Loading