Google Groups Home
Help | Sign in
Best practice for urls in emails?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Dramus  
View profile
 More options Oct 31 2006, 8:49 pm
From: "Dramus" <m...@robellard.com>
Date: Tue, 31 Oct 2006 17:49:42 -0800
Local: Tues, Oct 31 2006 8:49 pm
Subject: Best practice for urls in emails?
I am writing a turbogears app which sends emails to users when they are
accepted to join a moderated group. I want to enclose a link back to
the group in the e-mail. I am using turbomail to generate the e-mail
using a KID template, but when you use:

 tg.url('/groupname')

The e-mail encodes the link only as the relative part of the e-mail.

I thought that what I needed was to set server.webpath =
'http://mysite.com' in the config, but that breaks lots of other stuff
but fixes the e-mail.

You end up with things like GET: /http://mysite.com/groupname Not Found

I was looking through the groups and found some refernces to a ticket
that was closed as won't fix that seemed to also deal with this.

So since that was closed as won't fix is there a best practice for
doing this kind of thing?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Miles  
View profile
 More options Nov 1 2006, 8:02 am
From: Chris Miles <miles.ch...@gmail.com>
Date: Wed, 1 Nov 2006 13:02:22 +0000
Local: Wed, Nov 1 2006 8:02 am
Subject: Re: [TurboGears] Best practice for urls in emails?
Take a look at cherrypy.request.path for the full URL of the request.

Cheers
CM

On 1 Nov 2006, at 01:49, Dramus wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dramus  
View profile
 More options Nov 2 2006, 9:28 pm
From: "Dramus" <m...@robellard.com>
Date: Fri, 03 Nov 2006 02:28:38 -0000
Local: Thurs, Nov 2 2006 9:28 pm
Subject: Re: Best practice for urls in emails?
I think what you meant was cherrypy.request.base

you got me looking in the right direction though, Thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google