Beispiel #1
0
    def POST_happening_now(self, featured_thread, target):
        if featured_thread:
            if not target:
                abort(400)

            NamedGlobals.set(HAPPENING_NOW_KEY, {target: featured_thread._id})
        else:
            NamedGlobals.set(HAPPENING_NOW_KEY, None)

        self.redirect('/admin/happening-now')
    def POST_happening_now(self, featured_thread):
        NamedGlobals.set(HAPPENING_NOW_KEY,
                         getattr(featured_thread, '_id', None))

        self.redirect('/admin/happening-now')
    def POST_happening_now(self, featured_thread):
        NamedGlobals.set(HAPPENING_NOW_KEY,
                         getattr(featured_thread, '_id', None))

        self.redirect('/admin/happening-now')