Ejemplo n.º 1
0
 def __init__(self, rh, event_, active_menu_item=None, **kwargs):
     assert event_ == kwargs.setdefault('event', event_)
     self.event = event_
     self.title = strip_tags(self.event.title)
     kwargs['base_layout_params'] = {
         'active_menu_item': active_menu_item or self.sidemenu_option,
         'event_types': [(et.name, et.title) for et in EventType]
     }
     WPDecorated.__init__(self, rh, **kwargs)
Ejemplo n.º 2
0
 def __init__(self, rh, category, **kwargs):
     kwargs['category'] = category
     self.category = category
     self.atom_feed_url = kwargs.get('atom_feed_url')
     self.atom_feed_title = kwargs.get('atom_feed_title')
     if category:
         self.title = category.title
     WPDecorated.__init__(self, rh, **kwargs)
     self._mathjax = kwargs.pop('mathjax', False)
Ejemplo n.º 3
0
 def __init__(self, rh, active_menu_item=None, **kwargs):
     kwargs['active_menu_item'] = active_menu_item or self.sidemenu_option
     WPDecorated.__init__(self, rh, **kwargs)
Ejemplo n.º 4
0
 def __init__(self, rh, active_menu_item, **kwargs):
     kwargs['active_menu_item'] = active_menu_item
     WPDecorated.__init__(self, rh, **kwargs)