Exemplo 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
Exemplo n.º 2
0
 def has_data(self):
     return Chatroom.find().count()
Exemplo n.º 3
0
 def has_data(self):
     return Chatroom.find().count()