Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Pre-filled user info in Django Comments? [RSS Feed]

#1 Dec. 9, 2010 17:35:27

P.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Pre-filled user info in Django Comments?


Hi,

The site I'm building uses the standard user management framework and
the standard comments framework.

What I'd like to see happen is the comments form rendered with the
user's name and email address pre-filled if they are already signed in
(or have the fields hidden entirely!).

Easy enough?

Cheers,

Paul

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

Offline

#2 Dec. 10, 2010 16:12:53

J.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Pre-filled user info in Django Comments?


My site takes the route of hiding name, email, and URL fields for
authenticated users.

You can safely serve up a form without the name field for
authenticated users since the comments framework will just copy over
either the user's full name if it's set or their username if it isn't
for the commenter's name.

Things get a little dicey not displaying the email field since
Django's commenting system by default requires an email address for
all comments while the standard user management framework doesn't
require users to specify their email address, so you'd need to figure
out how to handle the case where the user hasn't set an email address
yet (if the user has set an email address, then it should be copied
over if the email field isn't displayed, otherwise the form will show
an error page when the comment is submitted).

Populating URLs will require extending the user management framework
and the commenting system.

Hope that helps!

On Dec 9, 12:20 pm, Paolo <paul...@gmail.com> wrote:
> Hi,
>
> The site I'm building uses the standard user management framework and
> the standard comments framework.
>
> What I'd like to see happen is the comments form rendered with the
> user's name and email address pre-filled if they are already signed in
> (or have the fields hidden entirely!).
>
> Easy enough?
>
> Cheers,
>
> Paul

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

Offline

#3 Dec. 10, 2010 23:16:02

Andre T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Pre-filled user info in Django Comments?


>From my experience, adapting tohttp://code.google.com/p/django-threadedcomments/pays off. You said "the
site I'm *building*", and we all know it's definitely easier to explore
other possibilities early on.


Best regards,

Andre Terra (airstrike)

On Fri, Dec 10, 2010 at 14:12, Jeff <jeffreychar...@gmail.com> wrote:

> My site takes the route of hiding name, email, and URL fields for
> authenticated users.
>
> You can safely serve up a form without the name field for
> authenticated users since the comments framework will just copy over
> either the user's full name if it's set or their username if it isn't
> for the commenter's name.
>
> Things get a little dicey not displaying the email field since
> Django's commenting system by default requires an email address for
> all comments while the standard user management framework doesn't
> require users to specify their email address, so you'd need to figure
> out how to handle the case where the user hasn't set an email address
> yet (if the user has set an email address, then it should be copied
> over if the email field isn't displayed, otherwise the form will show
> an error page when the comment is submitted).
>
> Populating URLs will require extending the user management framework
> and the commenting system.
>
> Hope that helps!
>
> On Dec 9, 12:20 pm, Paolo <paul...@gmail.com> wrote:
> > Hi,
> >
> > The site I'm building uses the standard user management framework and
> > the standard comments framework.
> >
> > What I'd like to see happen is the comments form rendered with the
> > user's name and email address pre-filled if they are already signed in
> > (or have the fields hidden entirely!).
> >
> > Easy enough?
> >
> > Cheers,
> >
> > Paul
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
>http://groups.google.com/group/django-users?hl=en.
>
>

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

Offline

  • Root
  • » Django
  • » Pre-filled user info in Django Comments? [RSS Feed]

Board footer

Moderator control

Enjoy the 12th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support