Commit Graph

15 Commits

Author SHA1 Message Date
Calen Pennington
6b64b4214f Make relative imports explicitly relative 2013-03-15 11:23:22 -04:00
Victor Shnayder
f1d670f9a8 remove no-longer-need < escape. Re #466 2012-08-21 13:29:11 -04:00
ichuang
73d9d10aa8 html needs < in backcompat_module 2012-08-16 15:17:55 -04:00
ichuang
0cac6c9512 minor change to backcompat_module for py26 compat 2012-08-16 15:16:42 -04:00
Victor Shnayder
61478f4ba0 fix string format bug 2012-08-16 11:46:56 -04:00
Victor Shnayder
5e2f676153 backcompat warnings 2012-08-16 11:36:05 -04:00
Victor Shnayder
f717b0421f fix bug in backcompat section replacement
(s/sequence/sequential/)
2012-08-15 21:39:10 -04:00
Victor Shnayder
32253510d1 Import error cleanup
* call error tracker when needed
* remove duplicate logging--just add info and re-raise
* xml modulestore uses error tracker to capture load errors
* add unstyled list of import errors to courseware homepage!
2012-08-01 11:48:19 -04:00
Victor Shnayder
0b67d1c401 Turn error_handlers into error_trackers
* simplify logic--tracker just tracks errors.  Trackers should not raise,
      and are not be responsible for logging.
* adapted code to use trackers.
* Started cleanup of error handling code:
  - if need to add info and re-raise, just do that.  No logging.
  - if working around a problem, log and track as needed.
2012-08-01 11:48:18 -04:00
Victor Shnayder
0d83d2e645 Add roundtrip test for malformed module
* also fix error message in backcompat_module
2012-08-01 11:40:11 -04:00
Calen Pennington
d0c99151f0 Continue during backcompat imports by replacing contents with error xml 2012-07-30 14:04:15 -04:00
Victor Shnayder
9461148b6e make customtag take impl as attribute rather than child 2012-07-27 16:08:22 -04:00
Victor Shnayder
5f84e61925 Add hook for error handling during xml import
* add error_handler member to DescriptorSystem
* call it where import errors happen
* also includes some refactoring in xml.py
* some more line length and docstring cleanups
2012-07-27 16:08:22 -04:00
Victor Shnayder
63f34f2e70 Line length and doc string cleanups
* no functionality changed in this commit.
2012-07-27 16:08:22 -04:00
Calen Pennington
cdd55373c6 Make it clear that the module for backwards compatability is just that 2012-07-11 22:19:34 -04:00