Пример #1
0
 def open(self):
     logging.debug("[WebSocket] Opened new campaign monitor websocket")
     self.uuid = self.get_argument("uuid", "")
     self.campaign = Campaign.by_uuid(self.uuid)
     self._setup_opcodes()
Пример #2
0
 def get(self, *args, **kwargs):
     if len(args) and Campaign.by_uuid(args[0]) is not None:
         self.render("campaigns/management.html", campaign=Campaign.by_uuid(args[0]))
     else:
         self.render("errors/404.html")