[Zope] Question about MySQL queries in Python Scripts

alankirk alankirk@genie.co.uk
Sun, 25 Feb 2001 10:42:39 -0000


This is a multi-part message in MIME format.

------=_NextPart_000_0010_01C09F17.ACC17E40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I've written a few python scripts that use some sql queries to a mysql =
database. I have a script that can access the database and get =
information ok but i have a sript that tries to insert data to the =
database, but when i try to run it, i get a zope error that mentions =
Unauthorized: query.

Does anyone know why this is and how to get round it?

Cheers=20

Alan

------=_NextPart_000_0010_01C09F17.ACC17E40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've written a few python scripts that =
use some sql=20
queries to a mysql database. I have a script that can access the =
database and=20
get information ok but i have a sript that tries to insert data to the =
database,=20
but when i try to run it, i get a zope error that mentions Unauthorized: =

query.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Does anyone know why this is and how to =
get round=20
it?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cheers </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Alan</FONT></DIV></BODY></HTML>

------=_NextPart_000_0010_01C09F17.ACC17E40--