zope imports into external scripts
Dieter or anyone, Do you know exactly what import command can i use to include the DTML functions in an external python script? thanks --mate' -----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Dieter Maurer Sent: Monday, July 02, 2001 1:51 PM To: sztipam@vuse.vanderbilt.edu Cc: zope@zope.org Subject: Re: [Zope] python script imports Mate' Sztipanovits writes:
Does anyone know what python objects we can import in our Zope python scripts? The same you can use from DTML (--> DTML reference).
I think, you will find a HowTo on zope.org how to make additional modules available. The mailing list archives, too, contain some threads about this possibility. Dieter _______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
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
participants (2)
-
Dieter Maurer -
Mate' Sztipanovits