IQuestionCollection, IQuestionSet, ISearchableByQuestionOwner, ) from lp.answers.interfaces.questionmessage import IQuestionMessage from lp.answers.interfaces.questionsperson import IQuestionsPerson from lp.answers.interfaces.questionsubscription import IQuestionSubscription from lp.answers.interfaces.questiontarget import IQuestionTarget from lp.services.webservice.apihelpers import ( patch_collection_return_type, patch_entry_return_type, patch_reference_property, ) IQuestionSet.queryTaggedValue( LAZR_WEBSERVICE_EXPORTED)['collection_entry_schema'] = IQuestion patch_entry_return_type(IQuestionSet, 'get', IQuestion) patch_collection_return_type( IQuestionTarget, 'findSimilarQuestions', IQuestion) patch_collection_return_type( IQuestionCollection, 'searchQuestions', IQuestion) patch_collection_return_type( ISearchableByQuestionOwner, 'searchQuestions', IQuestion) patch_reference_property(IQuestionMessage, 'question', IQuestion) patch_reference_property(IQuestionSubscription, 'question', IQuestion) patch_collection_return_type( IQuestionsPerson, 'getDirectAnswerQuestionTargets', IQuestionTarget) patch_collection_return_type( IQuestionsPerson, 'getTeamAnswerQuestionTargets', IQuestionTarget) patch_collection_return_type( IQuestionsPerson, 'searchQuestions', IQuestion)
from lp.answers.interfaces.questioncollection import ( IQuestionSet, ISearchableByQuestionOwner, ) from lp.answers.interfaces.questionmessage import IQuestionMessage from lp.answers.interfaces.questionsperson import IQuestionsPerson from lp.answers.interfaces.questionsubscription import IQuestionSubscription from lp.answers.interfaces.questiontarget import IQuestionTarget from lp.services.webservice.apihelpers import ( patch_collection_return_type, patch_entry_return_type, patch_reference_property, ) IQuestionSet.queryTaggedValue( LAZR_WEBSERVICE_EXPORTED)['collection_entry_schema'] = IQuestion patch_entry_return_type(IQuestionSet, 'get', IQuestion) patch_collection_return_type( IQuestionTarget, 'findSimilarQuestions', IQuestion) patch_collection_return_type( ISearchableByQuestionOwner, 'searchQuestions', IQuestion) patch_reference_property(IQuestionMessage, 'question', IQuestion) patch_reference_property(IQuestionSubscription, 'question', IQuestion) patch_collection_return_type( IQuestionsPerson, 'getDirectAnswerQuestionTargets', IQuestionTarget) patch_collection_return_type( IQuestionsPerson, 'getTeamAnswerQuestionTargets', IQuestionTarget) patch_collection_return_type( IQuestionsPerson, 'searchQuestions', IQuestion)