def ORB1(self): orb1 = ndb.Key('ORB','1').get() if orb1: self.response.out.write(edo.dictsonify(orb1)) else: orb1 = ORB(id='1',name='Pandora\'s Box') orb1.put()
def NODE1(self): node1 = ndb.Key('NODE','1').get() if node1: self.response.out.write(edo.dictsonify(node1)) else: node1 = NODE(id='1',name='MetaEden Central Node',info='The center of it all.') node1.put()
def ECHO1(self): echo1 = ndb.Key('ECHO','1').get() if echo1: self.response.out.write(edo.dictsonify(echo1)) else: echo1 = ECHO(id='1',name='Eden Crystal Helix Operator One',info='The Tree of Wisdom.',uCount=0,evekey='adam',oCount=0) echo1.put()
def send(self,scope): if scope == 'system': chanTargets = edo.fetchAllMuseIDs() for chanTarget in chanTargets: channel.send_message(str(chanTarget),edo.dictsonify(self))