I'm sending an email with a link back to an edit page on SQLFORM.grid like
this:
ticket = db.ticket(ticketId)
subject = 'Ticket %s - %s' % (ticket.ticketId, ticket.summary)
user = db.auth_user(ticket.assignedId)
to = user.email
message = '<html>%s has assigned to %s to you.<br /><br />-----<br
/><br />%s</html>' % (auth.user.first_name, A('SideboardHR Ticket %s' %
(ticket.ticketId), _href=URL('maintenance','tickets',
args=['edit','ticket',ticket.ticketId], host=True,scheme=True)),
ticket.description)
mail.send(to=[to],subject=subject,message=message)
When I click on the generated link it get an alert saying 'not authorized'
regardless of whether or not I'm already logged in or not.
How can I setup my link so it will take me there once I'm logged in?
-Jim
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.