예제 #1
0
파일: api.py 프로젝트: araddon/demisauce
 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()
예제 #2
0
def test_actions():
    'test actions'
    d = {'site_id':1,'echo':'Testing42'}
    actions.do_action('testing_webhook',**d)