csv files for download

2008-10-04 Thread Bobby Roberts
I need to be able to offer a client "click to download" functionality on their website. Generating the data to provide to them is not an issue but I want them to be able to click a button and have the response be sent to a csv file which they are prompted to download. Can someone point me in the r

empty csv file attachments

2008-09-24 Thread Bobby Roberts
hi group. I'm new to python but a veteran at programming. This one has me stumped. I have a simple contact form which the user fills out. The email is sent to the site user as well and it is delivered with the content in the body of the email as well in nice order. I have modified my code to a

empty csv file attachments

2008-09-24 Thread Bobby Roberts
hi group. I'm new to python but a veteran at programming. This one has me stumped. I have a simple contact form which the user fills out. The email is sent to the site user as well and it is delivered with the content in the body of the email as well in nice order. I have modified my code to a

Re: finding domain name

2008-09-23 Thread Bobby Roberts
On Sep 23, 1:23 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Bobby Roberts a écrit : > > > hi group.  I'm new to python and need some help and hope you can > > answer this question.  I have a situation in my code where i need to > > create a file on the

Re: finding domain name

2008-09-23 Thread Bobby Roberts
On Sep 23, 9:10 am, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > Bobby Roberts wrote: > >> Depends on the technology/web framework. If you use WSGI, you should use > >> something like: > > >> host_name = environ.get("HTTP_HOST", None) or envi

Re: finding domain name

2008-09-23 Thread Bobby Roberts
On Sep 23, 8:54 am, "Joe Riopel" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 8:37 AM, Bobby Roberts <[EMAIL PROTECTED]> wrote: > > hi group.  I'm new to python and need some help and hope you can > > answer this question.  I have a situation in my

Re: finding domain name

2008-09-23 Thread Bobby Roberts
> Depends on the technology/web framework. If you use WSGI, you should use > something like: > > host_name = environ.get("HTTP_HOST", None) or environ["SERVER_NAME"] > > -- Gerhard Yeah i already tried environ("SERVER_NAME") but get a key error when i do. -- http://mail.python.org/mailman/listin

finding domain name

2008-09-23 Thread Bobby Roberts
hi group. I'm new to python and need some help and hope you can answer this question. I have a situation in my code where i need to create a file on the server and write to it. That's not a problem if i hard code the path. However, the domain name needs to be dynamic so it is picked up automati