moved set_page_edit_hanlder to edit_handlders.py. Still not happy it's invoked the right way though

This commit is contained in:
Dave Cranwell 2014-06-17 17:20:22 +01:00
parent b95d6a0fab
commit fb9a876e92
2 changed files with 4 additions and 4 deletions

View file

@ -261,6 +261,10 @@ def extract_panel_definitions_from_model_class(model, exclude=None):
return panels
def set_page_edit_handler(page_class, handlers):
page_class.handlers = handlers
class EditHandler(object):
"""
Abstract class providing sensible default behaviours for objects implementing

View file

@ -555,10 +555,6 @@ def get_which_page_edit_handler(page_class):
return get_default_panels(page_class)
def set_page_edit_handler(page_class, handlers):
page_class.handlers = handlers
def get_page_edit_handler(page_class):
if page_class not in PAGE_EDIT_HANDLERS:
PAGE_EDIT_HANDLERS[page_class] = TabbedInterface(get_which_page_edit_handler(page_class))