[issue7333] Add initgroups to the posix/os modules

2009-12-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The documentation is os.rst is too laconic (coming from the Windows world, I could not understand what the function is about). The docstring is much better (at least I understand it's related to the Unix security model), I suggest to use

[issue7333] Add initgroups to the posix/os modules

2009-12-02 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: New version attached which makes the os.rst docs the same as the docstring. Also fixes a conflict since introduced in trunk in configure.in. -- Added file: http://bugs.python.org/file15440/initgroups-5.patch

[issue7333] Add initgroups to the posix/os modules

2009-12-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Slightly modified and committed in r76636 (trunk) and r76637 (py3k). Thank you. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7333

[issue7333] Add initgroups to the posix/os modules

2009-11-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You can use the new test-skipping feature: http://docs.python.org/dev/library/unittest.html#skipping-tests-and-expected-failures -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue7333] Add initgroups to the posix/os modules

2009-11-17 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Alright. Updated patch attached. -- Added file: http://bugs.python.org/file15353/initgroups-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7333

[issue7333] Add initgroups to the posix/os modules

2009-11-17 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: pyflakes told me I didn't import errno in test_posix.py. Updated patch attached. -- Added file: http://bugs.python.org/file15354/initgroups-4.patch ___ Python tracker rep...@bugs.python.org

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: initgroups(2) is a function for initializing the aux group id list from site-specific configuration (typically /etc/groups, but not necessarily). Attached is a patch based on some code from Zope, expanded to have a test and some docs.

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: In case anyone is concerned about licensing issues, please see https://mail.zope.org/pipermail/zope-dev/2009-November/038289.html -- ___ Python tracker rep...@bugs.python.org

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: The test should skip when not hasattr(os, 'initgroups') since it's optional -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7333

[issue7333] Add initgroups to the posix/os modules

2009-11-16 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Good point. Updated patch attached. -- Added file: http://bugs.python.org/file15347/initgroups-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7333