Thanks Martjin. That did the trick :-)

Martijn Pieters wrote:
> On 9/15/06, Bjorn Tillenius <[EMAIL PROTECTED]> wrote:
>> This is not true. The decorator also returns the action, meaning that
>> self.handle_edit_action will be an Action, not a method.
> 
> You are absolutely right, and *bingo*.  Martin Aspelli was right all
> along, and I haven't been paying attention.
> 
> Stephan, the following will work:
> 
>  @formlib.form.action(u'Apply&Close')
>  def handle_applyAndClose(self, action, data):
>      """apply form changes and close form."""
>      # handle_edit_action is an Action. Call it's success method.
>      self.handle_edit_action.success(data)
>      self.request.response.redirect(getAbsoluteURL(
>          self.context.__parent__,self.request))
> 


-- 
__________________________________________________________________
S t e f a n     F i n k | [EMAIL PROTECTED] Internet Informationssysteme GmbH
EMail:   [EMAIL PROTECTED] | Wandalenweg 5,  20097 Hamburg,   Germany
T/F: 040/23 88 09-00/29 | http://cms-mit-typo3.de   http://work.de
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to