[Zope] Testing for and/or avoiding acquisition
Paavo Parkkinen
pparkkin@verso.st.jyu.fi
Wed, 9 Jul 2003 12:01:41 +0300
On ke, 09.07.2003 at 09:37 +0100, Phil Bradbury wrote:
> Is it possible to check ONLY the container folder for the existence of =
the
> required 'content.html' file and if it does not exist to use the
> 'no-content.html' file from above? If so, how is it done?
if 'content.html' not in context.objectIds():
response.redirect('no-content.html')
else:
response.redirect('content.html')
I would have used 'return context.content.html()', but I just realized,
that I have no idea, how the '.' in 'content.html' is interpreted.
--=20
paavo.
"joskus voi t=E4=E4 meno k=E4yd=E4 ahdistavaksi
kun on t=E4=E4ll=E4 muodostunut tavaksi
muuttaa jokaisen el=E4m=E4n arvo rahaksi"