[Zope-CMF] Solution: Point of Publication
David Harvey (Hamish)
david.harvey@bristol.ac.uk
25 Apr 2002 21:40:58 +0100
On Wed, 2002-04-24 at 16:09, Florent Guillaume wrote:
> Hi,
>
> It could be argued that having the Redirect done inside the external
> method is not really the appropriate place from a logic/presentation
> point of view. I'd make moveToRep return a non-None value, for instance
> the path to the moved object, and contents_status_modify get the result
> from doActionFor and do the redirect.
That would certainly be neater, but if I understand the doActionFor code
in both DefaultWorkflow.py and DCWorkflow.py correctly, the return value
from any before or after scripts are discarded. The doActionFor methods
return nothing, too.
Hamish
--
David Harvey (aka Hamish)
Network Coordinator, FloodRiskNet
Research Assistant, Water and Environmental Management Research Centre
University of Bristol, Lunsford House, Cantock's Close, Bristol BS5 6BU
Tel: +44 (117) 9289768 Fax: +44 (117) 9289770
Email: david.harvey@bristol.ac.uk
GPG/PGP Key Fingerprint: 6F15 A1C7 342F 2F87 E2CC 176D 1072 8A5B 20E8
E497
WWW: http://www.cen.bris.ac.uk/civil/pgra/dph/dph.htm