Re: Temporary access to link in django

2007-09-12 Thread Przemek Gawronski

> take 5 minutes out to create a temp user model and table

You're suggesting to extend the User model? 

Something like:

class TempUser(models.Model):
user = models.ForeignKey(User)
...

Przemek
-- 
AIKIDO TANREN DOJO  -   Poland - Warsaw - Mokotow - Ursynow - Natolin
info:   http://tanren.pl/   phone:+4850151   email:[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Temporary access to link in django

2007-09-12 Thread Kenneth Gonsalves


On 12-Sep-07, at 1:51 PM, Przemek Gawronski wrote:

> My main objection here is the pollution of user table. There  
> (hopefully)
> will be quiet a few registrations. Since there is no need to have any
> information about the visitor, after it'll be deleted after a month.

take 5 minutes out to create a temp user model and table

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Temporary access to link in django

2007-09-12 Thread Przemek Gawronski

> I think you may be complicating things unnecesarily by not creating a
> user.

Well, maybe that's why I'm asking for suggestions :)

> Why not look at creating a temporary user group, and maybe adding an
> additional check at login if this user is a temporary user, they
> cannot login 1 month after the date created of the user?

My main objection here is the pollution of user table. There (hopefully)
will be quiet a few registrations. Since there is no need to have any
information about the visitor, after it'll be deleted after a month.

Przemek
-- 
AIKIDO TANREN DOJO  -   Poland - Warsaw - Mokotow - Ursynow - Natolin
info:   http://tanren.pl/   phone:+4850151   email:[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Temporary access to link in django

2007-09-12 Thread MikeHowarth

I think you may be complicating things unnecesarily by not creating a
user.

Why not look at creating a temporary user group, and maybe adding an
additional check at login if this user is a temporary user, they
cannot login 1 month after the date created of the user?

On Sep 12, 7:50 am, Przemek Gawronski <[EMAIL PROTECTED]>
wrote:
> Hi, I want to give a temporary access to link to a visitor but I don't
> want to create an user account for him but give access only to him. In
> general the scenario is to look more/less like this:
>
> 1 - visitor fills a form with some data, including an email field and a
> password,
> 2 - data from the form is saved for processing,
> 3 - email is sent to this visitor with a generated link, so he can view
> his data (and possibly follow up info) any time he wishes but has to
> confirm the password when entering the link,
> 4 - if there is any new info for him, a email will be send to notify,
> 5 - after a month the record is deleted and the link doesn't work
> any more and there should be no trace of it.
>
> How could I do that avoiding the creation and later deletion of a new
> user for each visitor?
>
> Thanks for suggestions and help
>
> Przemek
> --
> AIKIDO TANREN DOJO  -   Poland - Warsaw - Mokotow - Ursynow - Natolin
> info:  http://tanren.pl/  phone:+4850151   email:[EMAIL PROTECTED]


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Temporary access to link in django

2007-09-12 Thread Przemek Gawronski

Hi, I want to give a temporary access to link to a visitor but I don't
want to create an user account for him but give access only to him. In
general the scenario is to look more/less like this:

1 - visitor fills a form with some data, including an email field and a
password,
2 - data from the form is saved for processing,
3 - email is sent to this visitor with a generated link, so he can view
his data (and possibly follow up info) any time he wishes but has to
confirm the password when entering the link,
4 - if there is any new info for him, a email will be send to notify,
5 - after a month the record is deleted and the link doesn't work
any more and there should be no trace of it.

How could I do that avoiding the creation and later deletion of a new
user for each visitor?

Thanks for suggestions and help

Przemek
-- 
AIKIDO TANREN DOJO  -   Poland - Warsaw - Mokotow - Ursynow - Natolin
info:   http://tanren.pl/   phone:+4850151   email:[EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---