@cached_classmethod
def get_edit_handler(cls):
 if hasattr(cls, u'edit_handler'):
  return cls.edit_handler.bind_to_model(cls)
 tabs = []
 if cls.content_panels:
  tabs.append(ObjectList(cls.content_panels, heading=ugettext_lazy(u'Content')))
 if cls.promote_panels:
  tabs.append(ObjectList(cls.promote_panels, heading=ugettext_lazy(u'Promote')))
 if cls.settings_panels:
  tabs.append(ObjectList(cls.settings_panels, heading=ugettext_lazy(u'Settings'), classname=u'settings'))
 EditHandler = TabbedInterface(tabs, base_form_class=cls.base_form_class)
 return EditHandler.bind_to_model(cls)

@ cached_classmethod def get_edit_handler ( cls ) : if hasattr ( cls , u'edit_handler' ) : return cls . edit_handler . bind_to_model ( cls ) tabs = [ ] if cls . content_panels : tabs . append ( ObjectList ( cls . content_panels , heading = ugettext_lazy ( u'Content' ) ) ) if cls . promote_panels : tabs . append ( ObjectList ( cls . promote_panels , heading = ugettext_lazy ( u'Promote' ) ) ) if cls . settings_panels : tabs . append ( ObjectList ( cls . settings_panels , heading = ugettext_lazy ( u'Settings' ) , classname = u'settings' ) ) EditHandler = TabbedInterface ( tabs , base_form_class = cls . base_form_class ) return EditHandler . bind_to_model ( cls )
get the edithandler to use in the wagtail admin when editing this page type .