[Zope] zope imports into external scripts

Dieter Maurer dieter@handshake.de
Tue, 3 Jul 2001 21:45:25 +0200 (CEST)


Mate' Sztipanovits writes:
 > Do you know exactly what import command can i use to 
 > include the DTML functions in an external python script?
Not sure, I understand your question.

In an External Method, you can import any package/module
that is available at all.

If you want to create Zope DTML objects (site building, i.e. persistent),
you would import "OFS.DTMLMethod/DTMLDocument".

If you objects need not be persistent, you could
use "DocumentTemplate.DT_String".


Dieter