summaryrefslogtreecommitdiffstats
path: root/ipalib/base.py
Commit message (Collapse)AuthorAgeFilesLines
* Modernize use of range()Petr Viktorin2015-09-011-1/+1
| | | | | | | | | | | | In Python 3, range() behaves like the old xrange(). The difference between range() and xrange() is usually not significant, especially if the whole result is iterated over. Convert xrange() usage to range() for small ranges. Use modern idioms in a few other uses of range(). Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Jan Cholasta <jcholast@redhat.com>
* Use six.string_types instead of "basestring"Petr Viktorin2015-09-011-1/+3
| | | | | 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>
* Allow indexing API object types by classPetr Viktorin2014-03-251-2/+13
| | | | | | | | | | | | | | This allows code like: from ipalib.plugins.dns import dnszone_mod api.Command[dnszone_mod] This form should be preferred when getting specific objects because it ensures that the appropriate plugin is imported. https://fedorahosted.org/freeipa/ticket/4185 Reviewed-By: Martin Kosek <mkosek@redhat.com>
* 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
* Allow one-character Param namesRob Crittenden2010-02-121-1/+1
| | | | This is done explicitly to support the l/localityname attribute.
* Removed PluginProxy and all its usesJason Gerard DeRose2009-08-051-4/+4
|
* Further migration toward new xmlrcp code; fixed problem with unicode ↵Jason Gerard DeRose2009-02-031-1/+1
| | | | Fault.faultString; fixed problem where ServerProxy method was not called correctly
* Added a few missing things to base.ReadOnly docstringsJason Gerard DeRose2009-01-051-2/+19
|
* A few docstring edits in base.NameSpaceJason Gerard DeRose2009-01-021-5/+7
|
* A few base.NameSpace docstring tweaksJason Gerard DeRose2008-12-311-7/+11
|
* Copied plugable.NameSpace to base.NameSpace and made many docstring and unit ↵Jason Gerard DeRose2008-12-311-1/+239
| | | | test improvements
* Added base.lock() and base.islocked() functions; added corresponding unit testsJason Gerard DeRose2008-12-301-0/+55
|
* More docstring cleanup in ipalib.configJason Gerard DeRose2008-12-301-3/+4
|
* Small changes to base.ReadOnly docstringJason Gerard DeRose2008-12-301-9/+5
|
* Decided against indenting the example code in the base.ReadOnly docstringJason Gerard DeRose2008-12-301-39/+40
|
* Started moving some core classes and functions from plugable.py to new ↵Jason Gerard DeRose2008-12-301-0/+172
| | | | base.py module
* 60: Remeved depreciated base.py, crud.py; remeved corresponding ↵Jason Gerard DeRose2008-08-061-499/+0
| | | | test_base.py, test_crud.py
* 31: Renamed exceptions.py to errors.pyJason Gerard DeRose2008-07-311-8/+8
|
* 29: Some experimentation to make the Registar more generalizedJason Gerard DeRose2008-07-251-8/+86
|
* 28: Added new base.Register class that is a more generic way of doing the ↵Jason Gerard DeRose2008-07-221-0/+58
| | | | plugin registration and doesn't itself instatiate any plugins; added corresponding unit tests
* 27: Added quick hack for replace('-', '_') problem I'm havingJason Gerard DeRose2008-07-211-1/+4
|
* 26: Added AbstractCommand.get_doc() method to return the gettext translated ↵Jason Gerard DeRose2008-07-211-1/+28
| | | | summary of command; added get_doc() method to all example
* 24: Ported Registar to changes around Attribute; updated unit testsJason Gerard DeRose2008-07-201-84/+69
|
* 23: Added base.Attribute class that determins the object association via ↵Jason Gerard DeRose2008-07-201-2/+74
| | | | class naming convention instead of through the _obj attribute
* 22: Named.name property now calls _get_name() at first evaluation to make ↵Jason Gerard DeRose2008-07-201-1/+8
| | | | changing the behaviour in subclasses easier
* 20: Updated example plugins, added '_api_' command to ipa script with prints ↵Jason Gerard DeRose2008-07-201-1/+2
| | | | the api
* 18: Moved base2 stuff into baseJason Gerard DeRose2008-07-201-70/+99
|
* 14: Added Named.cli property that returns name.replace('_', '-'); Named.doc ↵Jason Gerard DeRose2008-07-201-1/+5
| | | | property now does a strip() to make it more user-friendly; added test_Named unit tests which somehow got dropped, uppdated with new Named properties
* 13: Starting playing around with 'ipa' cli scriptJason Gerard DeRose2008-07-201-1/+14
|
* 11: Added submodules needed to triger the plugin loading, etc., so I can ↵Jason Gerard DeRose2008-07-201-0/+1
| | | | start work on the cli demo
* 10: Updated base.API to reflect the fact that base.Object is now the new ↵Jason Gerard DeRose2008-07-201-37/+30
| | | | unit of plugin functionality; updated corresponding unit tests
* 9: Reorganized new work and unit tests based around base.Object being the ↵Jason Gerard DeRose2008-07-191-48/+65
| | | | plugin definining unit
* 8: Experimental work on more OO definition of what gets pluged into API.commandsJason Gerard DeRose2008-07-191-2/+6
|
* 7: Roughed out API.finalize(); added corresponding unit testsJason Gerard DeRose2008-07-191-10/+17
|
* 6: Fleshed out API.register_command, made correpsonding unit tests much more ↵Jason Gerard DeRose2008-07-191-20/+25
| | | | rigorous
* 5: Fleshed out base.Named, added corresponding unit testsJason Gerard DeRose2008-07-191-7/+20
|
* 4: Got basics of API.register_command() working; added corresponding unit testsJason Gerard DeRose2008-07-191-19/+51
|
* 3: Finished NameSpace and cerresponding unit testsJason Gerard DeRose2008-07-191-7/+71
|
* 2: Got basics of NameSpace working, added corresponding unit testsJason Gerard DeRose2008-07-181-3/+44
|
* 1: Started roughing out ipalib packageJason Gerard DeRose2008-07-181-0/+45