def entry_comment(request, entry):
    if not request.session.get('nickname', None):
        return HttpResponseRedirect(reverse('login'))
    if request.method == 'POST':
        form = CommentForm(request.POST)
        if form.is_valid():
            f = friendfeed.FriendFeed(request.session['nickname'],
                request.session['key'])
            if form.data['comment']:
                data = f.edit_comment(form.data['entry'], form.data['comment'], form.data['body'])
            else:
                data = f.add_comment(form.data['entry'], form.data['body'], via=VIA)
            if 'errorCode' in data:
                return error(request, data)
            next = form.data['next']
            comment = data['id']
            args = {
                'entry': form.data['entry'],
                'comment': comment,
                'message': 'edited' if form.data['comment'] else 'commented',
            }
            next += '?%s#%s' % (urllib.urlencode(args), comment)
            return HttpResponseRedirect(next)
    else:
        initial = {
            'body': request.GET.get('body', None),
            'comment': request.GET.get('comment', None),
            'entry': entry,
            'next': reverse('entry', args=[entry]),
        }
        form = CommentForm(initial=initial)
    extra_context = {
        'form': form,
    }
    return render_to_response('comment.html', extra_context, context_instance=RequestContext(request))
Connect the volume.
dataset/ETHPy150Open bgolub/fftogo/fftogo/views.py/entry_comment--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/libvirt/volume/smbfs.py/LibvirtSMBFSVolumeDriver.connect_volume