Commit Graph

64 Commits

Author SHA1 Message Date
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
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
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
45a6ee50b1 193: Removed depreciated public.PublicAPI class; removed corresponding unit tests 2008-08-26 00:06:00 +00:00
Jason Gerard DeRose
513bbb32b9 190: Renamed public.option class to public.Option 2008-08-25 22:10:23 +00:00
Jason Gerard DeRose
c646dfddde 188: Added unit tests for public.Object.finalize() method 2008-08-22 22:49:56 +00:00
Jason Gerard DeRose
af52671e13 187: Renamed plubic.obj to Object; reworked plublic.Object unit tests to use ClassChecker 2008-08-22 21:50:53 +00:00
Jason Gerard DeRose
f60fa06ce2 186: Renamed public.attr to Attribute; reworked public.Attribute unit tests using ClassChecker 2008-08-22 21:27:25 +00:00
Jason Gerard DeRose
5bf6a9eb09 185: Renamed public.prop to Property 2008-08-22 20:32:23 +00:00
Jason Gerard DeRose
a1b5d928fb 184: Renamed public.mthd class to Method 2008-08-22 20:23:19 +00:00
Jason Gerard DeRose
cad924168e 183: Added public.DefaultFrom class; added corresponding unit tests 2008-08-22 20:07:17 +00:00
Jason Gerard DeRose
b0ec8fe551 182: Renamed plublic.cmd base class to Command 2008-08-15 19:49:04 +00:00
Jason Gerard DeRose
594e7512b7 180: Fixed a few things in public.py that were broken by the changed NameSpace iter behaiviour 2008-08-15 19:15:24 +00:00
Jason Gerard DeRose
233293fb4a 175: Renamed Proxy to PluginProxy 2008-08-15 03:32:38 +00:00
Jason Gerard DeRose
ba8d32a110 150: NameSpace.__iter__() now iterates through the names, not the members; added NameSpace.__call__() method which iterates through the members; NameSpace no longer requires members to be Proxy instances; updated unit tests and affected code; cleaned up NameSpace docstrings and switch to epydoc param docstrings 2008-08-14 05:46:20 +00:00
Jason Gerard DeRose
024345e1f0 147: Changed cmd calling signature to __call__(self, *args, **kw) 2008-08-13 06:41:39 +00:00
Jason Gerard DeRose
b4ad681f41 143: Added errors.RequirementError exception; cmd.validate() now raises RequirementError if a required option is missing 2008-08-13 05:14:12 +00:00
Jason Gerard DeRose
0fed74b56d 138: Added ProxyTarget.doc property; CLI.print_commands() now uses cmd.doc instead of cmd.get_doc() 2008-08-13 02:34:36 +00:00
Jason Gerard DeRose
69f7132365 137: Removed depreciated PublicAPI.max_cmd_len property 2008-08-13 02:12:08 +00:00
Jason Gerard DeRose
9ac8a8b499 118: Added user_login.default() method as another example; print_call() now prints sorted by the keys in ascending order 2008-08-12 19:22:48 +00:00
Jason Gerard DeRose
4acb7567c4 117: Improved readability of cmd.print_call() 2008-08-12 18:02:49 +00:00
Jason Gerard DeRose
7bbeb2db69 116: Added a user_initials property plugin to demostrate default() method 2008-08-12 17:42:21 +00:00
Jason Gerard DeRose
99d7638ff5 115: CLI now parses out kw args; cmd.__call__() now uses print_n_call() to give feedback on the calling 2008-08-12 16:49:23 +00:00
Jason Gerard DeRose
bc4b26ffca 114: Fixed cmd.__get_options(); more work on CLI 2008-08-12 02:03:47 +00:00
Jason Gerard DeRose
902614a762 113: Fixed regex used in attr.__init__(); added unit tests for mthd.get_options() 2008-08-11 22:12:23 +00:00
Jason Gerard DeRose
c1a125256b 111: Minor changes to mthd and prop classes; updated mthd and prop unit tests 2008-08-11 21:14:07 +00:00
Jason Gerard DeRose
9282418291 110: Started fleshing out more in cli.py 2008-08-11 19:35:57 +00:00
Jason Gerard DeRose
5313e5a491 109: Cleanups in cmd; added unit tests for cmd.validate() 2008-08-11 19:11:26 +00:00
Jason Gerard DeRose
8a6ece2ffb 108: Changed cmd.default() so that it now only return dictionary of values for which defaults were generated; updated unit tests 2008-08-11 17:57:07 +00:00
Jason Gerard DeRose
fd6c215d59 107: Some cleanup in cmd; added unit tests for cmd.default() method 2008-08-11 17:37:33 +00:00
Jason Gerard DeRose
8aee8e060c 106: Fixed some typos in cmd.__get_options(); added unit tests for cmd.options and cmd.normalize() 2008-08-11 16:29:37 +00:00
Jason Gerard DeRose
879133d28a 105: Added a default implementation of cmd.get_options; added corresponding unit tests 2008-08-11 00:21:12 +00:00
Jason Gerard DeRose
f6b69a5905 104: public.option now subclasses from plugable.Plugin; cleaned up unit tests for option 2008-08-10 22:23:22 +00:00
Jason Gerard DeRose
3495c67d57 94: Renamed Proxy._clone() method to Proxy.__clone__(); updated unit tests 2008-08-09 01:46:12 +00:00
Jason Gerard DeRose
fdfa827a36 86: Actually change *all* tab indentation to 4-space: 'sed s/\t/ /g' 2008-08-08 21:40:03 +00:00
Jason Gerard DeRose
d171dc9011 82: Cleaned up unit tests for public.option; added some doodles in plugable.Base 2008-08-08 19:53:45 +00:00
Jason Gerard DeRose
8e46824815 81: Switch from tab to 4-space indentation 2008-08-08 17:11:29 +00:00
Jason Gerard DeRose
f656e31a7e 80: Cleaned up docstring for option.normalize() 2008-08-08 16:43:24 +00:00
Jason Gerard DeRose
b3fc5f9a41 79: More work on option and cmd 2008-08-08 06:18:12 +00:00
Jason Gerard DeRose
9ee10d383d 78: Renamed opt to option; started fleshing out cmd more 2008-08-08 04:47:42 +00:00