-----Original Message----- From: Stuart 'Zen' Bishop [mailto:zen@cs.rmit.edu.au] Sent: Wednesday, October 06, 1999 9:23 PM To: Geir B Hansen Cc: zope@zope.org; Martijn Pieters Subject: Re: [Zope] Zcatalog confusion
On Wed, 6 Oct 1999, Geir B Hansen wrote:
manage_editCataloger('newscatalog')
I do not know where to go from there, though , because i still get an error :
Error Type: TypeError Error Value: not enough arguments; expected 3, got 2
The reason for this error is because of the way python methods work. In this case, you are using an *unbound* method, meaning a method that isn't bound to a particular object. Try: object.manage_editCataloger('newscatalog') Where 'object' is the CatalogAware object you want to change the Cataloger value on. You could also do: manage_editCataloger(object, 'newscatalog') -Michel