[triangle-zpug] proxy role for a portal_catalog call

Geoff Davis geoff at geoffdavis.net
Tue Apr 18 23:08:35 CEST 2006


On Tue, 2006-04-18 at 16:44 -0400, Edmund Moseley wrote:
> My code looks like this:
> 
> ### begin getAllEvents.py ###
> '''
> Method to retrieve ALL events - use proxy in .metadata file such that
> get events that user may not have permission
> '''
> def getEventTypes(self):
>     results = self.portal_catalog.searchResults(Type = 'FPGEvent')
>     print "RESULTS: %s" %(results)
>     return results
> 
> ### begin getAllEvents.py.metadata ###
> [default]
> title = Get All Events
> proxy = Manager

Get rid of the "def getEventTypes(self)" in getAllEvents.py and put in
the appropriate headers for a python script (e.g. parameters, etc). See

http://www.plope.com/Books/2_7Edition/BasicScripting.stx




More information about the triangle-zpug mailing list