def _after_finish(self): 'override this for work post' q = self._queue_actions for key in q.keys(): d = q[key] d.update({'site_id':self.site.id}) actions.do_action(key,**d) log.debug("in after finish key=%s, val=%s" % (key,d)) super(ApiBaseHandler, self)._after_finish()
def test_actions(): 'test actions' d = {'site_id':1,'echo':'Testing42'} actions.do_action('testing_webhook',**d)