예제 #1
0
def _po_reply_result(self, po, id, reply_list=None):
    user_id = self.current_user_id
    if user_id:
        self._hide(user_id, id)
        po_pos_state_buzz(user_id, po)

    if po and po.can_view(user_id):
        if reply_list is None:
            reply_list = []
        reply_list.extend(po.reply_list())
        result = _reply_list_dump( reply_list , po.can_admin(user_id), user_id)
    else:
        result = ()
    return result 
예제 #2
0
def _po_reply_result(self, po, id, reply_list=None):
    user_id = self.current_user_id
    if user_id:
        self._hide(user_id, id)
        po_pos_state_buzz(user_id, po)

    if po and po.can_view(user_id):
        if reply_list is None:
            reply_list = []
        reply_list.extend(po.reply_list())
        result = _reply_list_dump(reply_list, po.can_admin(user_id), user_id)
    else:
        result = ()
    return result
예제 #3
0
 def mark(self):
     po = self._po
     user_id = self.current_user_id
     po_pos_state_buzz(user_id, po)
예제 #4
0
 def mark(self):
     po = self._po
     user_id = self.current_user_id
     cid = po.cid
     if cid != CID_QUESTION:
         po_pos_state_buzz(user_id, po)