[Zope] index_html always seems to exist

martin f krafft madduck@madduck.net
Tue, 27 May 2003 08:28:42 +0200


--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

also sprach Peter Bengtsson <mail@peterbe.com> [2003.05.27.0145 +0200]:
> file =3D 'index_html'
> base =3D getattr(context, 'aq_base', context)
> if not hasattr(base, file):

doesn't work in over-the-web scripts since aq_base is not
accessible.

--=20
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
=20
keyserver problems? http://keyserver.kjsl.com/~jharris/keyserver.html
get my key here: http://madduck.net/me/gpg/publickey
=20
all of you that believe in telekinetics, raise my hand!

--/04w6evG8XlLl3ft
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+0wWaIgvIgzMMSnURAh7wAJ9GxCsKSolCETWKyZqjalDYTObThgCg6IPQ
CjJf/cdICL/y7FgOvc5KEKc=
=qAYo
-----END PGP SIGNATURE-----

--/04w6evG8XlLl3ft--