Thank you. So I will make a 30 dollar donation to the project.
But it still does not work.
This is what I get when I enter an email address to invite someone :
Traceback (most recent call last):
File gluon/restricted.py, line 181, in restricted
File
Dear Massimo,
Thank you very much. I'll send you the 30 dollars if it works :)
I have a problem. I cannot compile :
auth.settings.register_onvalidation.append(lambda form:
db.invitation(token=form.vars.email) or
form.errors.update({'email','not allowed'}))
Why do I need :
My mistake, should have been
form.errors.update({'email':'not allowed'})
By adding the error message it prevent the user from registering
(because he does not have a valid token).
You do not need to pay me for help in this list but I will not refuse
a donation. ;-)
Massimo
On Jun 20, 8:16 pm,
what solution you need?
Ovidio Marinho Falcao Neto
ovidio...@gmail.com
88269088
Paraiba-Brasil
2011/6/19 Dwayne dwaynebl...@gmail.com
Thank you pbreit. Maybe I can pay 30 dollars to the first person who finds
a solution. And the
Thank you pbreit. Maybe I can pay 30 dollars to the first person who finds a
solution. And the solution can be posted online obviously.
Everything is explained here :)
https://groups.google.com/d/topic/web2py/QZ11R6eYQdM/discussion
OK try this:
def invitation():
form = SQLFORM.factory(Field('email',requires=IS_EMAIL()))
if form.accepts(request):
db.invitation.insert(token = form.vars.email)
MESSAGE = 'click %s to register'
url = URL('user/register',host=request.env.http_host)
Can somebody please help me ? I would really want this to work.
I customized db.auth_user, as described in the book, to add a 'token'
field. I just added : Field('token', writable=False, readable=False,
default='').
Then, in the controllers, I modified default.py :
def user():
I should be able to take a look later today. Been out of town.
Thanks. But now the logout, login and register links no longer work.
Traceback (most recent call last):
File gluon/restricted.py, line 181, in restricted
File
If I put auth() instead of form, everybody can register again.
Dwayne
If I put auth() instead of form, everybody can register again.
Dwayne
And this is not what I want :( Can somebody help me ?
Dwayne
On Tuesday, May 31, 2011 8:31:25 PM UTC-7, encompass wrote:
Or interestID.
It's still in alpha, but it does invites too. :D
It's A conference management tool for the entire event life-cycle.
It's a shameless plug cause it runs on Web2py. :D
What's the URL?
Yes pbreit. This is what I am trying to do. I emphasize the fact that only
they can register to the entire website. I am not sure that Eventbrite can
help me.
I also would like to program it myself.
Dwayne
You could do an onvalidation that checks that the email address provided
and/or uuid is acceptable:
http://web2py.com/book/default/chapter/07#onvalidation
Brilliant !
Thanks a lot. I followed your advice. This is what I did :
def my_auth_processing(form):
if db(db.invitation.token==request /examples/global/vars/request.args(
0)):
return True
else :
return False
def user():
exposes:
Oops. For registration, you use this:
http://web2py.com/book/default/chapter/08?search=register_onvalidation
Thank you.
So I tried :
def my_auth_processing():
if db(db.invitation.token==request /examples/global/vars/request.args(
0)):
return True
else :
return False
auth.settings.register_onvalidation = [my_auth_processing]
But it does not work. Does my_auth_processing need
This is going to be a bit trickier that I thought. I think the link in the
email needs to deliver the uuid/token to a custom registration form.
This hack might work. In your user() function in default.py, add this line:
if request.args(0): form.vars.token = request.args(0)
Then the
Thank you Jonathan. I added the argument host='127.0.0.1:8000' to the URL.
I thank user570039 (
http://stackoverflow.com/questions/6087855/django-vs-pylons-vs-web2py-registration-invitation-events
).
Here is the final code, corrected from two typos (uuid instead of token)
:
# coding: utf8
On May 31, 2011, at 11:46 AM, Dwayne Blind wrote:
Thank you Jonathan. I added the argument host='127.0.0.1:8000' to the URL.
There's a separate port argument that you might want to use, rather than
including the port in the host. (Though in this case it doesn't make any
difference, I think.)
On 31 mai, 20:56, Jonathan Lundell jlund...@pobox.com wrote:
On May 31, 2011, at 11:46 AM, Dwayne Blind wrote:
Thank you Jonathan. I added the argument host='127.0.0.1:8000' to the URL.
There's a separate port argument that you might want to use, rather than
including the port in the host.
At the beginning, I was thinking of granting some permissions to the
registration page. Isn't that possible ?
Thanks for your help,
Dwayne
On 1 juin, 00:43, Dwayne Blind dwaynebl...@gmail.com wrote:
On 31 mai, 20:56, Jonathan Lundell jlund...@pobox.com wrote:
On May 31, 2011, at 11:46 AM,
Maybe we should take a step back and try to understand what you are doing?
You want to send out emails to some list of people? And include in that
email a link which brings them back to your web site where they, and only
they, can register for something?
If you are trying to learn how to
On 06/01/2011 04:51 AM, pbreit wrote:
Maybe we should take a step back and try to understand what you are
doing? You want to send out emails to some list of people? And include
in that email a link which brings them back to your web site where
they, and only they, can register for something?
25 matches
Mail list logo