[Zope-dev] Re: DTML<->Python confusion (RE: [Zope] How to make a script return rendered dtml)

2001-06-14 Thread Evan Simpson
Bjorn Stabell wrote: > Is it possible to append an object to the namespace? Isn't that what > dtml-with does? It does, but there's some magic involved (non-mapping objects have to be wrapped in an adaptor first) and it uses an interface that isn't available in a restricted code environment s

[Zope-dev] RE: DTML<->Python confusion (RE: [Zope] How to make a script return rendered dtml)

2001-06-13 Thread Bjorn Stabell
Wow, thanks Evan. I should've asked these questions a long time ago... From: Evan Simpson [mailto:[EMAIL PROTECTED]] > From: "Bjorn Stabell" <[EMAIL PROTECTED]> > > How do you do dtml-with and dtml-let in a Python script? (I.e. > > put something on the namespace) > > You can't. Scripts can us

[Zope-dev] Re: DTML<->Python confusion (RE: [Zope] How to make a script return rendered dtml)

2001-06-13 Thread Evan Simpson
From: "Bjorn Stabell" <[EMAIL PROTECTED]> > How do you do dtml-with and dtml-let in a Python script? (I.e. > put something on the namespace) You can't. Scripts can use the DTML namespace in the same way that Python expressions in DTML can, but that's it. On the other hand, you can create (and