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
|
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
|
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
|
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
|
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
|
500b816681
|
Added unit test for Param.ispassword() method
|
2008-11-18 16:29:08 -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
|
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
|
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
|
8ad5502354
|
Added util.make_repr() function; added corresponding unit tests
|
2008-11-13 21:07:47 -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
|
014af24731
|
Changed calling signature of output_for_cli(); started work on 'textui' backend plugin
|
2008-11-12 00:46:04 -07:00 |
|
Rob Crittenden
|
f18c84444d
|
Partially revert back change. Del shouldn't provide default options.
It can provide custom ones though, if defined with takes_params() in the class.
|
2008-11-03 13:14:46 -05: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
|
a360b6479c
|
Fixed test_Del.test_get_options()
|
2008-10-30 17:47:56 -06:00 |
|
Jason Gerard DeRose
|
2fee6a3e20
|
Added tests.util.get_api() function to create a standard (api, home) tuple for unit testing
|
2008-10-30 01:34:46 -06:00 |
|
Jason Gerard DeRose
|
ddb5449c7f
|
Did some initial work for Context plugins
|
2008-10-30 01:11:33 -06:00 |
|
Jason Gerard DeRose
|
83d6c95e46
|
API.load_plugins() no longer takes dry_run=False kwarg and instead checks in env.mode == 'unit_test' to decide whether to load the plugins; it also only loads ipa_server.plugins in env.in_server is True
|
2008-10-27 23:39:43 -06:00 |
|
Jason Gerard DeRose
|
6e456cc749
|
More CLI cleanup, got all basics working again
|
2008-10-27 23:30:55 -06:00 |
|
Jason Gerard DeRose
|
9b1e3f5946
|
More docstrings, functionality, and unit tests for improved CLI class
|
2008-10-27 19:21:49 -06:00 |
|
Jason Gerard DeRose
|
491e295412
|
Unit test for CLI.boostrap() now checks that -e overrides and values from config files are merged in correctly
|
2008-10-27 16:08:17 -06:00 |
|
Jason Gerard DeRose
|
bb9691099b
|
API.bootstrap() now calls Env._finalize_core(); updated unit tests
|
2008-10-27 15:36:41 -06:00 |
|
Jason Gerard DeRose
|
e6254026fe
|
Implemented basic CLI.bootstrap(); added corresponding unit tests
|
2008-10-27 15:19:49 -06:00 |
|
Jason Gerard DeRose
|
17fd9cc431
|
Started cleanup work on CLI class, added unit tests for CLI.parse_globals()
|
2008-10-27 14:49:34 -06:00 |
|
Jason Gerard DeRose
|
10026284db
|
Started cleanup work on CLI class, added unit tests for CLI.parse_globals()
|
2008-10-27 14:48:02 -06:00 |
|
Jason Gerard DeRose
|
d76202fea3
|
API.env is now an Env instance rather than an Environment instance
|
2008-10-27 01:35:40 -06:00 |
|
Jason Gerard DeRose
|
25a7df9615
|
Env._finalize_core() now also loads config from Env.conf_default
|
2008-10-27 01:09:53 -06:00 |
|
Jason Gerard DeRose
|
28dd8e74bd
|
Env._bootstrap() now also sets Env.conf_default
|
2008-10-27 00:58:25 -06:00 |
|
Jason Gerard DeRose
|
4fe03f5e17
|
Added API.load_plugins() place-holder, which cascades call to API.bootstrap()
|
2008-10-26 23:53:44 -06:00 |
|
Jason Gerard DeRose
|
6b8abb0d78
|
Implemented placeholder API.bootstrap() method; added API __doing(), __do_if_not_done(), isdone() methods borrowed from Env; API.finalize() now cascades call to API.bootstrap()
|
2008-10-26 23:28:06 -06:00 |
|
Jason Gerard DeRose
|
759734864e
|
Finished Env._finalize() and corresponding unit tests
|
2008-10-24 20:21:27 -06:00 |
|
Jason Gerard DeRose
|
ac4efac394
|
Finished Env._finalize_core() and corresponding unit tests
|
2008-10-24 20:02:14 -06:00 |
|
Jason Gerard DeRose
|
8ca44bcbfa
|
Added tests.util.TempHome class for created a tempdir and setting os.environ['HOME'] to it; updated various unit tests for Env so they are run using a tempdir for home
|
2008-10-24 16:02:26 -06:00 |
|
Jason Gerard DeRose
|
2a41db33c6
|
Env._bootstrap() now raises StandardError if called more than once
|
2008-10-24 15:35:58 -06:00 |
|
Jason Gerard DeRose
|
f80beb948b
|
Added ipalib/constants.py; added Env._load_config() method along with comprehensive unit tests for same
|
2008-10-24 15:07:07 -06:00 |
|
Jason Gerard DeRose
|
2ec0312eb6
|
Finished doodle with stricter version of Environment
|
2008-10-24 01:51:36 -06:00 |
|
Jason Gerard DeRose
|
59a2cffff4
|
IPAError now more appropriately subclasses from StandardError instead of Exception
|
2008-10-23 21:21:51 -06:00 |
|
Jason Gerard DeRose
|
bb978e591b
|
Fixed bug in DefaultFrom where impleied keys were using entire func_code.co_varnames instead of an approprate slice
|
2008-10-20 16:45:32 -06:00 |
|
Martin Nagy
|
18e74643a6
|
Add comments in config.py and fix Environment.get()
|
2008-10-20 19:54:30 +02:00 |
|
Jason Gerard DeRose
|
8322138f38
|
Added new Param.flags attribute (set with flags=foo kwarg)
|
2008-10-17 19:34:26 -06:00 |
|
Jason Gerard DeRose
|
1be301821e
|
Fixed unit test for CrudBacked.retrieve()
|
2008-10-17 16:47:09 -06:00 |
|
Martin Nagy
|
3a80297b04
|
Reworking Environment, moved it to config.py
|
2008-10-17 23:11:51 +02:00 |
|