Commit Graph

150 Commits

Author SHA1 Message Date
Pavel Zuna
7d0bd4b895 Rename errors2.py to errors.py. Modify all affected files. 2009-04-23 10:29:14 -04:00
Rob Crittenden
64fa3dd4c3 Finish work replacing the errors module with errors2
Once this is committed we can start the process of renaming errors2 as errors.
I thought that combinig this into one commit would be more difficult to
review.
2009-04-20 13:58:26 -04:00
Rob Crittenden
233a4cb5fd Raise a more specific error when a user lacks the proper permissions.
The info part of the message will contain details on what permission
failed on what attribute.
2009-03-25 11:02:44 -04:00
Rob Crittenden
5717c9d668 Applied Rob's errors patch 2009-02-03 15:29:04 -05:00
Jason Gerard DeRose
0d3ddef93b Started fleshing out reoganization of errors in errors.py (with gettext support) 2009-01-03 02:35:36 -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
6fdf5d1e7b Merge branch 'master' of git://git.engineering.redhat.com/users/rcritten/freeipa2 2008-12-20 15:00:00 -07:00
Jakub Hrozek
360f95341a Fix show_api command 2008-12-17 17:21:25 -07:00
Jakub Hrozek
f0bbe1b5a0 Add body for the NameSpaceError exception 2008-12-17 17:17:02 -07:00
Rob Crittenden
e41fcf19fe Raise an error on bad principals instead of printing one when changing passwords
Fix logic in determining what to do with an incoming principal
2008-12-11 10:31:27 -05:00
Rob Crittenden
fc8ac69372 Port plugins to use the new output_for_cli() argument list
Fix some errors uncovered by the nosetests
2008-12-10 14:15:19 -05: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
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
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
Rob Crittenden
34520981ee Don't allow service-add to create host/ principals 2008-10-24 14:17:20 -04:00
Jason Gerard DeRose
59a2cffff4 IPAError now more appropriately subclasses from StandardError instead of Exception 2008-10-23 21:21:51 -06:00
Rob Crittenden
b045f22069 Add mod_python-based XML-RPC server.
Use -e kerberos on the command-line to use the mod_python server, otherwise
it defaults to use the simple-server URL.
2008-10-16 23:33:44 -04:00
Rob Crittenden
6d2705b363 Implement user lock and unlock 2008-10-13 17:17:00 -04:00
Rob Crittenden
5c07d97865 Slight change to how exceptions are handled 2008-10-10 03:36:57 -04:00
Rob Crittenden
83bb41faeb Mechanism to convert from xmlrpclib.Fault to an IPAError exception
Include slew of new exceptions, not all of which are used yet
2008-10-10 03:36:56 -04:00
Jason Gerard DeRose
fec6fc2e8c Fixed example in raise_TypeError() docstring (thanks, mnagy) 2008-10-07 22:35:45 -06: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
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
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
bc08225dcd 230: Renamed allow_None kwarg to allow_none 2008-09-02 17:44:07 +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
992a5dadbe 218: Finished unit tests for Option2.validate(), Option2.validate_scalar() 2008-08-28 20:30:08 +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
47fed6c4c2 142: python2.4: Fixed custom exceptions in errors.py as exceptions in Python2.4 are not new-style classes 2008-08-13 04:11:26 +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
8e46824815 81: Switch from tab to 4-space indentation 2008-08-08 17:11:29 +00:00
Jason Gerard DeRose
14a0658464 76: Fleshed out opt.validate(); added corresponding unit tests 2008-08-07 06:23:02 +00:00
Jason Gerard DeRose
fadbae6420 72: Started work on public.opt class; added corresponding unit tests 2008-08-07 03:38:49 +00:00
Jason Gerard DeRose
f13f1226b4 65: Finished simplified Proxy2 class; updated unit tests 2008-08-06 21:54:56 +00:00
Jason Gerard DeRose
56fa454fdd 47: Added plugable.check_identifier() function; added corresponding unit tests 2008-08-05 06:33:09 +00:00
Jason Gerard DeRose
d7569a84b9 31: Renamed exceptions.py to errors.py 2008-07-31 18:57:10 +00:00