Jason Gerard DeRose
|
c070d390e9
|
Removed Env.__getattr__(); Env no longer accepts callables for values (no more dynamic/lazy values)
|
2008-12-22 15:51:54 -07:00 |
|
Jason Gerard DeRose
|
5b637f6a18
|
Removed depreciated code from config.py; removed corresponding unit tests
|
2008-12-22 15:41:24 -07:00 |
|
Jason Gerard DeRose
|
f82c48f775
|
Added note in Plugin.set_api() about Plugin.log attribute being depreciated
|
2008-12-21 19:58:48 -07:00 |
|
Jason Gerard DeRose
|
9d091c98f1
|
Plugin.__init__() now checks that subclass hasn't defined attributes that conflict with the logger methods; added corresponding unit test
|
2008-12-21 19:34:32 -07:00 |
|
Jason Gerard DeRose
|
4390523b7f
|
Improved Plugin.call() method and added its unit test
|
2008-12-21 17:12:00 -07:00 |
|
Jason Gerard DeRose
|
b71d1e6b6f
|
Added some more notes in TODO
|
2008-12-21 15:11:08 -07:00 |
|
Jason Gerard DeRose
|
6fdf5d1e7b
|
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
|
2008-12-20 15:00:00 -07:00 |
|
Jason Gerard DeRose
|
9a69adeef0
|
Added request.create_translation() function and corresponding unit tests
|
2008-12-18 16:58:48 -07:00 |
|
Jason Gerard DeRose
|
dc54dee622
|
Started work on per-request gettext setup
|
2008-12-18 14:01:59 -07:00 |
|
Jason Gerard DeRose
|
46e37ab144
|
New Param: ported Param.__repr__() and corresponding unit test
|
2008-12-18 11:21:12 -07:00 |
|
Jason Gerard DeRose
|
4d1681176a
|
New Param: added unit tests for TypeError cases in DefaultFrom.__init__()
|
2008-12-18 02:08:41 -07:00 |
|
Jason Gerard DeRose
|
cb2f294cfe
|
New Param: added missing unit tests for TypeError and ValueError cases in parse_param_spec()
|
2008-12-18 01:57:39 -07:00 |
|
Jason Gerard DeRose
|
99363131df
|
New Param: swapped location of DefaultFrom class and parse_param_spec() function
|
2008-12-18 01:45:13 -07:00 |
|
Jason Gerard DeRose
|
a632c2935a
|
New Param: removed unneeded conversion to tuple() in Param.convert()
|
2008-12-18 01:27:03 -07:00 |
|
Jason Gerard DeRose
|
ac335bc7ea
|
New Param: fixed small bug in Param.convert() and added detailed docstring
|
2008-12-18 01:18:17 -07:00 |
|
Jason Gerard DeRose
|
bf8154fa50
|
New Param: fixed a few things in Param.convert() and added corresponding unit tests
|
2008-12-18 00:02:38 -07:00 |
|
Jason Gerard DeRose
|
8ef6819059
|
New Param: renamed Param.__normalize_scalar() to Param._normalize_scalar() as it might make sense for subclasses to override
|
2008-12-17 23:32:58 -07:00 |
|
Jason Gerard DeRose
|
b26894c166
|
New Param: changed naming convention for class rules to '_rule_%s' as these methods aren't part of the public interface
|
2008-12-17 23:30:29 -07:00 |
|
Jason Gerard DeRose
|
285fa3d330
|
Removed depreciated envtest command from f_user.py
|
2008-12-17 23:18:14 -07:00 |
|
Jason Gerard DeRose
|
4f24f0fd88
|
Plugin.doc instance attribute is now parsed out using inspect.getdoc(); added Plugin.summary instance attribute, created in Plugin.__init__()
|
2008-12-17 23:08:52 -07:00 |
|
Jason Gerard DeRose
|
171ed58367
|
Removed Plugin.doc property and replaced with instance attribute created in Plugin.__init__()
|
2008-12-17 21:57:58 -07:00 |
|
Jason Gerard DeRose
|
69041c3b1b
|
Removed Plugin.name property and replaced with instance attribute created in Plugin.__init__()
|
2008-12-17 21:47:43 -07:00 |
|
Jason Gerard DeRose
|
ba481e7712
|
New Param: split class_rules and *rules into separate attributes
|
2008-12-17 18:32:46 -07:00 |
|
Jason Gerard DeRose
|
e5dabc852b
|
A few more notes in TODO, including about making Enum's self-documenting
|
2008-12-17 17:33:29 -07:00 |
|
Jason Gerard DeRose
|
e1aa5539fc
|
Added some notes in TODO about requirements for Andrew's post-process stuff needed for CA plugin
|
2008-12-17 17:08:09 -07:00 |
|
Jason Gerard DeRose
|
e05fd7ab03
|
New Param: added basic rule logic
|
2008-12-12 04:48:25 -07:00 |
|
Jason Gerard DeRose
|
66faffdfb0
|
New Param: cleanup up readability of Param.__init__(); added unit tests for unknown kwargs
|
2008-12-12 03:38:02 -07:00 |
|
Jason Gerard DeRose
|
5272949bfd
|
New Param: added all logic for minlength, maxlength, and length in Bytes class (which Str inherits)
|
2008-12-12 03:13:58 -07:00 |
|
Jason Gerard DeRose
|
079721da2c
|
New Param: changed kwargs class attribute to a tuple so the subclass interface is simpler
|
2008-12-11 22:39:50 -07:00 |
|
Jason Gerard DeRose
|
64ae4bc986
|
Copied DefaultFrom into parameter.py; added docstring to new Param.normalize() method; more work and unit tests in new Param class
|
2008-12-11 20:30:59 -07:00 |
|
Jason Gerard DeRose
|
5c47b56d14
|
Finished kwarg validation and extension mechanism in parameter.Param
|
2008-12-11 18:07:54 -07:00 |
|
Jason Gerard DeRose
|
22209a0f03
|
Started roughing out the consolidated type/parameter system in parameters.py; started corresponding unit tests
|
2008-12-10 21:14:05 -07:00 |
|
Jason Gerard DeRose
|
a3ab787d23
|
Added not about gettext in TODO
|
2008-12-10 09:55:00 -07:00 |
|
Jason Gerard DeRose
|
7e21ea5ad8
|
Fixed Warning messages about log dir in unit test
|
2008-12-08 16:56:24 -07:00 |
|
Jason Gerard DeRose
|
4591057203
|
Removed depreciated rpc code from ipalib.util; removed corresponding unit tests in test_util
|
2008-12-08 15:15:50 -07:00 |
|
Jason Gerard DeRose
|
f4f010ae8d
|
tests.test_ipalib.test_rpc now imports constants from tests.data
|
2008-12-08 15:10:01 -07:00 |
|
Jason Gerard DeRose
|
9862cc404b
|
Added more of my notes to TODO
|
2008-12-08 13:11:28 -07:00 |
|
Jason Gerard DeRose
|
8a2902a2a2
|
Re-enable Python2.4 tests and fixed some small things broken under Python2.4
|
2008-12-08 12:34:38 -07:00 |
|
Jason Gerard DeRose
|
5a2b0cd6b8
|
Added notes in TODO on planned API changes
|
2008-11-25 18:21:29 -07:00 |
|
Jason Gerard DeRose
|
5e1605f7e1
|
Added tests/data.py file I forgot
|
2008-11-25 14:27:23 -07:00 |
|
Jason Gerard DeRose
|
29d680b211
|
Continued work on xmlrpc.dispatch() unit tests; fixed bug in Command.args_to_kw()
|
2008-11-25 13:52:40 -07:00 |
|
Jason Gerard DeRose
|
7350ccbffe
|
Started fleshing out doodles in xmlrpc.execute()
|
2008-11-25 11:54:51 -07:00 |
|
Jason Gerard DeRose
|
2d458a1233
|
Stared some RPC-related error cleanup; started work on ipa_server.rcp.xmlrpc plugin
|
2008-11-24 21:34:01 -07:00 |
|
Jason Gerard DeRose
|
237c16f0fd
|
Started moving xmlrpc-functions from ipalib.util to ipalib.rpc
|
2008-11-24 12:51:03 -07:00 |
|
Jason Gerard DeRose
|
2db738e899
|
Some changes to make reading dubugging output easier
|
2008-11-24 10:09:30 -07:00 |
|
Jason Gerard DeRose
|
c02770129d
|
Small changed to test_round_trip() test
|
2008-11-21 15:05:39 -07:00 |
|
Jason Gerard DeRose
|
75bdea29be
|
Added test_util.test_round_trip() test that tests use of xmlrpc_wrap() and xmlrpc_unwrap() with dumps(), loads(); fixed a bug in xmlrpc_unwrap()
|
2008-11-20 12:41:06 -07:00 |
|
Jason Gerard DeRose
|
cfe4ec2175
|
Added util.xmlrpc_wrap(), util.xmlrpc_unwrap() functions an corresponding unit tests
|
2008-11-19 16:11:23 -07:00 |
|
Jason Gerard DeRose
|
2478ccd357
|
Fixed some unicode encoded/decode issues in textui.prompt_password() and textui.prompt()
|
2008-11-19 03:31:29 -07:00 |
|
Jason Gerard DeRose
|
500b816681
|
Added unit test for Param.ispassword() method
|
2008-11-18 16:29:08 -07:00 |
|
Jason Gerard DeRose
|
4afee15d4b
|
Calling 'passwd' command now prompts for password using textui.prompt_password()
|
2008-11-18 13:43:43 -07:00 |
|
Jason Gerard DeRose
|
0a60a6bcc4
|
Added textui.prompt_password() method; added logic in cli for dealing with 'password' flag in param.flags
|
2008-11-18 11:30:16 -07:00 |
|
Jason Gerard DeRose
|
75d1918996
|
Added some experimental textui methods
|
2008-11-17 20:41:01 -07:00 |
|
Jason Gerard DeRose
|
8474bd01da
|
Command.get_defaults() now returns param.default if param.type is a Bool
|
2008-11-17 18:50:30 -07:00 |
|
Jason Gerard DeRose
|
5c16047092
|
user-lock and user-unlock commands now use textui, which finishes the user plugins
|
2008-11-17 18:15:40 -07:00 |
|
Jason Gerard DeRose
|
12dc0a0aa9
|
user-find now works again, uses textui
|
2008-11-17 16:40:42 -07:00 |
|
Jason Gerard DeRose
|
42bf555a3a
|
Started updated user_* commands to use textui
|
2008-11-17 15:27:08 -07:00 |
|
Jason Gerard DeRose
|
e7ec413158
|
Moved plugins command from ipalib.cli to ipalib.plugins.f_misc
|
2008-11-16 19:50:17 -07:00 |
|
Jason Gerard DeRose
|
e059591d6b
|
env command now supports * wildcard for searching
|
2008-11-14 22:21:36 -07:00 |
|
Jason Gerard DeRose
|
e3fec8f219
|
Fixed textui.print_keyval for cases when the row is a list instead of a tuple
|
2008-11-14 22:03:31 -07:00 |
|
Jason Gerard DeRose
|
9de56d43f0
|
env plugin now subclasses from RemoteOrLocal
|
2008-11-14 21:58:39 -07:00 |
|
Jason Gerard DeRose
|
36737c2d91
|
Added frontend.LocalOrRemote command base class for commands like env
|
2008-11-14 21:29:46 -07:00 |
|
Jason Gerard DeRose
|
3433840692
|
Fixed doctest in tutorial
|
2008-11-14 19:48:01 -07:00 |
|
Jason Gerard DeRose
|
f8f4058014
|
Tutorial: fixed typo in 'How your command should print to stdout' section
|
2008-11-14 14:53:55 -07:00 |
|
Jason Gerard DeRose
|
caa98476f0
|
Tutorial: fixed typo in 'First steps: A simple command plugin' section
|
2008-11-14 14:49:48 -07:00 |
|
Jason Gerard DeRose
|
1abe3abb87
|
Tutorial: another small change to section on using output_for_cli()
|
2008-11-14 14:35:52 -07:00 |
|
Jason Gerard DeRose
|
0f1ed3e904
|
Tutorial: command in output_for_cli() example now also takes an argument
|
2008-11-14 14:27:09 -07:00 |
|
Jason Gerard DeRose
|
c974451edf
|
Added print_plain() and print_paragraph() methods to textui plugin and cleaned up the order of its methods
|
2008-11-14 13:33:42 -07:00 |
|
Jason Gerard DeRose
|
6d1ec6360c
|
Tutorial: small improvements to section on using output_for_cli()
|
2008-11-14 12:43:10 -07:00 |
|
Jason Gerard DeRose
|
0313bb7ec0
|
Tutorial: added section on implementing an output_for_cli() method
|
2008-11-14 12:19:18 -07:00 |
|
Jason Gerard DeRose
|
44171a0bad
|
Tutorial: added section on allowed return values from a command's execute() method
|
2008-11-14 01:25:05 -07:00 |
|
Jason Gerard DeRose
|
82d3de773b
|
Added textui.prompt() method, which CLI.prompt_interactively() uses
|
2008-11-13 23:54:34 -07:00 |
|
Jason Gerard DeRose
|
f5594dd489
|
Started work on cleaning up how exceptions are caught and sys.exit() is called in ipalib.cli.CLI
|
2008-11-13 23:29:35 -07:00 |
|
Jason Gerard DeRose
|
860d391f3e
|
Change Param.__repr__() so it returns the exact expression that could create it; added unit test for Param.__repre__()
|
2008-11-13 22:16:04 -07:00 |
|
Jason Gerard DeRose
|
1f635269e8
|
Param.__repr__() now uses util.make_repr()
|
2008-11-13 21:17:33 -07:00 |
|
Jason Gerard DeRose
|
8ad5502354
|
Added util.make_repr() function; added corresponding unit tests
|
2008-11-13 21:07:47 -07:00 |
|
Jason Gerard DeRose
|
01a7f1f437
|
Calling ./ipa with no command now calls Command.help()
|
2008-11-12 10:15:24 -07:00 |
|
Jason Gerard DeRose
|
f04aaff97c
|
output_for_cli signature is now output_for_cli(textui, result, *args, **options)
|
2008-11-12 09:55:11 -07:00 |
|
Jason Gerard DeRose
|
09161e399a
|
Command.get_default() will now fill-in None for all missing non-required params
|
2008-11-12 01:47:37 -07:00 |
|
Jason Gerard DeRose
|
014af24731
|
Changed calling signature of output_for_cli(); started work on 'textui' backend plugin
|
2008-11-12 00:46:04 -07:00 |
|
Jason Gerard DeRose
|
f3869d7b24
|
Renamed ipalib.get_standard_api() to create_api()
|
2008-11-11 15:24:18 -07:00 |
|
Jason Gerard DeRose
|
1894513574
|
Tutorial: improved clarity of 'How this tutorial is written' section
|
2008-11-11 10:24:30 -07:00 |
|
Jason Gerard DeRose
|
786c965c12
|
Tutorial: fixed typo
|
2008-11-10 21:36:56 -07:00 |
|
Jason Gerard DeRose
|
16b86d559a
|
Tutorial: added intro section about Python interactive intepreter
|
2008-11-10 21:33:15 -07:00 |
|
Jason Gerard DeRose
|
2be9f2bba8
|
More tutorial work: made introduction more concise; moved note on markup to end; added note about Bazaar
|
2008-11-10 20:08:22 -07:00 |
|
Jason Gerard DeRose
|
9aa14333a4
|
Added 'conf_dir' env variable, which is directory containing config files
|
2008-11-10 15:53:10 -07:00 |
|
Jason Gerard DeRose
|
174af50f6d
|
Fixed typo and made sentance clearer in tutorial
|
2008-11-07 02:30:19 -07:00 |
|
Jason Gerard DeRose
|
c26a3c8542
|
Finished fist draft of plugin tutorial in ipalib/__init__.py docstring
|
2008-11-07 02:26:38 -07:00 |
|
Jason Gerard DeRose
|
5bdf860647
|
Added Plugin.call() method that calls an external executable via subprocess.call()
|
2008-11-06 11:57:21 -07:00 |
|
Jason Gerard DeRose
|
a9e8bda0cf
|
Dropped some of the more verbose logging in lite-xmlrpc.py to logger.debug()
|
2008-10-31 20:59:44 -06:00 |
|
Jason Gerard DeRose
|
242a8183a7
|
Added custom log formatter util.LogFormatter that makes the human-readable time stamp in UTC
|
2008-10-31 20:25:33 -06:00 |
|
Jason Gerard DeRose
|
5e5a83e4e8
|
Renamed API.bootstrap_from_options() to bootstrap_with_global_options()
|
2008-10-31 19:03:07 -06:00 |
|
Jason Gerard DeRose
|
5269d1396c
|
Logging formats are now env variables; added log_format_stderr_debug format used when env.debug is True
|
2008-10-31 18:55:32 -06:00 |
|
Jason Gerard DeRose
|
a23d41a57f
|
Reoganized global option functionality to it is easy for any script to use the environment-related global options; lite-xmlrpc.py now uses same global options
|
2008-10-31 18:17:08 -06:00 |
|
Jason Gerard DeRose
|
cdfb7bfd5e
|
Logging is now configured in API.bootstrap(); removed depreciated util.configure_logging() function
|
2008-10-31 13:27:42 -06:00 |
|
Jason Gerard DeRose
|
140458cfc6
|
API.finalize() now cascades call to API.load_plugins()
|
2008-10-31 12:29:59 -06:00 |
|
Jason Gerard DeRose
|
a360b6479c
|
Fixed test_Del.test_get_options()
|
2008-10-30 17:47:56 -06:00 |
|
Jason Gerard DeRose
|
3352069309
|
Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2
|
2008-10-30 17:05:07 -06:00 |
|
Jason Gerard DeRose
|
3076cb4d2f
|
Plugin.set_api() now sets convience instance attributes from api for env, context, log, and all NameSpace
|
2008-10-30 14:11:24 -06:00 |
|
Jason Gerard DeRose
|
6879140db7
|
Added ipalib.plugins.f_misc with new 'context' Command; moved 'env' Command from cli to f_misc
|
2008-10-30 02:20:28 -06:00 |
|