[Zope] error in addZSQLMethod.

J Cameron Cooper jccooper@jcameroncooper.com
Mon, 31 Mar 2003 18:49:05 -0600


>
>
>Thanks for the reply.I did what you suggested namely separate the
>arguments by spaces.However I still get the smae error.Heres what i
>wrote now
>
>context.manage_addZSQLMethod('selectname', title='selectname',
>connection_id='Oracle_database_connection',
> arguments='PROF_ID firstName middleName lastName email linkToWebpage
>degree
>officeNumber telephoneNumber', template='Select firstname from
>Professor')
>
>and here is the error i get
>
>Error Type: AttributeError
>Error Value: manage_addZSQLMethod
>  
>
Ah, now that's useful.

You need to get to the constructor first (they aren't global.) Try this:

context.manage_addProduct['ZSQLMethods'].manage_addZSQLMethod(...)

This is documented in the API docs for ObjectManager. See your Zope 
install's online help system for more details.

          --jcc