Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix output for commands that do not return entries. | Pavel Zuna | 2010-03-26 | 1 | -2/+2 |
| | | | | | | | | | | | | 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 | -1/+3 |
| | |||||
* | localize doc strings | John Dennis | 2010-03-08 | 1 | -1/+1 |
| | | | | | | | | | | | | 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 bug 570392, command help traceback | John Dennis | 2010-03-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | As a consequence of using doc=_('some message') the _() method was returning a Gettext instance, thus when optparse was handed the help text it received a Gettext instance instead of a basestring. optparse tried to operate on the Gettext instance as if it were a basestring and since it wasn't threw an exception. The fix is to promote (e.g. cast) the option.doc to unicode. If the option.doc was a str it becomes unicode, if it was unicode nothing happens, if it was Gettext (or any other object implementing the __unicode__() method) object is converted to unicode via the objects rules. By the way, while debugging this I discovered strings which were not localized, sometimes option.doc would be a str and sometimes a Gettext object. In a subsequent patch I'll fix all those unlocalized doc strings, but I don't want to bury this fix along with a load of string fixes. | ||||
* | Fix non XML-RPC tests | Jason Gerard DeRose | 2010-02-19 | 1 | -9/+0 |
| | |||||
* | Used named variables in calls to print_attribute() | Rob Crittenden | 2010-02-17 | 1 | -2/+2 |
| | |||||
* | Reverse patch to not encode int values, handled at OID level properly now. | Rob Crittenden | 2010-02-17 | 1 | -5/+1 |
| | |||||
* | Auto-generate --all and --raw for commands, that return entries. | Pavel Zuna | 2010-02-17 | 1 | -26/+34 |
| | |||||
* | Don't base64-encode integers | Rob Crittenden | 2010-02-17 | 1 | -1/+5 |
| | | | | | | This is a temporary fix until we either use Params to determine output type or treat integers differently from other binary values internally (as unicode instead of str, for example). | ||||
* | Use the Output tuple to determine the order of output | Rob Crittenden | 2010-02-15 | 1 | -5/+8 |
| | | | | | | | | | | | | | | 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. | ||||
* | Base64-encode binary values on the command-line | Rob Crittenden | 2010-02-02 | 1 | -3/+17 |
| | |||||
* | Temporary fix for name collision of textui.print_entry. | Pavel Zuna | 2010-01-20 | 1 | -1/+1 |
| | | | | Somehow there's two of them... rename old one to print_entry1. | ||||
* | Take 2: Extensible return values and validation; steps toward a single ↵ | Jason Gerard DeRose | 2009-12-10 | 1 | -3/+55 |
| | | | | output_for_cli(); enable more webUI stuff | ||||
* | Fix Bool parameter type. It was impossible to set it to FALSE. | Pavel Zuna | 2009-11-30 | 1 | -1/+1 |
| | |||||
* | Print only one line of docstrings in command listings. | Pavel Zuna | 2009-11-30 | 1 | -4/+3 |
| | | | | Full docstring is shown on `ipa help COMMAND`. | ||||
* | Fix typo in name of exception | Rob Crittenden | 2009-11-12 | 1 | -1/+1 |
| | |||||
* | Add 'File' parameter type. | Pavel Zuna | 2009-11-06 | 1 | -1/+34 |
| | | | | Accepts filenames and loads file contents as parameter value. | ||||
* | Fix bug in print_attribute. | Pavel Zuna | 2009-10-23 | 1 | -1/+1 |
| | | | | | When the attribute had no values an exception was generated while trying to word-wrap it. | ||||
* | Removed util.add_global_options() and frontend.Application | Jason Gerard DeRose | 2009-10-14 | 1 | -2/+2 |
| | |||||
* | Giant webui patch take 2 | Jason Gerard DeRose | 2009-10-13 | 1 | -1/+1 |
| | |||||
* | Fix unit tests for plugins using baseldap classes. | Pavel Zuna | 2009-10-05 | 1 | -1/+4 |
| | |||||
* | Improve attribute printing in the CLI. | Pavel Zuna | 2009-09-08 | 1 | -5/+28 |
| | | | | | - allow choice between single/multiple value per line - word wrapping | ||||
* | Removed PluginProxy and all its uses | Jason Gerard DeRose | 2009-08-05 | 1 | -6/+9 |
| | |||||
* | Fix three broken unit tests | Jason Gerard DeRose | 2009-08-04 | 1 | -2/+1 |
| | |||||
* | Enable attribute re-mapping and ordering when printing entries. | Pavel Zuna | 2009-08-03 | 1 | -10/+22 |
| | | | | Also print multiple values on one line separated by commas. | ||||
* | Require a password only once when it is passed in via a pipe | Rob Crittenden | 2009-07-10 | 1 | -21/+13 |
| | |||||
* | Add a one-character option for parameters | Rob Crittenden | 2009-07-10 | 1 | -1/+4 |
| | |||||
* | Add a return value to exceptions. | Rob Crittenden | 2009-07-10 | 1 | -4/+11 |
| | | | | | | | | Returning the exception value doesn't work because a shell return value is in the range of 0-255. The default return value is 1 which means "something went wrong." The only specific return value implemented so far is 2 which is "not found". | ||||
* | Add textui function to display and prompt user for selection for *-find. | Rob Crittenden | 2009-07-10 | 1 | -7/+63 |
| | | | | | Since we may end up executing a *-show when an entry is selected we need to defer destroying the connection context. | ||||
* | Two new arguments for the help built-in command: topics and commands | Rob Crittenden | 2009-06-15 | 1 | -2/+7 |
| | | | | | ipa help topics will show all topics (equivalent to ipa help) ipa help commands will show list of all available commands | ||||
* | Fix a few issues introduced by the new Param.use_in_context() patch | Rob Crittenden | 2009-05-21 | 1 | -1/+1 |
| | |||||
* | Re-enable doctest, fix broken docstrings | Jason Gerard DeRose | 2009-05-13 | 1 | -3/+3 |
| | |||||
* | When reading a password, if there is no tty, read from stdin instead. | Rob Crittenden | 2009-05-04 | 1 | -2/+14 |
| | | | | | | This will allow one to pipe a password in: echo -e "secret123\secret123\n" | ipa password someuser | ||||
* | Change help interface to display builtin commands and a list of topics based ↵ | Pavel Zuna | 2009-04-30 | 1 | -20/+77 |
| | | | | on plugin modules. | ||||
* | Fixed cli.run() catching SystemExit exception under Python2.4 | Jason Gerard DeRose | 2009-04-28 | 1 | -1/+1 |
| | | | | Resolves BZ #498088 | ||||
* | Rename errors2.py to errors.py. Modify all affected files. | Pavel Zuna | 2009-04-23 | 1 | -1/+1 |
| | |||||
* | Make LDAP entry output slightly nicer, don't print u's in front of unicode ↵ | Pavel Zuna | 2009-04-23 | 1 | -7/+23 |
| | | | | strings etc. | ||||
* | Finish work replacing the errors module with errors2 | Rob Crittenden | 2009-04-20 | 1 | -5/+3 |
| | | | | | | Once this is committed we can start the process of renaming errors2 as errors. I thought that combinig this into one commit would be more difficult to review. | ||||
* | Implement an installer for the Dogtag certificate system. | Rob Crittenden | 2009-04-03 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | The CA is currently not automatically installed. You have to pass in the --ca flag to install it. What works: - installation - unistallation - cert/ra plugins can issue and retrieve server certs What doesn't work: - self-signed CA is still created and issues Apache and DS certs - dogtag and python-nss not in rpm requires - requires that CS be in the "pre" install state from pkicreate | ||||
* | Always print the dn first when printing an entry | Rob Crittenden | 2009-03-25 | 1 | -0/+3 |
| | |||||
* | Fixed broken autfill logic in cli.prompt_interactively() | Jason Gerard DeRose | 2009-02-27 | 1 | -20/+22 |
| | |||||
* | Print out multi-valued values one per-line instead of comman-delimited | Rob Crittenden | 2009-02-19 | 1 | -3/+3 |
| | |||||
* | Got new ldap connection working using Connectible.connect() | Jason Gerard DeRose | 2009-02-03 | 1 | -10/+7 |
| | |||||
* | Finished reworked cli.CLI class into cli.cli plugin | Jason Gerard DeRose | 2009-02-03 | 1 | -354/+50 |
| | |||||
* | Started reworking CLI class into cli plugin | Jason Gerard DeRose | 2009-02-03 | 1 | -31/+181 |
| | |||||
* | CLI now logs trace if it catches a non-public error and then exists with an ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -53/+20 |
| | | | | InternalError; other CLI cleanup | ||||
* | Fixed another small CLI decoding problem (multivalue args in a tuple now work) | Jason Gerard DeRose | 2009-02-03 | 1 | -6/+6 |
| | |||||
* | Fixed a few problems in the CLI interactive prompting (wont prompt for Flag now) | Jason Gerard DeRose | 2009-02-03 | 1 | -10/+6 |
| | |||||
* | More work on xmlrpc stuff, started migrated more code to use errors2 instead ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -2/+2 |
| | | | | of errors | ||||
* | More xmlrpc tweaks: xmlserver.execute() now logs non-public exceptions; ↵ | Jason Gerard DeRose | 2009-02-03 | 1 | -9/+19 |
| | | | | xmlclient.forward() now handles socket error; fixed some Python 2.4 problems in lite-xmlrpc2.py |