Python -- CGI -- Take SQL database, make it download in CSV



I currently have a cgi-bin which I use to authenticate users against a
SQL database, which holds info about them, and their login info.

I would like to have the 'admin' section take part of the table and put
it in CSV and allow them to download it, somehow making it so that the
'members' cannot download it.

How it authenticates an admin --
Check User/pass
if correct:
check if-member:
print html-for-members
check if-admin:
print html-for-admins
if incorrect:
print "enter correct creds"


So I would like to have a link in the html-for-admins, that could
re-auth them, and if it's correct allow a download of a csv file of
most of the sql table (I'd like to exclude the md5's ;) )

Does anyone have any ideas on how to do this?

Alex

.



Relevant Pages

  • Re: Macros for Firefox on Fedora Core 5
    ... On Friday 21 July 2006 12:28, Erich Carlson wrote: ... a web page, enter the login info, download a file from the web page, ...
    (Fedora)
  • Macros for Firefox on Fedora Core 5
    ... I'm looking for a method to record keystrokes to create macros to access ... a web page, enter the login info, download a file from the web page, ...
    (Fedora)
  • Re: IconShock
    ... got a response and the login info. ... I would strongly suggest selecting the DVD delivery option ... there are 181 files to download ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: TestKing 70-315 practice tests ??!!
    ... If you do I would appreciate a lot if you could email me the tests doc ...
    (microsoft.public.cert.exam.mcad)