Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/django_comment_client/forum/views.py   MHST2013-14(Download)
 
from django_comment_client.permissions import cached_has_permission
from django_comment_client.utils import (merge_dict, extract, strip_none, get_courseware_context)
import django_comment_client.utils as utils
import comment_client as cc
 
    for thread in threads:
        courseware_context = get_courseware_context(thread, course)
        if courseware_context:
            thread.update(courseware_context)
 
    if request.is_ajax():
        courseware_context = get_courseware_context(thread, course)
        annotated_content_info = utils.get_annotated_content_infos(course_id, thread, request.user, user_info=user_info)
        context = {'thread': thread.to_dict(), 'course_id': course_id}
 
        for thread in threads:
            courseware_context = get_courseware_context(thread, course)
            if courseware_context:
                thread.update(courseware_context)

src/m/h/MHST2013-14-HEAD/edx_all/edx-platform/lms/djangoapps/django_comment_client/base/views.py   MHST2013-14(Download)
from course_groups.cohorts import get_cohort_id, is_commentable_cohorted
 
from django_comment_client.utils import JsonResponse, JsonError, extract, get_courseware_context
 
from django_comment_client.permissions import check_permissions_by_view, cached_has_permission
        user = cc.User.from_django_user(request.user)
        user.follow(thread)
    courseware_context = get_courseware_context(thread, course)
    data = thread.to_dict()
    if courseware_context: