Re: How to "convert" data of anonymous users who then sign up

2009-10-13 Thread nabucosound

With Django sessions I think this can be done easily:

http://docs.djangoproject.com/en/dev/topics/http/sessions/

On Oct 13, 12:08 pm, Ned Batchelder  wrote:
> vpotter wrote:
> > Hm.. Using IP for this doesn't seem to be a good idea. What about
> > proxy users who will have proxy's IP or users of one subnetwork behind
> > the NAT?
> > I'd store some kind of id in user's cookies and then use it to detect
> > posts made by user anonymously
>
> Yes, cookies are the right way to identify anonymous users.  If you
> create a new User record for uncookied anonymous users, and then cookie
> them with the id of that User record, you'll be able to track their
> activity.  That User record will be associated with anything they do on
> the site.  If later they sign up and provide you with their identity,
> you simply record that on the User record, and nothing else has to be
> affected.
>
> --Ned.http://nedbatchelder.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: How to "convert" data of anonymous users who then sign up

2009-10-13 Thread Ned Batchelder

vpotter wrote:
> Hm.. Using IP for this doesn't seem to be a good idea. What about
> proxy users who will have proxy's IP or users of one subnetwork behind
> the NAT?
> I'd store some kind of id in user's cookies and then use it to detect
> posts made by user anonymously
>   
Yes, cookies are the right way to identify anonymous users.  If you 
create a new User record for uncookied anonymous users, and then cookie 
them with the id of that User record, you'll be able to track their 
activity.  That User record will be associated with anything they do on 
the site.  If later they sign up and provide you with their identity, 
you simply record that on the User record, and nothing else has to be 
affected.

--Ned.
http://nedbatchelder.com


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



Re: How to "convert" data of anonymous users who then sign up

2009-10-12 Thread vpotter

Hm.. Using IP for this doesn't seem to be a good idea. What about
proxy users who will have proxy's IP or users of one subnetwork behind
the NAT?
I'd store some kind of id in user's cookies and then use it to detect
posts made by user anonymously

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



Re: How to "convert" data of anonymous users who then sign up

2009-10-12 Thread buttman

My first guess would be to just use the IP of the user in place of a
user instance when saving objects as anonymous. Once they signup, give
the user owneship of all objects with the user's IP.

On Oct 12, 4:55 pm, Continuation  wrote:
> I'd like to let new users to do certain things, like submitting a
> forum post as an anonymous user.
>
> And then if the new user decides to sign up after submitting the post,
> I'd like to convert the data submitted while the user was till
> anonymous (like the forum post in this example) so that it now belongs
> to the newly created user account.
>
> What's the best way of doing this? Is there any django app that
> support such functionality?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



How to "convert" data of anonymous users who then sign up

2009-10-12 Thread Continuation

I'd like to let new users to do certain things, like submitting a
forum post as an anonymous user.

And then if the new user decides to sign up after submitting the post,
I'd like to convert the data submitted while the user was till
anonymous (like the forum post in this example) so that it now belongs
to the newly created user account.

What's the best way of doing this? Is there any django app that
support such functionality?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---