Re: [Zope] Help! Accessing product constructors methods programmatically

2000-12-03 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  Can anyone suggest an approach to this problem? Any relevant 
  documents I need to read?
I like to repeat my general remark (you find it several time
in the (searchable) list archiv ;-)):

   Whenever, you can do something with the Zope management
   interface, you can do it programmatically.

   Moreover, a look at the source of the Zope management
   pages (mostly DTML and mostly in the OFS/ and App/ subfolders
   of your distribution), will tell you how to do it.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Help! Accessing product constructors methods programmatically

2000-12-02 Thread Oliver Bleutgen

 Hello, Zopers--

 I'm fairly new at this, so I apologize if this is a dumb question.

 Anyway, I've been looking for a way to do a bulk upload of XML
 documents from a  local directory. So I need a method (either
 DTML or Python is fine with me) that would build a list of files and
 create an XML Document object from each one. I have tried a
 variety of different approaches, but I can't find a way to access the
 XMLDocument.add() method.

Have you looked at load_site.py? It is included in the zope-distribution
or can be found at http://www.zope.org/Members/itamar/load_site 

It doesn't do XMLDocuments, but I found it a great help in figuring
out how to inject a bunch of external files into zope. I guess you 
just have to change the relevant lines to create XMLDocuments instead
of DTML-ones.


cheers,
oliver







___
Zope maillist  -  [EMAIL PROTECTED]
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 )