[Zope] My never-ending aquisition problem (calling ZSQL from PythonScript)

Tom Smith tom@othermedia.com
Tue, 6 Nov 2001 10:39:30 +0000


I'm having severe problems calling a ZSQL query from a Script from a 
form.

MyFolder
	create_article_sql(params)	(ZSQLMethod)
	create					(PythonScript)
	
	MySubFolder
		get_article_form 		(DTMLMethod)


In "create_article_sql" I create a record then select that record to 
return.
In "get_article_form" I have <form action="create" ... etc (This should 
resolve to "/MyFolder/MySubFolder/create" shouldn't it?)

In "create" I have...

results = context.create_article_sql(params)
return results

But all I ever get is a Not Found error. I don't get a Not Found error 
if in "create" I just return 1.... So the "create" script is not finding 
the "create_article_sql" ZSQL Method, even though it is in the same 
folder (though being called from a sub-folder)

Can anyone help please?

ta

tom

--
tom smith | tom@othermedia.com
http://www.othermedia.com/blog
3rd Floor, The Pavilion, Newhams Row, London, SE1 3UZ
0207 089 5959