This is korea. I am a zope student. On studying I have two question.
Q1. How call the ZSQLMethod into script python.
Firrst I write the script python named 'myscript' and the ZSQLMethod named 'mySqlMethod'
# Example code:
# Import a standard function, and get the HTML request and response objects.
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
RESPONSE = request.RESPONSE
print val
return printed
How call the 'mySqlMethod'(ZSQLMethod) into 'myscript'(script python) and
how display the query results of ZSQL Method called into script python ?
I called mysqlMethod into the above myscript( val = context.mySqlMethod()).
But I failed.
<dtml-var "myScript()">
<dtml-var standard_html_footer>
myscript (script python)**************************************************
# Import a standard function, and get the HTML request and response objects.
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
RESPONSE = request.RESPONSE
valb = 200
list1.append(valb)
Above myscript return the list type data.
Then how display the returned list type data into the myDTMLMethod?
The question part is <dtml-var "myScript()">
But I failed.
How could I resolve thses questions?
Help me!!
Thank you very much.
--------------------------------------- �ų��� ����, �ݰ��� ģ��, �� ��� ���� �̰���! ��ǥ ���� �ް� ��Ż http://game.korea.com |
|
