> > Case A:
> >    return context.some_page()
> >
> > Case B:
> >    context.REQUEST.RESPONSE.redirect('some_page')
> >
> GREAT!!  Case B works perfectly (and it would have taken me forever to guess
> this solution).  Case A didn't work when written as
> 
> return context.deltest.htm()

Of course it didn't, there's no object called deltest and the object
that's not there certainly doesn't have a method called htm. Think
about Python syntax - the . delimits a class containment hierarchy.
Zope allows you to have the . in object names, which I disagree with,
so you have to use getattr(context, 'deltext.htm')() to get the actual
object.

-- 
Phillip Hutchings
http://www.sitharus.com/
[EMAIL PROTECTED] / [EMAIL PROTECTED]
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to