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
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
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
7d0bd4b895
Rename errors2.py to errors.py. Modify all affected files.
2009-04-23 10:29:14 -04:00
Rob Crittenden
a8a2664190
Add new type List that converts delimited values into a tuple
2009-03-20 09:29:44 -04:00
Rob Crittenden
dbbae00b17
Add maxvalue and minvalue kwargs and rules to Int and Float
2009-03-03 17:49:15 -05:00
Jason Gerard DeRose
b5b2e55be5
Add pattern matching to Str and Bytes
2009-02-17 16:03:08 -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
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
ae39dece13
Added Command.args_options_2_params() method and its unit tests
2009-02-03 15:29:00 -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
364e05def1
Added missing enumerable parameters
2009-01-18 15:55:56 -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
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