def post_twitter(request,text):
  if text and len(text)<=70:
    
    comment(text,request.user.username,_date)
    comments = retrieve()
    
    refresh = render_to_string('index.html',RequestContext(request,{'comments':comments, 'user':request.user.username}))
    
    return simplejson.dumps({'content':refresh})
def post_twitter(request):
  
  text = request.GET['text']
  if text and len(text)<=70:
    comment(text,request.user.username,_date)
    comments = retrieve()
    refresh = render_to_string('index.html',RequestContext({'date':_date, 'comments':comments, 'user':request.user.username}))
    
    dajax = Dajax()
    dajax.assign('body','innerHTML',refresh)
    return dajax.json()
def twitter(request):
    if request.user.is_authenticated():
        comments = retrieve()
        return render_to_response("index.html", {"date": _date, "comments": comments, "user": request.user.username})
    else:
        return render_to_response("login.html", {"date": _date})
def twitter(request):
  if request.user.is_authenticated():
    comments = retrieve()
    return render_to_response('index.html', {'comments':comments, 'user':request.user.username})
  else:
    return render_to_response('login.html',{})