[Zope] Python -> ZopePython cheat sheet?
Casey Duncan
casey@zope.com
Tue, 5 Nov 2002 12:48:01 -0500
You might benefit from the following:
http://www.zope.org/Members/4am/XXXPythonScripts
hth,
-Casey
On Tuesday 05 November 2002 12:17 pm, Skip Montanaro wrote:
> >> Is there some way I can make dir() and type() available to scrip=
ts
> >> for development purposes and make sys importable once again?
>=20
> Thanks for the external method tutorial. Worked like a charm.
>=20
> Ausum> As Chris said, you need an external method (due to security
> Ausum> concerns).=20
>=20
> But why can't Zope let me decide what my security tradeoffs are? It's =
fine
> that I can't execute any of
>=20
> dir(foo)
> type(foo)
> foo.__class__
>=20
> by default, but why can't there be some simple way to say, "I'm debuggi=
ng
> and I know what the risks are. Give me an interpreter that isn't cripp=
led."
> Adding dir() and type() back in were trivial edits, but making foo.__cl=
ass__
> available is more difficult than just messing with checkAttrName.
> (Thankfully, an external method worked here.)
>=20
> --=20
> Skip Montanaro - skip@pobox.com
> http://www.mojam.com/
> http://www.musi-cal.com/
>=20
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -=20
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>=20