Hi!
Recently I started using svn version of django.contrib.comments and
quickly I realized that:
- if the user is logged in I want comment form to have 'name' and
'email' fields filled with user data and I want these fields to be
readonly
- if Iuser is logged in I want to hide URL field at the form

I found documentation about customizing comment framework and realized
that there is no obvious way to do the above.
The problem is that developer is supposed to customize/write his own
CommentForm but at this point he has no access to request object or
user object. I think is not hard to change it. I've submitted a
ticket:

http://code.djangoproject.com/ticket/10838

I'd like to hear any opinions about this proposal. One issue I noticed
with that is wheter to pass whole request or just user object? With
request there is a problem that it is placed in template context by
optional (not enabled by default) context processor. 'user' is placed
by django.core.context_processors.auth which is enabled by default.
Of course is RequestContext is not used at all then nothing wrong
should happen.

--
Maciej Wisniowski

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to