Esempio n. 1
0
 def _get_attach_form(self):
     form = AttachChatroomForm()
     form.chatroom.query = Chatroom.find(Chatroom.created_by_user == session.user,
                                         ~Chatroom.events.any(ChatroomEventAssociation.event_id == self.event_id))
     return form
Esempio n. 2
0
 def has_data(self):
     return Chatroom.find().count()
Esempio n. 3
0
 def has_data(self):
     return Chatroom.find().count()