Martin Nagy
|
4a1c4a3fe3
|
Implement argument parsing for the CLI
|
2008-10-08 00:07:44 +02:00 |
|
Martin Nagy
|
4a68c719f0
|
Implement config file reading
|
2008-10-08 00:07:44 +02:00 |
|
Rob Crittenden
|
db9d8dd3e0
|
Implement a real user_find and move existing user_find to user_show
|
2008-10-07 06:15:34 -04:00 |
|
Rob Crittenden
|
e012e860b4
|
Implement user-mod
|
2008-10-07 04:31:22 -04:00 |
|
Rob Crittenden
|
69bc5ad77a
|
Add some more supporting functions
Do a little bit more error handling and checking
|
2008-10-07 02:10:15 -04:00 |
|
Rob Crittenden
|
cb795fa14b
|
Add group plugin, routine to get cn=ipaconfig
|
2008-10-04 05:17:11 -04:00 |
|
Rob Crittenden
|
7e4b0a072e
|
Implement user-find and user-add backend functions so they work over XML-RPC
Change port to 8880 to not conflict with a running IPA v1 instance
Encode incoming values from unicode as utf-8 before sending to LDAP
|
2008-10-04 01:50:59 -04:00 |
|
Jason Gerard DeRose
|
3ffbaac64c
|
Backend.xmlrpc and simple-server.py now use the xmlrpc_marshal() and xmlrpc_unmarshal() functions respectively
|
2008-10-02 19:42:06 -06:00 |
|
Jason Gerard DeRose
|
d84e27f0d4
|
Added ipalib/util.py with xmlrpc_marshal() and xmlrpc_unmarshal() functions; added corresponding unit tests
|
2008-10-02 19:09:13 -06:00 |
|
Jason Gerard DeRose
|
ed3a5855f3
|
-m
|
2008-10-02 17:51:50 -06:00 |
|
Jason Gerard DeRose
|
993b9f4f63
|
Command.get_default() now only returns a defaults for required values
|
2008-10-02 17:46:48 -06:00 |
|
Martin Nagy
|
149429f305
|
Environment is now subclassed from object, rather then dict. Added tests for Environment and config.py
|
2008-10-02 17:22:41 -06:00 |
|
Jason Gerard DeRose
|
6000b6b5c6
|
Implemented basic Command.forward() method
|
2008-10-02 17:02:24 -06:00 |
|
Jason Gerard DeRose
|
0e137110c7
|
Started on skeleton for xmlrcp client/server
|
2008-10-02 16:12:19 -06:00 |
|
Jason Gerard DeRose
|
2507b7c674
|
Clarified docstrings in */plugins/__init__.py; renamed ipa_server/plugins/ipa_ldap.py to b_ldap.py
|
2008-10-01 16:17:02 -06:00 |
|
Jason Gerard DeRose
|
c846c7d91f
|
Removed the everything except the envtest command and the user related plugins from f_user.py
|
2008-10-01 16:10:41 -06:00 |
|
Jason Gerard DeRose
|
e963be1dda
|
Renamed plugins/example.py to plugins/f_user.py
|
2008-10-01 15:56:04 -06:00 |
|
Jason Gerard DeRose
|
cc93e45e13
|
Removed depreciated override.py module
|
2008-10-01 15:53:21 -06:00 |
|
Jason Gerard DeRose
|
af6653f607
|
Added skeleton for kerberos backend
|
2008-10-01 15:50:04 -06:00 |
|
Jason Gerard DeRose
|
7ee0ccd90d
|
Fixed unit tests; changed example.py so it doesn't import servercore
|
2008-09-30 20:27:52 -06:00 |
|
Rob Crittenden
|
77e6c99f9d
|
Migrate to new source tree layoute
|
2008-09-30 19:37:35 -06:00 |
|
Rob Crittenden
|
b965e558b5
|
Rebase XML-RPC client and server
Fix error handling in server to return exceptions generated in library code
|
2008-09-30 19:37:35 -06:00 |
|
Martin Nagy
|
afdc721038
|
Add support for environment variables, change tests accordingly
|
2008-09-29 17:45:14 -06:00 |
|
Jason Gerard DeRose
|
d77907d2d0
|
373: Replaced type_ optional arg to Param.__init__() with pure kw arg type; updated unit tests and related code
|
2008-09-27 01:30:39 +00:00 |
|
Jason Gerard DeRose
|
8901b9a837
|
372: Started work on docstring for Param class
|
2008-09-27 00:31:59 +00:00 |
|
Jason Gerard DeRose
|
031daabcc4
|
371: Added examples to parse_param_spec() docstring and changed syntax guide into a reStructuredText table
|
2008-09-26 23:41:51 +00:00 |
|
Jason Gerard DeRose
|
7bbd81d831
|
370: Added detailed examples to decstring for DefaultFrom class
|
2008-09-26 22:52:15 +00:00 |
|
Jason Gerard DeRose
|
aa45ec616a
|
369: Added Object.backend attribute used to associated it with a particular backend component
|
2008-09-26 02:43:11 +00:00 |
|
Jason Gerard DeRose
|
0c3ebe0bef
|
367: Implementing basics of loading plugins out of tree
|
2008-09-25 23:21:41 +00:00 |
|
Jason Gerard DeRose
|
ac88500382
|
366: Ported user_* example Commands to crud base classes; added user_show example command
|
2008-09-25 03:58:42 +00:00 |
|
Jason Gerard DeRose
|
55ba8e9d0b
|
365: Implemented find.get_args(), find.get_options(); added corresponding unit tests
|
2008-09-25 03:47:22 +00:00 |
|
Jason Gerard DeRose
|
ddbe3ae934
|
364: Implemented Mod.get_args, Mod.get_options(); added corresponding unit tests
|
2008-09-25 03:42:38 +00:00 |
|
Jason Gerard DeRose
|
152f3089e1
|
363: Added Object.params_minus_pk instance attribute
|
2008-09-25 03:27:40 +00:00 |
|
Jason Gerard DeRose
|
c303a06a94
|
362: Implemented Get.get_args() and Del.get_args(); added corresponding unit tests
|
2008-09-25 03:14:12 +00:00 |
|
Jason Gerard DeRose
|
023f612921
|
361: Implemented crud.Add.get_options() method; added corresponding unit tests
|
2008-09-25 02:13:16 +00:00 |
|
Jason Gerard DeRose
|
9f704e001d
|
360: Removed Method.get_options() default implementation; cleaned up unit tests for Method
|
2008-09-25 01:52:34 +00:00 |
|
Jason Gerard DeRose
|
54c97b4948
|
359: Added Object.primary_key instance attribute; added corresponding unit tests
|
2008-09-25 01:44:53 +00:00 |
|
Jason Gerard DeRose
|
4267422793
|
358: Cleaned up private methods in Object
|
2008-09-25 01:04:10 +00:00 |
|
Jason Gerard DeRose
|
e84dd7a69d
|
357: Some experimenting with the example plugins
|
2008-09-25 00:58:16 +00:00 |
|
Jason Gerard DeRose
|
4747563a80
|
356: Modified Method.get_options() to now pull from self.obj.params(); updated unit tests for Method.get_options()
|
2008-09-25 00:42:38 +00:00 |
|
Jason Gerard DeRose
|
79b33ad366
|
355: Object.set_api() now creates Object.params namespace by merging takes_params and properties together intelegintly
|
2008-09-25 00:00:58 +00:00 |
|
Jason Gerard DeRose
|
f531f7da81
|
354: Added NameSpace.__todict__() method that returns copy of NameSpace.__map; updated NameSpace unit test to also test __todict__()
|
2008-09-24 23:49:44 +00:00 |
|
Jason Gerard DeRose
|
be2e323bbf
|
353: The Object.parms instance attribute is now created in Object.set_api() instead of in Object.__init__()
|
2008-09-24 23:29:15 +00:00 |
|
Jason Gerard DeRose
|
c3b09b2116
|
352: Now removed Object.Property property and added in its place Object.properties instance attribute
|
2008-09-24 23:19:34 +00:00 |
|
Jason Gerard DeRose
|
3d6ab69b46
|
351: Removed Object.Method property and added in its place Object.methods instance attribute
|
2008-09-24 22:19:43 +00:00 |
|
Jason Gerard DeRose
|
e2a680d7c9
|
350: If Param default_from kwarg is callable but not a DefaltFrom instances, the instance is created implicity
|
2008-09-24 22:05:01 +00:00 |
|
Jason Gerard DeRose
|
755ea8d0c2
|
349: Improved clarity of local variables in Param.__init__()
|
2008-09-24 21:57:34 +00:00 |
|
Jason Gerard DeRose
|
250a01b5b7
|
348: If no keys are passed to DefaultFrom.__init__(), the keys from callback.func_code.co_varnames are used; updated DefaultFrom unit tests to test this usage
|
2008-09-24 21:46:37 +00:00 |
|
Jason Gerard DeRose
|
566d5ea02a
|
347: Added primary_key instance attribute to Param and corresponding kwarg; expanded unit tests for Param.__init__()
|
2008-09-24 21:29:15 +00:00 |
|
Jason Gerard DeRose
|
5479a349a8
|
346: Added skeleton framework for crud.py module and corresponding test_crud.py module
|
2008-09-24 20:17:53 +00:00 |
|
Jason Gerard DeRose
|
63a26bd604
|
345: Moved server code from Rob into ipa_server/ package
|
2008-09-24 19:56:07 +00:00 |
|
Jason Gerard DeRose
|
f8bb60f02d
|
344: Added Param.__clone__() method; added corresponding unit tests
|
2008-09-24 19:45:46 +00:00 |
|
Jason Gerard DeRose
|
a79434584e
|
343: create_param() function no longer parses the param spec itself but relies on Param.__init__() to do it
|
2008-09-24 18:44:43 +00:00 |
|
Jason Gerard DeRose
|
97f0310a4c
|
342: Added unit test that TypeError is raised when Param() is created with extra kw args
|
2008-09-24 18:33:25 +00:00 |
|
Jason Gerard DeRose
|
06d7fb42ec
|
341: Param now only takes type_=ipa_types.Unicode() as an optional positional arg, and the rest as pure kwargs
|
2008-09-24 18:27:14 +00:00 |
|
Jason Gerard DeRose
|
792bf7b1d0
|
340: Changed default for Param.required to True
|
2008-09-24 18:02:00 +00:00 |
|
Jason Gerard DeRose
|
11a07008b8
|
339: Added parse_param_spec() function and corresponding unit tests
|
2008-09-24 17:55:29 +00:00 |
|
Jason Gerard DeRose
|
744406958d
|
337: Some cleanup in Params; added docstrings for most all Param methods
|
2008-09-24 07:56:31 +00:00 |
|
Jason Gerard DeRose
|
fb57b91937
|
336: Param.__dispatch() now returns None for any in (None, '', u'', tuple(), []) regardless whether Param is multivalue
|
2008-09-24 07:05:43 +00:00 |
|
Jason Gerard DeRose
|
e63c462f31
|
335: If Command.__convert_scalar() is called with None, it now returns None instead of raising TypeError
|
2008-09-24 06:48:27 +00:00 |
|
Jason Gerard DeRose
|
4215da30ad
|
334: Renamed Command.__multivalue() helper method to Command.dispatch()
|
2008-09-24 06:36:48 +00:00 |
|
Jason Gerard DeRose
|
1125d420bd
|
333: Param.convert() now uses name Param.__multivalue() helper method as Param.normalize()
|
2008-09-24 06:35:19 +00:00 |
|
Jason Gerard DeRose
|
6bedb15674
|
332: Param.normalize() now returns None if multivalue and len() == 0
|
2008-09-24 06:25:12 +00:00 |
|
Jason Gerard DeRose
|
d56f4c643b
|
331: Param.normalize() no longer raises a TypeError when value in not a basestring
|
2008-09-24 06:11:46 +00:00 |
|
Jason Gerard DeRose
|
95abdcd714
|
330: Command.normalize() now normalizes all keys, not just keys in params
|
2008-09-24 05:49:30 +00:00 |
|
Jason Gerard DeRose
|
15b83ab1bf
|
329: Command.convert() now converts all keys, not just keys in params
|
2008-09-24 05:46:49 +00:00 |
|
Jason Gerard DeRose
|
126b31de55
|
328: Command.get_default() now returns defaults for all values not present, not just defaults that aren't None
|
2008-09-24 05:42:31 +00:00 |
|
Jason Gerard DeRose
|
eaf15d5a52
|
327: Improved formatting on show-api cli command
|
2008-09-24 05:35:40 +00:00 |
|
Jason Gerard DeRose
|
f3ac709922
|
326: Made output of plugins cli command nicer
|
2008-09-24 05:03:10 +00:00 |
|
Jason Gerard DeRose
|
3e70c3b56b
|
325: API.finalize() now creates instance attribtue 'plugins', which is a tuple of PluginInfo objects; renamed show_plugins cli command to namespaces; added new cli command plugins
|
2008-09-24 04:44:52 +00:00 |
|
Jason Gerard DeRose
|
3bf2da5714
|
324: Removed 'smart_option_order' from Command.__public__; cli commands help, console, and show_plugins now override Command.run() instead of Command.__call__()
|
2008-09-24 03:10:35 +00:00 |
|
Jason Gerard DeRose
|
19bbc48eb6
|
323: Added Command.run() method that dispatches to execute() or forward(); added corresponding unit tests
|
2008-09-24 02:52:19 +00:00 |
|
Jason Gerard DeRose
|
4dbbf5656d
|
322: Updated ipalib package docstring, replacing cross reference to 'public' with 'frontend'
|
2008-09-24 01:43:51 +00:00 |
|
Jason Gerard DeRose
|
c38b90d5d4
|
321: Standard ipalib.api attribute now accepts plugins from the Backend base class
|
2008-09-24 01:36:54 +00:00 |
|
Jason Gerard DeRose
|
f3aaf65f1c
|
320: plugable.API now respects the Plugin.__proxy__ flag; added test for plugins without proxy to unit tests for API
|
2008-09-24 00:44:41 +00:00 |
|
Jason Gerard DeRose
|
81de10f176
|
319: Added new backend and tests.test_backend modules; added place-holder Backend class and corresponding unit tests
|
2008-09-24 00:12:35 +00:00 |
|
Jason Gerard DeRose
|
4e8ff5c656
|
318: Renamed all references to 'public' module to 'frontend'
|
2008-09-24 00:01:29 +00:00 |
|
Jason Gerard DeRose
|
2842e85d88
|
317: Renamed public.py to frontend.py; renamed test_public.py to test_frontend.py
|
2008-09-23 23:51:03 +00:00 |
|
Jason Gerard DeRose
|
024022c2f9
|
315: Renamed Property.option instance attribute to Property.param
|
2008-09-22 15:33:32 +00:00 |
|
Jason Gerard DeRose
|
b206ef6843
|
314: Completed some missing features in Command.__call__(); removed depreciated Command.print_call() method
|
2008-09-22 01:28:57 +00:00 |
|
Jason Gerard DeRose
|
49c1c29df1
|
313: Added Object.params instance attribute
|
2008-09-22 00:37:01 +00:00 |
|
Jason Gerard DeRose
|
cbcadb89e4
|
312: Cleaned up docstring for create_param(); Command.finalize() now uses create_param() when creating args and options namespaces
|
2008-09-21 22:43:50 +00:00 |
|
Jason Gerard DeRose
|
952b45f138
|
311: Renamed generate_option() to create_param()
|
2008-09-21 22:18:33 +00:00 |
|
Jason Gerard DeRose
|
14e932a8cd
|
310: generate_option() function now can accept a Param object, which it returns without modification
|
2008-09-21 22:11:14 +00:00 |
|
Jason Gerard DeRose
|
2a708cfebe
|
309: Renamed public.Option to public.Param
|
2008-09-21 22:02:33 +00:00 |
|
Jason Gerard DeRose
|
47e4606a98
|
308: Fixed broken example plugin user_add
|
2008-09-21 21:55:21 +00:00 |
|
Jason Gerard DeRose
|
f73d976bda
|
307: Split Plugin.finalize() into two steps 1) Plugin.set_api() and 2) Plugin.finalize(); updated unit tests
|
2008-09-21 21:50:56 +00:00 |
|
Jason Gerard DeRose
|
5872221bd4
|
306: Added Plugin.set_api() method; added corresponding unit tests
|
2008-09-21 21:30:19 +00:00 |
|
Jason Gerard DeRose
|
2d83614006
|
305: Ported cli.py to changes in public.py
|
2008-09-21 19:00:41 +00:00 |
|
Jason Gerard DeRose
|
4a96ec2dc7
|
304: args, options, & params namespaces are now created in Command.finalize() instead of Command.__init__(); updated corresponding unit tests
|
2008-09-21 18:50:00 +00:00 |
|
Jason Gerard DeRose
|
f8953720c4
|
303: Removed Command.smart_option_order() method and moved its logic into Method.get_options()
|
2008-09-21 16:59:12 +00:00 |
|
Jason Gerard DeRose
|
1ec4f379f5
|
302: Removed depreciated Command.group_args() method
|
2008-09-19 00:00:54 +00:00 |
|
Jason Gerard DeRose
|
f29c827d06
|
301: Command.args_to_kw() now raises ArgumentError if more args than max_args are given
|
2008-09-18 23:53:23 +00:00 |
|
Jason Gerard DeRose
|
e0b900894f
|
300: Added Command.max_args instance attribute; added corresponding unit tests
|
2008-09-18 23:15:34 +00:00 |
|
Jason Gerard DeRose
|
ef0d7a71ab
|
299: Cleaned up unit tests for ReadOnly class
|
2008-09-18 22:39:48 +00:00 |
|
Jason Gerard DeRose
|
81ebe078be
|
298: Cleaned up docstrings in ReadOnly methods
|
2008-09-18 22:01:04 +00:00 |
|
Jason Gerard DeRose
|
e524c826db
|
297: Added a better example in docstring for ReadOnly
|
2008-09-18 21:45:25 +00:00 |
|
Jason Gerard DeRose
|
14eb96493b
|
296: Added more to docstrings for NameSpace.__iter_() and NameSpace.__call__()
|
2008-09-18 21:23:05 +00:00 |
|
Jason Gerard DeRose
|
5ab45385db
|
295: Updated NameSpace unit tests to test NameSpace.__getitem__() with int and slice
|
2008-09-18 20:48:55 +00:00 |
|
Jason Gerard DeRose
|
84a721d408
|
294: NameSpace no longer subclasses from DictProxy; NameSpace.__getitem__() now works with int and slice objects
|
2008-09-18 20:35:23 +00:00 |
|
Jason Gerard DeRose
|
f78f3ed0dd
|
293: Added Command.kw_to_args() method; added corresponding unit tests
|
2008-09-18 19:39:23 +00:00 |
|
Jason Gerard DeRose
|
4482c71aeb
|
292: Added experimental Command.args_to_kw() method
|
2008-09-14 23:17:36 +00:00 |
|
Jason Gerard DeRose
|
5a1abcdf4f
|
291: Temporarily reverted Rob's changes in public.py and plugins/examples.py
|
2008-09-13 00:22:01 +00:00 |
|
Jason Gerard DeRose
|
0e60036bb4
|
290: Applyied Rob's patch
|
2008-09-12 16:36:04 +00:00 |
|
Jason Gerard DeRose
|
c1ef2d05e8
|
289: Command.convert(), normalize(), and validate() now use self.params instead of self.options
|
2008-09-11 00:04:49 +00:00 |
|
Jason Gerard DeRose
|
23e251a605
|
288: CLI now uses Command.group_args() to check for required arguments
|
2008-09-10 23:33:36 +00:00 |
|
Jason Gerard DeRose
|
c17c5efb4e
|
287: Renamed Command.args_to_kw() to Command.group_args(), which now returns a tuple instead of dict; updated unit tests
|
2008-09-10 23:18:29 +00:00 |
|
Jason Gerard DeRose
|
7c40226500
|
286: Finished Command.args_to_kw(); finished unit tests for args_to_kw()
|
2008-09-10 21:34:29 +00:00 |
|
Jason Gerard DeRose
|
100492d98a
|
285: Started work on Command.args_to_kw() method; added unit test for functionality so far in args_to_kw()
|
2008-09-10 20:05:45 +00:00 |
|
Jason Gerard DeRose
|
687f603562
|
284: Removed depreciated Command.Option property; removed corresponding unit tests; updated affected code
|
2008-09-10 15:31:34 +00:00 |
|
Jason Gerard DeRose
|
bde377a2da
|
283: Renamed generate_argument() to generate_option()
|
2008-09-10 15:16:17 +00:00 |
|
Jason Gerard DeRose
|
7de450363b
|
282: Added Command.__check_options() method; added unit tests for Command.options instance attribute
|
2008-09-10 15:14:26 +00:00 |
|
Jason Gerard DeRose
|
2d85a6daa3
|
281: Completed unit tests for Command.args
|
2008-09-10 14:54:01 +00:00 |
|
Jason Gerard DeRose
|
cbfacf7c2e
|
280: Renamed Options.options to takes_options; updated related unit tests
|
2008-09-10 14:46:20 +00:00 |
|
Jason Gerard DeRose
|
8062075f84
|
279: Fixed cli and public.Method re new Command.args attribute
|
2008-09-10 02:02:26 +00:00 |
|
Jason Gerard DeRose
|
0d3be2f421
|
278: Completed unit tests for Command.args instance attribute
|
2008-09-10 01:54:48 +00:00 |
|
Jason Gerard DeRose
|
51b6395958
|
277: Added public.generate_argument() function; added corresponding unit tests
|
2008-09-10 01:03:59 +00:00 |
|
Jason Gerard DeRose
|
0215bc8009
|
276: Option.__init__(): doc is now 3rd kwarg instead of 2nd positional arg; updated unit tests and other affected code
|
2008-09-10 00:21:40 +00:00 |
|
Jason Gerard DeRose
|
349fc660e7
|
275: Added Command.__check_args(); added basic unit tests for Command.args instance attribute
|
2008-09-09 23:46:16 +00:00 |
|
Jason Gerard DeRose
|
0453aa465f
|
274: NameSpace.__init__() now takes sort=True keyword arument to allow for non-sorted NameSpaces; updated and improved NameSpace unit tests
|
2008-09-09 23:10:49 +00:00 |
|
Jason Gerard DeRose
|
97b01a4891
|
273: Added Command.get_args() method; added corresponding unit tests
|
2008-09-09 21:18:44 +00:00 |
|
Jason Gerard DeRose
|
21a0bab79e
|
272: Add a quick positional arg experiment
|
2008-09-09 01:41:15 +00:00 |
|
Jason Gerard DeRose
|
13f030d91e
|
271: Improved __repr__ methods for better output from the show-plugins command
|
2008-09-08 21:51:05 +00:00 |
|
Jason Gerard DeRose
|
cb9c442708
|
270: show-plugins now only shows namespaces with at least one member
|
2008-09-08 21:44:53 +00:00 |
|
Jason Gerard DeRose
|
03fd184e8e
|
269: Renamed print_api command to show_plugins
|
2008-09-08 21:42:48 +00:00 |
|
Jason Gerard DeRose
|
7d3d607b55
|
268: Fixed broken unit test for Plugin.__repr__()
|
2008-09-08 21:40:46 +00:00 |
|
Jason Gerard DeRose
|
e74713a076
|
267: Finished builtin CLI api command
|
2008-09-08 21:37:02 +00:00 |
|
Jason Gerard DeRose
|
641403278e
|
266: Started work on new cli.print_api Command
|
2008-09-04 18:35:04 +00:00 |
|
Jason Gerard DeRose
|
22d9b8c078
|
265: Fixed small formatting error with use of CLI.print_commands()
|
2008-09-04 09:27:28 +00:00 |
|
Jason Gerard DeRose
|
553b0c596d
|
264: Cleaned up docstrings on all example plugins
|
2008-09-04 09:22:18 +00:00 |
|
Jason Gerard DeRose
|
6b9ba734e1
|
263: CLI.print_commands() now seperates Command subclasses from Application subclasses
|
2008-09-04 09:04:35 +00:00 |
|
Jason Gerard DeRose
|
86035c8655
|
262: Fixed crossreference in public.Application docstring
|
2008-09-04 08:39:27 +00:00 |
|
Jason Gerard DeRose
|
6f95249d52
|
261: More work on demo using Option.__call__() for interactive input
|
2008-09-04 08:33:41 +00:00 |
|
Jason Gerard DeRose
|
915486dadc
|
260: Option.normalize() now does same conversion for multivalue as Option.convert() does
|
2008-09-04 08:16:12 +00:00 |
|
Jason Gerard DeRose
|
c7cd694d4f
|
259: Option.__normalize_scalar() now raises a TypeError if not isinstance(value, basestring); updated corresponding unit tests
|
2008-09-04 07:47:07 +00:00 |
|
Jason Gerard DeRose
|
71d36aa6a0
|
258: Added some experimental features for interactively prompting for values
|
2008-09-04 07:18:26 +00:00 |
|
Jason Gerard DeRose
|
01b73e6910
|
257: Improved help command, now parsing options with optparse
|
2008-09-04 06:33:57 +00:00 |
|
Jason Gerard DeRose
|
b16deabdff
|
256: Fixed cli.help plugin so it looks up commands in CLI instead of API
|
2008-09-04 05:18:14 +00:00 |
|
Jason Gerard DeRose
|
ab81ca56fd
|
255: CLI help, console commands now subclass from public.Application; other tweeking to make CLI utilize Application
|
2008-09-04 04:39:01 +00:00 |
|
Jason Gerard DeRose
|
e1f8619d4a
|
254: Added public.Application base class; added corresponding unit tests
|
2008-09-04 03:34:16 +00:00 |
|
Jason Gerard DeRose
|
a5c6bf179b
|
253: Fixed error in Option.get_default() where Option.convert() was being called on Option.default; updated corresponding unit tests
|
2008-09-04 02:41:31 +00:00 |
|
Jason Gerard DeRose
|
cf7e4c1038
|
252: Added Command.convert() method; added corresponding unit tests
|
2008-09-04 02:30:40 +00:00 |
|
Jason Gerard DeRose
|
5cdb182ae8
|
251: Fixed Command.validate() so it raises RequirementError; updated and re-enabled unit tests for Command.validate()
|
2008-09-04 02:02:06 +00:00 |
|
Jason Gerard DeRose
|
7e3664a964
|
250: Updated Option.validate to utilize the ValidationError.index attribute; updated unit tests for Option.validate to test use of index attribute
|
2008-09-04 01:01:40 +00:00 |
|
Jason Gerard DeRose
|
b53ff67ff1
|
249: Fixed Option.__convert_scalar() to user index=None instead of position=None; updated unit tests for Option.convert() to test the ConversionError.index attribute
|
2008-09-03 23:21:26 +00:00 |
|
Jason Gerard DeRose
|
490eaee8a9
|
248: Removed depreciated SetError and TwiceSetError exceptions
|
2008-09-03 22:41:53 +00:00 |
|
Jason Gerard DeRose
|
296d59d27a
|
247: Added unit tests for errors.RequirementError
|
2008-09-03 22:29:01 +00:00 |
|
Jason Gerard DeRose
|
004e989dc4
|
246: Added unit tests for errors.RuleError
|
2008-09-03 22:14:25 +00:00 |
|
Jason Gerard DeRose
|
62533bfb2b
|
245: Removed depreciated NormalizationError
|
2008-09-03 21:55:44 +00:00 |
|
Jason Gerard DeRose
|
6f739bcf67
|
244: Added unit tests for errors.ConversionError
|
2008-09-03 21:53:15 +00:00 |
|
Jason Gerard DeRose
|
390c1aa4ba
|
243: Added unit tests for errors.ValidationError
|
2008-09-03 20:05:24 +00:00 |
|
Jason Gerard DeRose
|
5e8f945a1e
|
242: Started cleanup of custom exceptions; added unit tests for errors.IPAError
|
2008-09-03 19:38:39 +00:00 |
|
Jason Gerard DeRose
|
9b9615df79
|
241: Added additional index=None kwarg to errors.ValidationError.__init__()
|
2008-09-03 18:48:58 +00:00 |
|
Jason Gerard DeRose
|
9548b4b951
|
240: Small change in tstutil.check_TypeError(), cleaned up use of check_TypeError() in test_Option.test_normalize()
|
2008-09-03 18:41:46 +00:00 |
|
Jason Gerard DeRose
|
085ea3f62f
|
239: Added errors.ConversionError; started big clean up of how ValidationError is raised so it works well with multivalues
|
2008-09-03 18:32:49 +00:00 |
|
Jason Gerard DeRose
|
baef0e6f49
|
238: Some docstring cleanup & fixes in test_public.py
|
2008-09-03 00:15:20 +00:00 |
|
Jason Gerard DeRose
|
f45dcdd0d0
|
237: Ported public.Method to new Option; updated corresponding unit tests
|
2008-09-03 00:01:45 +00:00 |
|
Jason Gerard DeRose
|
5bfbbe3c38
|
236: Ported pubic.Command to new Option; updated corresponding unit tests
|
2008-09-02 23:40:44 +00:00 |
|
Jason Gerard DeRose
|
c9662adcf7
|
235: Added Public.option instance attribute; updated corresponding unit tests; disable some broken unit tests
|
2008-09-02 22:19:39 +00:00 |
|
Jason Gerard DeRose
|
4f4e8e2712
|
234: Renamed Option2 to Option
|
2008-09-02 20:33:08 +00:00 |
|
Jason Gerard DeRose
|
2784847b73
|
233: Removed public.Option class; removed corresponding unit tests
|
2008-09-02 20:16:34 +00:00 |
|
Jason Gerard DeRose
|
adf8b9b2d8
|
232: Added Option2.get_values() method; added corresponding unit tests
|
2008-09-02 19:29:00 +00:00 |
|
Jason Gerard DeRose
|
85f7a08e5d
|
231: Added Option2.get_default() method; added corresponding unit tests
|
2008-09-02 19:05:10 +00:00 |
|
Jason Gerard DeRose
|
bc08225dcd
|
230: Renamed allow_None kwarg to allow_none
|
2008-09-02 17:44:07 +00:00 |
|
Jason Gerard DeRose
|
f2da06c5cf
|
229: Option2.__init__() now uses check_type()
|
2008-09-02 17:41:55 +00:00 |
|
Jason Gerard DeRose
|
8b7fe7139d
|
228: plugable.check_name() now uses errors.check_type()
|
2008-09-02 17:29:01 +00:00 |
|
Jason Gerard DeRose
|
6697b955ee
|
227: check_type() and check_isinstance() now take arguments in (value, type_, name) order so the first two match the built-in isinstance() call signature
|
2008-09-02 16:42:39 +00:00 |
|
Jason Gerard DeRose
|
5af91df9a5
|
226: check_type() and check_isinstance() now return the value; updated corresponding unit tests
|
2008-09-02 15:15:03 +00:00 |
|
Jason Gerard DeRose
|
2fa8d3be74
|
225: Added errors.check_type() and errors.check_isinstance() functions; added corresponding unit tests
|
2008-08-29 23:53:04 +00:00 |
|
Jason Gerard DeRose
|
44ff0b3d23
|
224: Reworked IPATypeError class into raise_TypeError function
|
2008-08-29 07:05:06 +00:00 |
|
Jason Gerard DeRose
|
76b30dff15
|
223: IPATypeError takes as first argument, has attribute
|
2008-08-29 06:04:38 +00:00 |
|
Jason Gerard DeRose
|
03daa91d1c
|
222: Fixed broken assertion in IPATypeError; did more work on docstrings in same
|
2008-08-29 04:29:29 +00:00 |
|
Jason Gerard DeRose
|
8dc0e263da
|
221: Added errors.IPATypeError exception; added new test_errors.py module with corresponding unit tests
|
2008-08-29 03:48:33 +00:00 |
|
Jason Gerard DeRose
|
61b5b7a848
|
220: Renamed Option2.validate_scalar() to Option2.__validate_scalar(); added Option2.normalize() method; added corresponding unit tests
|
2008-08-29 03:17:26 +00:00 |
|
Jason Gerard DeRose
|
992a5dadbe
|
218: Finished unit tests for Option2.validate(), Option2.validate_scalar()
|
2008-08-28 20:30:08 +00:00 |
|
Jason Gerard DeRose
|
a6ec94da60
|
217: Started work on new Option2 class that is more declarative and doesn't require subclassing from Option
|
2008-08-28 18:31:06 +00:00 |
|
Jason Gerard DeRose
|
283c6f8fce
|
216: Added ipa_types.Enum.validate() method; added corresponding unit tests
|
2008-08-28 07:57:07 +00:00 |
|
Jason Gerard DeRose
|
c83c478ae1
|
215: Added basics of ipa_types.Enum class; added corresponding unit tests
|
2008-08-28 06:56:45 +00:00 |
|
Jason Gerard DeRose
|
07ac867ed3
|
214: Added ipa_types.Bool.validate() method; added corresponding unit tests
|
2008-08-28 05:06:13 +00:00 |
|
Jason Gerard DeRose
|
b865b30511
|
213: Added ipa_type.Bool class; added corresponding unit tests
|
2008-08-28 04:54:48 +00:00 |
|
Jason Gerard DeRose
|
d121a729aa
|
212: Type.__init__() now can also raise TypeError; added unit tests for Type.__init__()
|
2008-08-28 02:45:04 +00:00 |
|
Jason Gerard DeRose
|
039b9a2a9b
|
210: Type.__init__() now takes the type as the first argument, does not use subclass attribute; updated Int, Unicode, and their unit tests accordingly
|
2008-08-28 02:02:03 +00:00 |
|
Jason Gerard DeRose
|
2b01bdc112
|
209: Added Type.__call__() method; fleshed out Type.convert() method; added corresponding unit tests
|
2008-08-28 01:38:29 +00:00 |
|
Jason Gerard DeRose
|
5da1d4bb86
|
207: Added Unicode.validate() method and corresponding unit tests
|
2008-08-27 23:40:34 +00:00 |
|
Jason Gerard DeRose
|
8fbc01ca86
|
206: Finished unit tests for Unicode.__init__()
|
2008-08-27 22:56:51 +00:00 |
|
Jason Gerard DeRose
|
2984041d00
|
205: Continued work on Unicode.__init__() and corresponding unit tests
|
2008-08-27 22:26:35 +00:00 |
|
Jason Gerard DeRose
|
e6cecfdcf2
|
204: Fixed logic error in check_min_max(); started work on argument validation for Unicode
|
2008-08-27 21:52:13 +00:00 |
|
Jason Gerard DeRose
|
89ea3acd0a
|
203: Finished ipa_types.check_min_max() function; added corresponding unit tests; ipa_types.Int now uses check_min_max()
|
2008-08-27 21:20:19 +00:00 |
|
Jason Gerard DeRose
|
6b214cbccf
|
202: Started work on type classes in ipa_types module; added corresponding unit tests
|
2008-08-27 20:09:19 +00:00 |
|
Jason Gerard DeRose
|
330c17730c
|
201: Added new cli command 'console' that starts a custom interactive Python console
|
2008-08-27 00:25:33 +00:00 |
|
Jason Gerard DeRose
|
74a3cf8d28
|
200: Added plugins/override.py with an example of overriding a plugin
|
2008-08-26 19:43:56 +00:00 |
|
Jason Gerard DeRose
|
6226837eea
|
199: Updated user_login and user_initials example plugins to use Option.default_from
|
2008-08-26 19:23:50 +00:00 |
|
Jason Gerard DeRose
|
845c0d8bc6
|
198: Renamed Command.default() to Command.get_default(); Command.get_default_iter() now correctly calls Option.get_default() instead of Option.default()
|
2008-08-26 19:13:55 +00:00 |
|
Jason Gerard DeRose
|
0e47948695
|
197: Added new public.Option.get_default() method that calls Option.default_from() if it's a DefaultFrom instance, and otherwise returns Option.default (the static default value)
|
2008-08-26 19:02:24 +00:00 |
|
Jason Gerard DeRose
|
0755c218ff
|
196: DefaultFrom.__call__() now returns values from callback even if not basestring; small work on DefaultFrom docstrings
|
2008-08-26 16:52:46 +00:00 |
|
Jason Gerard DeRose
|
87fabaa717
|
195: Started on docstring for public.DefaultFrom
|
2008-08-26 01:07:24 +00:00 |
|
Jason Gerard DeRose
|
5157d8fc50
|
194: Removed like to Bazaar Plugin doc as it's not very relevant
|
2008-08-26 00:28:43 +00:00 |
|
Jason Gerard DeRose
|
45a6ee50b1
|
193: Removed depreciated public.PublicAPI class; removed corresponding unit tests
|
2008-08-26 00:06:00 +00:00 |
|
Jason Gerard DeRose
|
0d35c96f1a
|
192: Added a quick console example to docstring in ipalib/__init__.py
|
2008-08-26 00:04:15 +00:00 |
|
Jason Gerard DeRose
|
2fc3819bec
|
191: Removed ipalib/api.py module; standard plugable.API instance is now in ipalib.__init__.py
|
2008-08-25 23:35:29 +00:00 |
|