tags:

views:

63

answers:

1

I'm having trouble getting a simple external methods in plone working correctly. In my extensions folder I have a python script named blast_query.py code below:

def print_query(self, x):
    print(x)

my external methods looks like:

Id: run_blast_query

Title:

Module Name: blast_query

Function Name: print_query

My python script in the ZMI looks like:

#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)

I just want to pass the query from the form to the function so i know i have it working correctly.

Any ideas?

A: 

You should call your external method by id:

context.run_blast_query(context,query)
Alex M