[Zope] External Method to dtml Method

Tom Deprez tom.deprez@uz.kuleuven.ac.be
Tue, 08 Feb 2000 17:41:05 +0100


Hi,

Can somebody help me with translating of Jon Udell's External Method
(Calendar-tag example) to a dtml method?

-----

def editCalendarProperty(self,REQUEST,RESPONSE):
  if ( self.hasProperty(REQUEST['prop']) ):
    self.manage_changeProperties({ REQUEST['prop'] : REQUEST['propval'] })
  else:
    self.manage_addProperty(REQUEST['prop'], REQUEST['propval'], 'string')
  
  return REQUEST.RESPONSE.redirect(REQUEST['BASE2'])

------

Thanks in advance!

Tom