Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix output for commands that do not return entries. | Pavel Zuna | 2010-03-26 | 1 | -3/+24 |
| | | | | | | | | | | | | I also changed the default value of the print_all argument in textui.print_entry from False to True. It think it makes more sense this way, because: 1) if order is None, it will still print something 2) if order is not None, it will print what's in order first and then the rest 3) commands that care about the print_all argument have to set it in any case, those that don't care usually want to print everything | ||||
* | Add INTERNAL flag to frontend plugins. If set, the plugin won't show in UI. | Pavel Zuna | 2010-03-22 | 1 | -0/+3 |
| | |||||
* | Include params in Method.output_params | Rob Crittenden | 2010-03-19 | 1 | -0/+9 |
| | | | | | | | | Method overrides the Command get_output_params() method and only returns the object params, not anything defined within the method itself. Return those as well so they are displayed in output. Some care needs to be taken to avoid returning duplicate values. In the case of duplicates the value in obj.params wins. | ||||
* | localize doc strings | John Dennis | 2010-03-08 | 1 | -3/+3 |
| | | | | | | | | | | | | A number of doc strings were not localized, wrap them in _(). Some messages were not localized, wrap them in _() Fix a couple of failing tests: The method name in RPC should not be unicode. The doc attribute must use the .msg attribute for comparison. Also clean up imports of _() The import should come from ipalib or ipalib.text, not ugettext from request. | ||||
* | Fix unicode failures in Env tests and dn failures in XML-RPC tests | Rob Crittenden | 2010-02-26 | 1 | -1/+1 |
| | |||||
* | Translatable Param.label, Param.doc | Jason Gerard DeRose | 2010-02-24 | 1 | -1/+1 |
| | |||||
* | Auto-generate --all and --raw for commands, that return entries. | Pavel Zuna | 2010-02-17 | 1 | -7/+28 |
| | |||||
* | Use the Output tuple to determine the order of output | Rob Crittenden | 2010-02-15 | 1 | -9/+20 |
| | | | | | | | | | | | | | | The attributes displayed is now dependant upon their definition in a Param. This enhances that, giving some level of control over how the result is displayed to the user. This also fixes displaying group membership, including failures of adding/removing entries. All tests pass now though there is still one problem. We need to return the dn as well. Once that is fixed we just need to comment out all the dn entries in the tests and they should once again pass. | ||||
* | Add Object.label class attribute, enable in webUI | Jason Gerard DeRose | 2010-02-12 | 1 | -0/+3 |
| | |||||
* | Command.output_params not contains params in Command.params | Jason Gerard DeRose | 2010-02-11 | 1 | -0/+7 |
| | |||||
* | Remove __public__ and __proxy__ hold-overs from Plugin class | Jason Gerard DeRose | 2010-01-28 | 1 | -35/+0 |
| | |||||
* | Take 2: Extensible return values and validation; steps toward a single ↵ | Jason Gerard DeRose | 2009-12-10 | 1 | -20/+125 |
| | | | | output_for_cli(); enable more webUI stuff | ||||
* | Add support for setting/adding arbitrary attributes | Rob Crittenden | 2009-11-17 | 1 | -0/+45 |
| | | | | | | | | | | | | | | | | | | | | | | | This introduces 2 new params: --setattr and --addattr Both take a name/value pair, ala: ipa user-mod --setattr=postalcode=20601 jsmith --setattr replaces or sets the current attribute to the value --addattr adds the value to an attribute (or sets a new attribute) OptionsParser allows multiple versions of this, so you can have multiple setattr and addattr, either for the same attribute or for different attributes. ipa user-mod --addattr=postalcode=20601 --addattr=postalcode=30330 jsmith Values are silent dropped if either of these on an existing param: ipa user-mod --setattr=givenname=Jerry jsmith Is a no-op. | ||||
* | Removed util.add_global_options() and frontend.Application | Jason Gerard DeRose | 2009-10-14 | 1 | -41/+0 |
| | |||||
* | Giant webui patch take 2 | Jason Gerard DeRose | 2009-10-13 | 1 | -0/+1 |
| | |||||
* | Fix: Object.params_minus_pk was invalid when there was no primary_key. | Pavel Zuna | 2009-09-09 | 1 | -0/+2 |
| | |||||
* | Removed PluginProxy and all its uses | Jason Gerard DeRose | 2009-08-05 | 1 | -6/+6 |
| | |||||
* | Remove use_ldap2 constant. | Pavel Zuna | 2009-07-02 | 1 | -15/+7 |
| | |||||
* | Make get_dn parameter list more generic. Fix Attribute name regex. | Pavel Zuna | 2009-06-10 | 1 | -3/+3 |
| | | | | | The old name regex made it impossible to have Attribute instances with names composed of more than two words separated by underscores. | ||||
* | Completed Param.use_in_context() functionality, which is now used by Command ↵ | Jason Gerard DeRose | 2009-05-21 | 1 | -71/+249 |
| | | | | and Object | ||||
* | Added Param 'include' and 'exclude' kwargs; added frontend.UsesParams base ↵ | Jason Gerard DeRose | 2009-05-19 | 1 | -1/+106 |
| | | | | class with methods implementing the filtering to restrict params to only certain contexts | ||||
* | Import the RequiresRoot error and make note to replace this at some point | Rob Crittenden | 2009-04-24 | 1 | -1/+1 |
| | |||||
* | Rename errors2.py to errors.py. Modify all affected files. | Pavel Zuna | 2009-04-23 | 1 | -2/+2 |
| | |||||
* | Add conditional (env.use_ldap2 is True) modifications required by new LDAP ↵ | Pavel Zuna | 2009-04-22 | 1 | -6/+15 |
| | | | | backend. | ||||
* | Add ipalib.frontend.Command method to build an entry from params with ↵ | Pavel Zuna | 2009-02-23 | 1 | -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 classes | Jason Gerard DeRose | 2009-02-03 | 1 | -10/+11 |
| | |||||
* | Got new ldap connection working using Connectible.connect() | Jason Gerard DeRose | 2009-02-03 | 1 | -2/+2 |
| | |||||
* | Removed depreciated import of errors in frontend.py | Jason Gerard DeRose | 2009-02-03 | 1 | -3/+1 |
| | |||||
* | Added ServiceError (KerberosError) and make rpc.KerbTransport raise it if ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -1/+4 |
| | | | | appropriate | ||||
* | Added some missing parameter unit tests; added docstring about ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -3/+21 |
| | | | | Command._repr_iter() and Param.safe_value() | ||||
* | More work on xmlrpc stuff, started migrated more code to use errors2 instead ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -7/+15 |
| | | | | of errors | ||||
* | Further migration toward new xmlrcp code; fixed problem with unicode ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -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 DeRose | 2009-02-03 | 1 | -0/+1 |
| | | | | to get filled in | ||||
* | Added Object.params_minus() method; various small tweaks | Jason Gerard DeRose | 2009-02-03 | 1 | -1/+14 |
| | |||||
* | Removed depreciated Command.args_to_kw() method; updated CLI to use ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -47/+9 |
| | | | | Command.args_options_2_params() instead | ||||
* | Added Command.args_options_2_params() method and its unit tests | Jason Gerard DeRose | 2009-02-03 | 1 | -5/+47 |
| | |||||
* | Started roughing out new crud base classes | Jason Gerard DeRose | 2009-02-03 | 1 | -0/+2 |
| | |||||
* | Command.takes_options and Command.takes_args class attributes can now also ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -4/+14 |
| | | | | be a callable | ||||
* | New Param: all docstring examples now pass under doctests | Jason Gerard DeRose | 2009-01-14 | 1 | -14/+16 |
| | |||||
* | New Param: got most of unit tests ported (still have 6 errors); haven't ↵ | Jason Gerard DeRose | 2009-01-14 | 1 | -26/+22 |
| | | | | ported doctests yet | ||||
* | New Param: removed more depreciated 'import ipa_types' | Jason Gerard DeRose | 2009-01-14 | 1 | -0/+1 |
| | |||||
* | Removed depreciated code from frontend.py; frontend.py no longer imports ↵ | Jason Gerard DeRose | 2009-01-14 | 1 | -450/+3 |
| | | | | ipa_types | ||||
* | Plugin.__init__() now checks that subclass hasn't defined attributes that ↵ | Jason Gerard DeRose | 2008-12-21 | 1 | -1/+0 |
| | | | | conflict with the logger methods; added corresponding unit test | ||||
* | Removed Plugin.name property and replaced with instance attribute created in ↵ | Jason Gerard DeRose | 2008-12-17 | 1 | -2/+3 |
| | | | | Plugin.__init__() | ||||
* | Continued work on xmlrpc.dispatch() unit tests; fixed bug in ↵ | Jason Gerard DeRose | 2008-11-25 | 1 | -1/+7 |
| | | | | Command.args_to_kw() | ||||
* | Some changes to make reading dubugging output easier | Jason Gerard DeRose | 2008-11-24 | 1 | -1/+4 |
| | |||||
* | Added unit test for Param.ispassword() method | Jason Gerard DeRose | 2008-11-18 | 1 | -1/+0 |
| | |||||
* | Calling 'passwd' command now prompts for password using textui.prompt_password() | Jason Gerard DeRose | 2008-11-18 | 1 | -0/+7 |
| | |||||
* | Command.get_defaults() now returns param.default if param.type is a Bool | Jason Gerard DeRose | 2008-11-17 | 1 | -0/+2 |
| | |||||
* | env plugin now subclasses from RemoteOrLocal | Jason Gerard DeRose | 2008-11-14 | 1 | -1/+1 |
| |