Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/r/a/Radregator-HEAD/core/views.py   Radregator(Download)
from core.models import Topic,CommentType, Comment, Summary, CommentRelation, \
                   CommentResponse
from core.exceptions import UnknownOutputFormat, NonAjaxRequest, \
                                       MissingParameter, RecentlyResponded, \
                                       MethodUnsupported, InvalidTopic, \
                        reply_relation = CommentRelation.objects.filter(left_comment = comment, relation_type = 'reply')
                    except ObjectDoesNotExist:
                        raise NotUserQuestionReply ("This is not a reply to a question")
 
                    # It's a reply, but who posed the initial question?
 
                    if not reply_relation.right_comment.user == user:
                        raise NotUserQuestionReply ("This is a reply to a question posed by another user; user cannot accept it")