summaryrefslogtreecommitdiffstats
path: root/ipalib/frontend.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Add ipalib.frontend.Command method to build an entry from params with ↵Pavel Zuna2009-02-231-0/+15
| | | | | | | | attribute=True. Often plugins need to build LDAP entries from params. This should make things a bit easier. Crud methods (Create, Retrieve, Update, Delete, Search) have attribute=True by default. And it also works for multivalue params.
* Some tweaks in user plugins, ported to new crud base classesJason Gerard DeRose2009-02-031-10/+11
|
* Got new ldap connection working using Connectible.connect()Jason Gerard DeRose2009-02-031-2/+2
|
* Removed depreciated import of errors in frontend.pyJason Gerard DeRose2009-02-031-3/+1
|
* Added ServiceError (KerberosError) and make rpc.KerbTransport raise it if ↵Jason Gerard DeRose2009-02-031-1/+4
| | | | appropriate
* Added some missing parameter unit tests; added docstring about ↵Jason Gerard DeRose2009-02-031-3/+21
| | | | Command._repr_iter() and Param.safe_value()
* More work on xmlrpc stuff, started migrated more code to use errors2 instead ↵Jason Gerard DeRose2009-02-031-7/+15
| | | | of errors
* Further migration toward new xmlrcp code; fixed problem with unicode ↵Jason Gerard DeRose2009-02-031-9/+11
| | | | Fault.faultString; fixed problem where ServerProxy method was not called correctly
* Removed bogus CLI.set_defaults() method that was causing non-required values ↵Jason Gerard DeRose2009-02-031-0/+1
| | | | to get filled in
* Added Object.params_minus() method; various small tweaksJason Gerard DeRose2009-02-031-1/+14
|
* Removed depreciated Command.args_to_kw() method; updated CLI to use ↵Jason Gerard DeRose2009-02-031-47/+9
| | | | Command.args_options_2_params() instead
* Added Command.args_options_2_params() method and its unit testsJason Gerard DeRose2009-02-031-5/+47
|
* Started roughing out new crud base classesJason Gerard DeRose2009-02-031-0/+2
|
* Command.takes_options and Command.takes_args class attributes can now also ↵Jason Gerard DeRose2009-02-031-4/+14
| | | | be a callable
* New Param: all docstring examples now pass under doctestsJason Gerard DeRose2009-01-141-14/+16
|
* New Param: got most of unit tests ported (still have 6 errors); haven't ↵Jason Gerard DeRose2009-01-141-26/+22
| | | | ported doctests yet
* New Param: removed more depreciated 'import ipa_types'Jason Gerard DeRose2009-01-141-0/+1
|
* Removed depreciated code from frontend.py; frontend.py no longer imports ↵Jason Gerard DeRose2009-01-141-450/+3
| | | | ipa_types
* Plugin.__init__() now checks that subclass hasn't defined attributes that ↵Jason Gerard DeRose2008-12-211-1/+0
| | | | conflict with the logger methods; added corresponding unit test
* Removed Plugin.name property and replaced with instance attribute created in ↵Jason Gerard DeRose2008-12-171-2/+3
| | | | Plugin.__init__()
* Continued work on xmlrpc.dispatch() unit tests; fixed bug in ↵Jason Gerard DeRose2008-11-251-1/+7
| | | | Command.args_to_kw()
* Some changes to make reading dubugging output easierJason Gerard DeRose2008-11-241-1/+4
|
* Added unit test for Param.ispassword() methodJason Gerard DeRose2008-11-181-1/+0
|
* Calling 'passwd' command now prompts for password using textui.prompt_password()Jason Gerard DeRose2008-11-181-0/+7
|
* Command.get_defaults() now returns param.default if param.type is a BoolJason Gerard DeRose2008-11-171-0/+2
|
* env plugin now subclasses from RemoteOrLocalJason Gerard DeRose2008-11-141-1/+1
|
* Added frontend.LocalOrRemote command base class for commands like envJason Gerard DeRose2008-11-141-0/+31
|
* Change Param.__repr__() so it returns the exact expression that could create ↵Jason Gerard DeRose2008-11-131-13/+17
| | | | it; added unit test for Param.__repre__()
* Param.__repr__() now uses util.make_repr()Jason Gerard DeRose2008-11-131-5/+5
|
* Added util.make_repr() function; added corresponding unit testsJason Gerard DeRose2008-11-131-0/+1
|
* output_for_cli signature is now output_for_cli(textui, result, *args, **options)Jason Gerard DeRose2008-11-121-6/+10
|
* Command.get_default() will now fill-in None for all missing non-required paramsJason Gerard DeRose2008-11-121-3/+6
|
* API.env is now an Env instance rather than an Environment instanceJason Gerard DeRose2008-10-271-1/+1
|
* Fixed typos in tables in docstrings for Attribute and MethodJason Gerard DeRose2008-10-211-8/+8
|
* Added docstring (with example) to frontend.Attribute classJason Gerard DeRose2008-10-201-0/+34
|
* Added docstring (with examples) to frontend.Method classJason Gerard DeRose2008-10-201-0/+62
|
* Fixed bug in DefaultFrom where impleied keys were using entire ↵Jason Gerard DeRose2008-10-201-1/+2
| | | | func_code.co_varnames instead of an approprate slice
* Added some more examples to Param docstringsJason Gerard DeRose2008-10-181-1/+23
|
* Removed generic Command.output_for_cli() method; CLI.run_interactive() now ↵Jason Gerard DeRose2008-10-171-8/+1
| | | | only calls output_for_cli() if it has been implemented
* make-test now runs doctests also; fixed several broken doctestsJason Gerard DeRose2008-10-171-4/+4
|
* Added new Param.flags attribute (set with flags=foo kwarg)Jason Gerard DeRose2008-10-171-0/+3
|
* Started roughing out user_add() using api.Backend.ldap; added ↵Jason Gerard DeRose2008-10-141-0/+9
| | | | Command.output_for_cli() to take care of formatting print output
* Added Object.get_dn() method; added corresponding unit testsJason Gerard DeRose2008-10-131-0/+7
|
* Command.params are now sorted the same way as Object.params (make user-add ↵Jason Gerard DeRose2008-10-131-1/+8
| | | | prompt for first, last before login)
* Param now takes cli_name kwarg that sets Param.cli_name attributeJason Gerard DeRose2008-10-131-0/+4
|
* Base Command.execute() method now raises NotImplementedError; updated unit testsJason Gerard DeRose2008-10-081-3/+1
|
* Reorganized Command methods so it is easier to understand and added lots of ↵Jason Gerard DeRose2008-10-081-85/+223
| | | | docstrings
* Backend.xmlrpc and simple-server.py now use the xmlrpc_marshal() and ↵Jason Gerard DeRose2008-10-021-2/+4
| | | | xmlrpc_unmarshal() functions respectively
* -mJason Gerard DeRose2008-10-021-1/+0
|
* Command.get_default() now only returns a defaults for required valuesJason Gerard DeRose2008-10-021-1/+1
|