[Zope3-dev] Scripting Zope (was Re: [Zope-CMF] is there a way to massupdate memberdata?)

Chris Withers chrisw@nipltd.com
Mon, 20 Jan 2003 15:08:53 +0000


Alan Runyan wrote:
>>Is protected and can not be reached with a mere script
> 
> yes. because it *is* a mere script.  this is why Zope3 should
> not have any "through the web" scripting interface or if it does
> it should come with a mechanism for people to "Do what even
> God should not be able to do" (or whatever Evan called it)
> because people just dont *get* that TTW scripting is a convience.
> It is not how Zope is intended to function.

I'm hoping this isn't the case for Zope 3. I want to be able to do everything 
"TTW" that I can with file system code. Is that going to be possible?

> I ran into this mental block for a long time.  Once you start coding
> at the Python filesystem level.. everything will start making sense.

...yeah, but most people who use Plone (and even just plain Zope) don't want to 
go through the impedence of learning todo that. Hence, most Apps can be written 
using just Python Scripts and Page Templates authored via WebDAV or 
ExternalEditor...

> The ZMI really gives people a false world view.. Out of the gate
> people should be able to have a interactive prompt hooked up
> to the ZODB so they can script it from there instead of always
> resorting to the ZMI.

Nice idea :-) how would it work?

>>I of course can use an external script that uses the second method. But
> 
> this
> 
>>is which is ugly and clumsy.
> 
> why is it ugly?  why is it clumsy?

You have to create a ZODB object of type 'External Method' just to usea script 
you've already written. That was one of the major criticisms of Zope before TTW 
Python Scripts came along and one which I strongly agree with. A less 
fundamental problem is that external methods are old and don't have the nice 
bindings interfaces so you have to get everything via Acquisition, which doesn't 
always work...

cheers,

Chris