Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ipalib: provide per-call command context | Jan Cholasta | 2016-03-03 | 1 | -0/+21 |
| | | | | | | | Add context which is valid for the duration of command call. The context is accessible using the `context` attribute of Command and Object plugins. Reviewed-By: Martin Basti <mbasti@redhat.com> | ||||
* | Remove unused imports | Martin Basti | 2015-12-23 | 1 | -1/+1 |
| | | | | | | | This patch removes unused imports, alse pylint has been configured to check unused imports. Reviewed-By: Jan Cholasta <jcholast@redhat.com> | ||||
* | Use Python3-compatible dict method names | Petr Viktorin | 2015-09-01 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | Python 2 has keys()/values()/items(), which return lists, iterkeys()/itervalues()/iteritems(), which return iterators, and viewkeys()/viewvalues()/viewitems() which return views. Python 3 has only keys()/values()/items(), which return views. To get iterators, one can use iter() or a for loop/comprehension; for lists there's the list() constructor. When iterating through the entire dict, without modifying the dict, the difference between Python 2's items() and iteritems() is negligible, especially on small dicts (the main overhead is extra memory, not CPU time). In the interest of simpler code, this patch changes many instances of iteritems() to items(), iterkeys() to keys() etc. In other cases, helpers like six.itervalues are used. Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com> | ||||
* | Use absolute imports | Petr Viktorin | 2015-08-12 | 1 | -2/+3 |
| | | | | | | | In Python 3, implicit relative imports will not be supported. Use fully-qualified imports everywhere. Reviewed-By: Tomas Babej <tbabej@redhat.com> | ||||
* | Remove deprecated i18n code from ipalib/request and all references to it. | Pavel Zuna | 2011-03-01 | 1 | -40/+0 |
| | | | | Ticket #903 | ||||
* | Change FreeIPA license to GPLv3+ | Jakub Hrozek | 2010-12-20 | 1 | -5/+5 |
| | | | | | | | | | | The changes include: * Change license blobs in source files to mention GPLv3+ not GPLv2 only * Add GPLv3+ license text * Package COPYING not LICENSE as the license blobs (even the old ones) mention COPYING specifically, it is also more common, I think https://fedorahosted.org/freeipa/ticket/239 | ||||
* | Finish deferred translation mechanism | Jason Gerard DeRose | 2010-03-16 | 1 | -2/+3 |
| | |||||
* | Allow creation of new connections by unshared instances of backend.Connectible. | Pavel Zuna | 2010-01-11 | 1 | -1/+1 |
| | |||||
* | Ported xmlclient to subclass from Connectible | Jason Gerard DeRose | 2009-02-03 | 1 | -16/+9 |
| | |||||
* | Added stuff for managing connections and new Executioner backend base class | Jason Gerard DeRose | 2009-02-03 | 1 | -0/+33 |
| | |||||
* | Added request.ugettext() and request.ungettext() functions; added ↵ | Jason Gerard DeRose | 2009-01-04 | 1 | -3/+11 |
| | | | | corresponding unit tests | ||||
* | request.create_translation() now sets context.ugettext and context.ungettext | Jason Gerard DeRose | 2009-01-03 | 1 | -3/+3 |
| | |||||
* | Started fleshing out reoganization of errors in errors.py (with gettext support) | Jason Gerard DeRose | 2009-01-03 | 1 | -0/+6 |
| | |||||
* | Cleaned up Env.__setattr__() and Env.__setitem__() a bit updated their unit ↵ | Jason Gerard DeRose | 2008-12-22 | 1 | -2/+2 |
| | | | | tests | ||||
* | Added request.create_translation() function and corresponding unit tests | Jason Gerard DeRose | 2008-12-18 | 1 | -6/+15 |
| | |||||
* | Started work on per-request gettext setup | Jason Gerard DeRose | 2008-12-18 | 1 | -0/+48 |