No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

exceptions.py 344B

1234567891011121314
  1. #-*- coding: utf-8 -*-
  2. class EditorialModelError(Exception):
  3. pass
  4. def assert_edit():
  5. try:
  6. from lodel import Settings
  7. except ImportError: #Very dirty, but don't know how to fix the tests
  8. return
  9. if not Settings.editorialmodel.editormode:
  10. raise EditorialModelError("EM is readonly : editormode is OFF")