Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add CLI parsing tests | Petr Viktorin | 2012-03-28 | 1 | -0/+3 |
| | | | | | | | These test that command lines are parsed to correct Command arguments. Includes some tests for interactive prompts. To make this possible cli.run is broken up into several pieces. | ||||
* | Replace float with Decimal | Martin Kosek | 2012-01-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | Having float type as a base type for floating point parameters in ipalib introduces several issues, e.g. problem with representation or value comparison. Python language provides a Decimal type which help overcome these issues. This patch replaces a float type and Float parameter with a decimal.Decimal type in Decimal parameter. A precision attribute was added to Decimal parameter that can be used to limit a number of decimal places in parameter representation. This approach fixes a problem with API.txt validation where comparison of float values may fail on different architectures due to float representation error. In order to safely transfer the parameter value over RPC it is being converted to string which is then converted back to decimal.Decimal number on a server side. https://fedorahosted.org/freeipa/ticket/2260 | ||||
* | Parse comma-separated lists of values in all parameter types. This can be ↵ | Jan Cholasta | 2011-11-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | enabled for a specific parameter by setting the "csv" option to True. Remove "List" parameter type and replace all occurences of it with appropriate multi-valued parameter ("Str" in most cases) with csv enabled. Add new parameter type "Any", capable of holding values of any type. This is needed by the "batch" command, as "Str" is not suitable type for the "methods" parameter. ticket 2007 | ||||
* | Add plugin framework to LDAP updates. | Rob Crittenden | 2011-11-22 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | There are two reasons for the plugin framework: 1. To provide a way of doing manual/complex LDAP changes without having to keep extending ldapupdate.py (like we did with managed entries). 2. Allows for better control of restarts. There are two types of plugins, preop and postop. A preop plugin runs before any file-based updates are loaded. A postop plugin runs after all file-based updates are applied. A preop plugin may update LDAP directly or craft update entries to be applied with the file-based updates. Either a preop or postop plugin may attempt to restart the dirsrv instance. The instance is only restartable if ipa-ldap-updater is being executed as root. A warning is printed if a restart is requested for a non-root user. Plugins are not executed by default. This is so we can use ldapupdate to apply simple updates in commands like ipa-nis-manage. https://fedorahosted.org/freeipa/ticket/1789 https://fedorahosted.org/freeipa/ticket/1790 https://fedorahosted.org/freeipa/ticket/2032 | ||||
* | Fix typos | Yuri Chornoivan | 2011-09-07 | 1 | -1/+1 |
| | | | | | | Fix "The the" and "classses" in FreeIPA code and messages. https://fedorahosted.org/freeipa/ticket/1480 | ||||
* | Fix translatable strings in ipalib plugins. | Pavel Zuna | 2011-03-01 | 1 | -1/+1 |
| | | | | Needed for xgettext/pygettext processing. | ||||
* | Change FreeIPA license to GPLv3+ | Jakub Hrozek | 2010-12-20 | 1 | -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 | ||||
* | Add new parameter type IA5Str and use this to enforce the right charset. | Rob Crittenden | 2010-12-07 | 1 | -1/+1 |
| | | | | ticket 496 | ||||
* | UUIDs: remove uuid python plugin and let DS always autogenerate | Simo Sorce | 2010-10-28 | 1 | -5/+0 |
| | | | | merge in remove uuid | ||||
* | Finish deferred translation mechanism | Jason Gerard DeRose | 2010-03-16 | 1 | -1/+1 |
| | |||||
* | Fix unicode failures in Env tests and dn failures in XML-RPC tests | Rob Crittenden | 2010-02-26 | 1 | -1/+1 |
| | |||||
* | Use the Output tuple to determine the order of output | Rob Crittenden | 2010-02-15 | 1 | -10/+10 |
| | | | | | | | | | | | | | | 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. | ||||
* | Take 2: Extensible return values and validation; steps toward a single ↵ | Jason Gerard DeRose | 2009-12-10 | 1 | -25/+35 |
| | | | | output_for_cli(); enable more webUI stuff | ||||
* | Rename GeneralizedTime to AccessTime. | Pavel Zuna | 2009-12-01 | 1 | -1/+1 |
| | |||||
* | Add 'File' parameter type. | Pavel Zuna | 2009-11-06 | 1 | -1/+1 |
| | | | | Accepts filenames and loads file contents as parameter value. | ||||
* | Removed util.add_global_options() and frontend.Application | Jason Gerard DeRose | 2009-10-14 | 1 | -6/+2 |
| | |||||
* | Add HBAC plugin and introduce GeneralizedTime parameter type. | Pavel Zuna | 2009-10-05 | 1 | -1/+1 |
| | |||||
* | Many SELinux fixes: ldapi, ctypes and dogtag | Rob Crittenden | 2009-09-10 | 1 | -4/+3 |
| | | | | | | | | | | | ldapi: grants httpd and krb5kdc to access the DS ldapi socket ctypes: the Python uuid module includes ctypes which makes httpd segfault due to SELinux problems. dogtag: remove the CRL publishing permissions. This only worked if you had dogtag installed. In the near future will publish elsewhere so for the time being CRL file publishing will be broken with SELinux enabled. | ||||
* | Removed PluginProxy and all its uses | Jason Gerard DeRose | 2009-08-05 | 1 | -3/+1 |
| | |||||
* | Completed Param.use_in_context() functionality, which is now used by Command ↵ | Jason Gerard DeRose | 2009-05-21 | 1 | -7/+7 |
| | | | | and Object | ||||
* | Re-enable doctest, fix broken docstrings | Jason Gerard DeRose | 2009-05-13 | 1 | -10/+5 |
| | |||||
* | Force xmlrpc tests to run with in_tree=True so config files in /etc/ipa/ ↵ | Jason Gerard DeRose | 2009-05-11 | 1 | -1/+1 |
| | | | | don't get read; cleaned up config.Env automagic with regard to running in-tree vs. installed | ||||
* | Rename errors2.py to errors.py. Modify all affected files. | Pavel Zuna | 2009-04-23 | 1 | -1/+1 |
| | |||||
* | Add new type List that converts delimited values into a tuple | Rob Crittenden | 2009-03-20 | 1 | -1/+1 |
| | |||||
* | Implemented more elegant way for entire plugin module to be conditionally ↵ | Jason Gerard DeRose | 2009-02-17 | 1 | -0/+1 |
| | | | | skipped; updated cert.py and ra.py modules to use this | ||||
* | Added env.enable_ra variable and change cert.py and ra.py plugin modules to ↵ | Jason Gerard DeRose | 2009-02-17 | 1 | -1/+1 |
| | | | | register plugins conditionally | ||||
* | Added doodle for version vars in ipalib.__init__ | Jason Gerard DeRose | 2009-02-03 | 1 | -1/+8 |
| | |||||
* | Mostly got the test_xmlrpc/ tests working again | Jason Gerard DeRose | 2009-02-03 | 1 | -1/+6 |
| | |||||
* | Finished reworked cli.CLI class into cli.cli plugin | Jason Gerard DeRose | 2009-02-03 | 1 | -1/+1 |
| | |||||
* | Removed the depreciated Context and LazyContext classes | Jason Gerard DeRose | 2009-02-03 | 1 | -5/+2 |
| | |||||
* | Added ca_host, ca_port, and ca_ssl_port Env variables that Andrew requested | Jason Gerard DeRose | 2009-02-03 | 1 | -1/+1 |
| | |||||
* | Added Object.params_minus() method; various small tweaks | Jason Gerard DeRose | 2009-02-03 | 1 | -1/+1 |
| | |||||
* | Started roughing out new crud base classes | Jason Gerard DeRose | 2009-02-03 | 1 | -0/+2 |
| | |||||
* | Include local copy of UUID generator for Python 2.4. | Rob Crittenden | 2009-01-19 | 1 | -0/+5 |
| | | | | | | Python 2.5+ has a built-in RFC 4122-compliant UUID generator. Include a copy of this file in our library and import it in a way that it will work with Python 2.4. | ||||
* | Added missing enumerable parameters | Jason Gerard DeRose | 2009-01-18 | 1 | -1/+1 |
| | |||||
* | Updated passwd plugins module to where it can at least be imported | Jason Gerard DeRose | 2009-01-14 | 1 | -1/+1 |
| | |||||
* | New Param: all docstring examples now pass under doctests | Jason Gerard DeRose | 2009-01-14 | 1 | -14/+14 |
| | |||||
* | New Param: ipalib.__init__ no longer import ipa_types and instead imports ↵ | Jason Gerard DeRose | 2009-01-14 | 1 | -2/+2 |
| | | | | appropriate classes from parameters | ||||
* | Renamed all references to 'ipa_server' to 'ipaserver' | Jason Gerard DeRose | 2009-01-04 | 1 | -4/+4 |
| | |||||
* | Moved setting of run-time variables from Env.__init__() to Env._bootstrap() | Jason Gerard DeRose | 2008-12-22 | 1 | -27/+26 |
| | |||||
* | Added frontend.LocalOrRemote command base class for commands like env | Jason Gerard DeRose | 2008-11-14 | 1 | -1/+2 |
| | |||||
* | Fixed doctest in tutorial | Jason Gerard DeRose | 2008-11-14 | 1 | -1/+1 |
| | |||||
* | Tutorial: fixed typo in 'How your command should print to stdout' section | Jason Gerard DeRose | 2008-11-14 | 1 | -1/+1 |
| | |||||
* | Tutorial: fixed typo in 'First steps: A simple command plugin' section | Jason Gerard DeRose | 2008-11-14 | 1 | -1/+1 |
| | |||||
* | Tutorial: another small change to section on using output_for_cli() | Jason Gerard DeRose | 2008-11-14 | 1 | -3/+3 |
| | |||||
* | Tutorial: command in output_for_cli() example now also takes an argument | Jason Gerard DeRose | 2008-11-14 | 1 | -31/+47 |
| | |||||
* | Tutorial: small improvements to section on using output_for_cli() | Jason Gerard DeRose | 2008-11-14 | 1 | -5/+10 |
| | |||||
* | Tutorial: added section on implementing an output_for_cli() method | Jason Gerard DeRose | 2008-11-14 | 1 | -4/+105 |
| | |||||
* | Tutorial: added section on allowed return values from a command's execute() ↵ | Jason Gerard DeRose | 2008-11-14 | 1 | -0/+42 |
| | | | | method | ||||
* | Change Param.__repr__() so it returns the exact expression that could create ↵ | Jason Gerard DeRose | 2008-11-13 | 1 | -2/+2 |
| | | | | it; added unit test for Param.__repre__() |