示例#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
示例#2
0
 def has_data(self):
     return Chatroom.find().count()
示例#3
0
 def has_data(self):
     return Chatroom.find().count()