plone で単純な外部メソッドを正しく動作させるのに問題があります。私の拡張機能フォルダーには、以下の blast_query.py コードという名前の python スクリプトがあります。
def print_query(self, x):
print(x)
私の外部メソッドは次のようになります:
Id: run_blast_query
題名:
モジュール名: blast_query
関数名: print_query
ZMI の私の 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
# Insert data that was passed from the form
query=request.query
context.print_query(context,query)
フォームから関数にクエリを渡したいだけなので、正しく機能していることがわかります。
何か案は?