Exemplo n.º 1
0
 def get_related_extracts_preload(self, user_id):
     from assembl.views.api.extract import _get_extracts_real
     from pyramid.threadlocal import get_current_request
     from .idea import Idea
     Idea.get_discussion_data(self.id)
     request = get_current_request()
     assert request
     return json.dumps(_get_extracts_real(request, user_id=user_id))
Exemplo n.º 2
0
 def get_related_extracts_preload(self, user_id):
     from assembl.views.api.extract import _get_extracts_real
     return json.dumps(_get_extracts_real(discussion=self, user_id=user_id))
Exemplo n.º 3
0
 def get_related_extracts_preload(self, user_id):
     from assembl.views.api.extract import _get_extracts_real
     return json.dumps(_get_extracts_real(discussion=self, user_id=user_id))