def __init__(self, title, content, **kwargs):
     Reddit.__init__(self,
         title=title,
         show_sidebar=False,
         content=content,
         **kwargs
     )
Example #2
0
 def __init__(self, title, content, **kwargs):
     Reddit.__init__(self,
                     title=title,
                     show_sidebar=False,
                     show_newsletterbar=False,
                     content=content,
                     **kwargs)
    def __init__(self, content, websocket_url=None):
        extra_js_config = {
            "liveupdate_event": c.liveupdate_event._id,
        }

        if websocket_url:
            extra_js_config["liveupdate_websocket"] = websocket_url

        Reddit.__init__(self,
            title=c.liveupdate_event.title,
            show_sidebar=False,
            content=content,
            extra_js_config=extra_js_config,
        )
    def __init__(self, content, websocket_url=None):
        extra_js_config = {
            "liveupdate_event": c.liveupdate_event._id,
            "liveupdate_pixel_domain": g.liveupdate_pixel_domain,
        }

        if websocket_url:
            extra_js_config["liveupdate_websocket"] = websocket_url

        title = c.liveupdate_event.title
        if c.liveupdate_event.state == "live":
            title = _("[live]") + " " + title

        Reddit.__init__(self,
            title=title,
            show_sidebar=False,
            content=content,
            extra_js_config=extra_js_config,
        )
Example #5
0
 def __init__(self, nav_menus=None, *a, **kw):
     Reddit.__init__(self, nav_menus=nav_menus, *a, **kw)
Example #6
0
 def __init__(self, nav_menus = None, *a, **kw):
     Reddit.__init__(self, nav_menus = nav_menus, *a, **kw)
Example #7
0
 def __init__(self, content):
     Reddit.__init__(
         self,
         show_sidebar=False,
         content=content,
     )
Example #8
0
 def __init__(self, content):
     websocket_url = websockets.make_url("/thebutton", max_age=24 * 60 * 60)
     extra_js_config = {"thebutton_websocket": websocket_url}
     Reddit.__init__(self, content=content, extra_js_config=extra_js_config)
Example #9
0
 def __init__(self, content):
     websocket_url = websockets.make_url("/thebutton", max_age=24 * 60 * 60)
     extra_js_config = {"thebutton_websocket": websocket_url}
     Reddit.__init__(self, content=content, extra_js_config=extra_js_config)
Example #10
0
 def __init__(self, content):
     Reddit.__init__(
         self,
         show_sidebar=False,
         content=content,
     )