Jason Gerard DeRose
dc2f246d47
Command.output_params not contains params in Command.params
2010-02-11 14:56:10 -05:00
Jason Gerard DeRose
c43b69e77c
Add support for the 'no_create', 'no_update', and 'no_search' Param flags
2010-02-05 14:32:04 -05:00
Jason Gerard DeRose
1d6cc1bb7b
Remove __public__ and __proxy__ hold-overs from Plugin class
2010-01-28 13:32:00 -05:00
Pavel Zuna
0023ffb881
Fix backend.Executioner unit test.
...
Before the patch that allows to create unshared instances of Connectible
objects, all Connection object were deleted at once in destroy_context().
It made sense at the time, because there was always at most one Connection
per Connectible subclass and Connectible.disconnect() was called only
internally by the Executioner class. Now that we can make arbitrary
connections, it makes more sense to delete the Connection object when
Connectible.disconnect() is called.
2010-01-13 13:39:50 -05:00
Jason Gerard DeRose
b6e4972e7f
Take 2: Extensible return values and validation; steps toward a single output_for_cli(); enable more webUI stuff
2009-12-10 08:29:15 -07:00
John Dennis
5d2bbf5325
Reading INT parameter class should respect radix prefix
...
This modifies the original patch by including a unit test, handling floats
when passed as unicode, and handling large magnitude values beyond maxint.
The INT parameter class was not respecting any radix prefix (e.g. 0x) the user
may have supplied. This patch implements _convert_scalar method for the Int
class so that we can pass the special radix base of zero to the int constructor
telling it to determine the radix from the prefix (if present).
2009-11-23 16:53:43 -05:00
Rob Crittenden
680bf7c548
_convert_scalar() should throw an error if passed a tuple or list
...
A parameter needs to have multivalue set in order to work on lists/tuples
and even then _convert_scalar() will be sent one value at a time.
2009-11-17 09:36:38 -07:00
Jason Gerard DeRose
b35849b47d
Change Password param so (password, confirm_password) can be passed to _convert_scalar()
2009-10-18 00:35:05 -06:00
Jason Gerard DeRose
5c9437b9e6
Removed util.add_global_options() and frontend.Application
2009-10-14 15:07:17 -06:00
Jason Gerard DeRose
f58ff2921d
Giant webui patch take 2
2009-10-13 11:28:00 -06:00
Pavel Zuna
e01b1b8f99
Fix unit tests for plugins using baseldap classes.
2009-10-05 15:59:09 -04:00
Jason Gerard DeRose
c0f558d98b
Removed PluginProxy and all its uses
2009-08-05 12:18:51 -04:00
Pavel Zuna
89993d9939
Fix Encoder.decode test.
2009-07-02 13:33:02 -04:00
Pavel Zuna
cda0f85ce5
Fix bug in Encoder where tuples were encoded into lists. Fix Encoder and Command.args_options_2_entry unit tests.
2009-06-10 11:51:10 -04:00
Jason Gerard DeRose
7e58b29a92
Completed Param.use_in_context() functionality, which is now used by Command and Object
2009-05-21 14:32:45 -04:00
Jason Gerard DeRose
4f9224774f
Added Param 'include' and 'exclude' kwargs; added frontend.UsesParams base class with methods implementing the filtering to restrict params to only certain contexts
2009-05-19 13:49:15 -06:00
Pavel Zuna
9437fc669e
Add Encoder base class and method decorators to encode arguments/decode return values. Also - unit tests.
2009-05-19 09:56:39 -04:00
Jason Gerard DeRose
ae38a2461f
Force xmlrpc tests to run with in_tree=True so config files in /etc/ipa/ don't get read; cleaned up config.Env automagic with regard to running in-tree vs. installed
2009-05-11 16:17:08 -04:00
Pavel Zuna
7d0bd4b895
Rename errors2.py to errors.py. Modify all affected files.
2009-04-23 10:29:14 -04:00
Rob Crittenden
64fa3dd4c3
Finish work replacing the errors module with errors2
...
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.
2009-04-20 13:58:26 -04:00
Rob Crittenden
a8a2664190
Add new type List that converts delimited values into a tuple
2009-03-20 09:29:44 -04:00
Jason Gerard DeRose
13ff27e9ec
Fixed Executioner.execute() so that its 'name' argument doesn't conflict with a param called 'name' (which is a valid param name)
2009-03-13 10:31:00 -04:00
Rob Crittenden
dbbae00b17
Add maxvalue and minvalue kwargs and rules to Int and Float
2009-03-03 17:49:15 -05:00
Pavel Zuna
8041cd038b
Add unit test for ipalib.frontend.Command.args_options_2_entry.
2009-02-24 14:40:47 -05:00
Jason Gerard DeRose
b5b2e55be5
Add pattern matching to Str and Bytes
2009-02-17 16:03:08 -05:00
Jason Gerard DeRose
18cecdc515
Removed depreciated xmlrpc_marshal() and xmlrpc_unmarshal() functions
2009-02-17 16:03:08 -05:00
Jason Gerard DeRose
231f0bd65a
Finished reworked cli.CLI class into cli.cli plugin
2009-02-03 15:29:04 -05:00
Jason Gerard DeRose
66b6029e40
Ported xmlclient to subclass from Connectible
2009-02-03 15:29:03 -05:00
Jason Gerard DeRose
0cfb0e191a
Removed the depreciated Context and LazyContext classes
2009-02-03 15:29:03 -05:00
Jason Gerard DeRose
f7375bb609
Added stuff for managing connections and new Executioner backend base class
2009-02-03 15:29:03 -05:00
Jason Gerard DeRose
114b6b8577
Added some missing parameter unit tests; added docstring about Command._repr_iter() and Param.safe_value()
2009-02-03 15:29:02 -05:00
Jason Gerard DeRose
244346dbcb
More work on xmlrpc stuff, started migrated more code to use errors2 instead of errors
2009-02-03 15:29:01 -05:00
Jason Gerard DeRose
24b6cb89d4
Further migration toward new xmlrcp code; fixed problem with unicode Fault.faultString; fixed problem where ServerProxy method was not called correctly
2009-02-03 15:29:01 -05:00
Jason Gerard DeRose
9f48612a56
Sundry work getting ready to switch to new XML-RPC client/server code
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
6aadeb9aea
Added Object.params_minus() method; various small tweaks
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
f3a84683d2
Removed depreciated Command.args_to_kw() method; updated CLI to use Command.args_options_2_params() instead
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
ae39dece13
Added Command.args_options_2_params() method and its unit tests
2009-02-03 15:29:00 -05:00
Jason Gerard DeRose
6e53d03c69
Command.takes_options and Command.takes_args class attributes can now also be a callable
2009-02-03 15:28:59 -05:00
Jason Gerard DeRose
f22f3eabb2
Fixed Param.validate() so that self.query is checked after self.required
2009-01-20 09:38:39 -07:00
Jason Gerard DeRose
55fba5420d
Added rpc.xmlclient backend plugin for forwarding; added corresponding unit tests
2009-01-19 21:10:42 -07:00
Jason Gerard DeRose
364e05def1
Added missing enumerable parameters
2009-01-18 15:55:56 -07:00
Jason Gerard DeRose
6be5e4a0a5
ipalib.rpc: now using allow_none=True after conversation with Rob; added xml_dumps() and xml_loads() functions; some name cleanup
2009-01-15 23:52:50 -07:00
Jason Gerard DeRose
cd3508bace
New Param: added Param.query kwarg for crud operations like Retrieve and Search where criteria should not be validated
2009-01-14 14:04:05 -07:00
Jason Gerard DeRose
79422d0489
All unit tests now working (except for doctests and Rob's xmlrpc tests)
2009-01-14 13:51:37 -07:00
Jason Gerard DeRose
09e2f5d615
New Param: got most of unit tests ported (still have 6 errors); haven't ported doctests yet
2009-01-14 13:17:30 -07:00
Jason Gerard DeRose
69acff450c
New Param: removed more depreciated 'import ipa_types'
2009-01-14 12:00:47 -07:00
Jason Gerard DeRose
2b2e73e7df
Removed depreciated code from frontend.py; frontend.py no longer imports ipa_types
2009-01-14 11:39:29 -07:00
Jason Gerard DeRose
47e8b1c0b7
Removed deprecited ipa_types.py and test_ipa_types.py
2009-01-14 11:25:26 -07:00
Jason Gerard DeRose
3e201dfff6
New Param: split common Bytes/Str functionality into new Data base class; Str no longer subclasses from Bytes
2009-01-14 10:58:05 -07:00
Jason Gerard DeRose
3a6f716aac
Updated all references to 'parameter' module to 'parameters'
2009-01-14 10:29:18 -07:00