src/cm/client.py
changeset 106 36165e7cd1f0
parent 24 c8a95e540b79
child 144 e7e1bc64f613
equal deleted inserted replaced
105:f2ba05546abc 106:36165e7cd1f0
   181     ret = {} 
   181     ret = {} 
   182     if errors != {} :
   182     if errors != {} :
   183         ret['errors'] = errors
   183         ret['errors'] = errors
   184     else :
   184     else :
   185     # INSERT
   185     # INSERT
   186     # TODO check version still exist ...
   186     # TODO check version is latest (if boolean
   187         #comment = Comment.objects.get(id=edit_comment_id)
   187         #comment = Comment.objects.get(id=edit_comment_id)
   188         comment = Comment.objects.get(key=comment_key)
   188         comment = Comment.objects.get(key=comment_key)
   189         if change_state : # moderation action
   189         if change_state : # moderation action
   190             comment.state = state 
   190             comment.state = state 
   191         else :
   191         else :