Commit Graph
158 Commits
Author SHA1 Message Date
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
Jason Gerard DeRose 5d1e5a0aa9 New Param: renamed parameter.py to parameters.py 2009-01-14 10:25:33 -07:00
Jason Gerard DeRose 05514292dc New Param: Flag now fill-in default=False and also forces default to be a bool 2009-01-14 09:56:10 -07:00
Jason Gerard DeRose 8cc38e681f New Param: added new Flag param class and its unit test 2009-01-13 20:27:19 -07:00
Jason Gerard DeRose 659bb4c142 New Param: added Param.clone() method and corresponding unit test 2009-01-13 19:49:23 -07:00
Jason Gerard DeRose a0fb215a2c New Param: updated Str._convert_scalar() so it raises a ConversionError 2009-01-13 18:29:45 -07:00
Jason Gerard DeRose 10747103fa New Param: implemented a base Param._convert_scalar() method; added Param.type_error attribute for ConversionError message 2009-01-13 02:17:16 -07:00
Jason Gerard DeRose c2b0d03f82 New Param: updated Bytes and Str length rules to use new rule(_, value) calling signature; updated corresponding unit tests 2009-01-13 01:07:33 -07:00
Jason Gerard DeRose 33db9fee60 New Param: ported create_param() function and unit tests 2009-01-13 00:27:06 -07:00
Jason Gerard DeRose 11dce19225 New Param: added Param.get_default() method and detailed docstring; added corresponding unit tests 2009-01-12 22:48:04 -07:00
Jason Gerard DeRose 5c7c0b35bb New Param: added Param.validate() and Param._validate_scalar() methods; added corresponding unit tests 2009-01-12 16:14:46 -07:00
Jason Gerard DeRose 3e9eb0bda0 Changed PublicError so str(e) is untranslated (for logging) and added format=None kwarg for generic use 2009-01-08 00:07:18 -07:00
Jason Gerard DeRose 166b3ca80c Added unit test for Env.__islocked__(); unit test for Env.__lock__() now also tests with base.lock() function 2009-01-06 18:21:46 -07:00
Jason Gerard DeRose 9e430755a5 Renamed PublicError.code attribute to PublicError.errno 2009-01-06 13:33:22 -07:00
Jason Gerard DeRose 690ad4766d New Param: added Str length rule methods; added corresponding unit tests 2009-01-05 02:45:07 -07:00
Jason Gerard DeRose 6d6c0d81dd New Param: decided on calling signature for rules; added unit tests for Bytes._rule_minlength, _rule_maxlength, and _rule_length 2009-01-05 02:20:09 -07:00
Jason Gerard DeRose c121d0064b New Param: Added Param.get_label() method for a way to retrieve translated message at request time 2009-01-05 01:20:14 -07:00
Jason Gerard DeRose 2608838ef1 Quite a bit of work on new public errors and their unit tests 2009-01-04 03:52:08 -07:00
Jason Gerard DeRose c161784973 Added request.ugettext() and request.ungettext() functions; added corresponding unit tests 2009-01-04 00:46:21 -07:00
Jason Gerard DeRose c081ce5460 request.create_translation() now sets context.ugettext and context.ungettext 2009-01-03 22:03:37 -07:00