コード例 #1
0
def collab_annotations (request, myData=True, conn=None, **kwargs):
    """
    Page displays recent annotations of OTHER users on MY data (myData=True) or
    MY annotations on data belonging to OTHER users. 
    """
    collabAnns = webmobile_util.listCollabAnnotations(conn, myData)
    
    return render_to_response('webmobile/timeline/recent_collab.html', {'client':conn, 'recent':collabAnns, 'myData':myData })
コード例 #2
0
def collab_annotations (request, myData=True, **kwargs):
    """
    Page displays recent annotations of OTHER users on MY data (myData=True) or
    MY annotations on data belonging to OTHER users. 
    """
    conn = None
    try:
        conn = kwargs["conn"]
    except:
        logger.error(traceback.format_exc())
        return HttpResponse(traceback.format_exc())
        
    collabAnns = webmobile_util.listCollabAnnotations(conn, myData)
    
    return render_to_response('webmobile/timeline/recent_collab.html', {'client':conn, 'recent':collabAnns, 'myData':myData })