summaryrefslogtreecommitdiffstats
path: root/ipalib/request.py
Commit message (Collapse)AuthorAgeFilesLines
* remove trailing newlines form python modulesMartin Babinsky2016-10-121-1/+0
| | | | | | | | | pylint-1.6.4-1.fc26.noarch reports these, hence they should be fixed in order to build FreeIPA with this version https://fedorahosted.org/freeipa/ticket/6391 Reviewed-By: Martin Basti <mbasti@redhat.com>
* ipalib: provide per-call command contextJan Cholasta2016-03-031-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 importsMartin Basti2015-12-231-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 namesPetr Viktorin2015-09-011-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 importsPetr Viktorin2015-08-121-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 Zuna2011-03-011-40/+0
| | | | Ticket #903
* Change FreeIPA license to GPLv3+Jakub Hrozek2010-12-201-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 mechanismJason Gerard DeRose2010-03-161-2/+3
|
* Allow creation of new connections by unshared instances of backend.Connectible.Pavel Zuna2010-01-111-1/+1
|
* Ported xmlclient to subclass from ConnectibleJason Gerard DeRose2009-02-031-16/+9
|
* Added stuff for managing connections and new Executioner backend base classJason Gerard DeRose2009-02-031-0/+33
|
* Added request.ugettext() and request.ungettext() functions; added ↵Jason Gerard DeRose2009-01-041-3/+11
| | | | corresponding unit tests
* request.create_translation() now sets context.ugettext and context.ungettextJason Gerard DeRose2009-01-031-3/+3
|
* Started fleshing out reoganization of errors in errors.py (with gettext support)Jason Gerard DeRose2009-01-031-0/+6
|
* Cleaned up Env.__setattr__() and Env.__setitem__() a bit updated their unit ↵Jason Gerard DeRose2008-12-221-2/+2
| | | | tests
* Added request.create_translation() function and corresponding unit testsJason Gerard DeRose2008-12-181-6/+15
|
* Started work on per-request gettext setupJason Gerard DeRose2008-12-181-0/+48