About populate folders by external scripts.
Hi, I'm working in a Product (CMFBio) to store biological data as Plone content. To begin the database I need to populate a Plone Folder with a lot of these contents (> 10000) in a batch way. That's the reason to make a little script who load a big file and create the objects in a folder. I was looking information about it, but was difficult to me found something in the zope.org page. I make a form to upload a file, but I would like do it in the command line. Could you help me with some examples to do that? Thanks, Cristian. -- Lic. Cristian S. Rocha <crocha@dc.uba.ar> Departamento de Computación, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires.
Hi Christian, If you are using Archetypes there is a useful tool in the Plone collective called ATImportTool. This will allow you to import your content from a flat file. It can create folders on the fly or use existing ones. It can also be used to update content. It's only available through cvs checkout for now: http://cvs.sourceforge.net/viewcvs.py/collective/ATImportTool/ hth, Matt -----Original Message----- From: zope-dev-bounces@zope.org [mailto:zope-dev-bounces@zope.org]On Behalf Of Cristian S. Rocha Sent: Tuesday, August 10, 2004 6:16 PM To: zope-dev@zope.org Subject: [Zope-dev] About populate folders by external scripts. Hi, I'm working in a Product (CMFBio) to store biological data as Plone content. To begin the database I need to populate a Plone Folder with a lot of these contents (> 10000) in a batch way. That's the reason to make a little script who load a big file and create the objects in a folder. I was looking information about it, but was difficult to me found something in the zope.org page. I make a form to upload a file, but I would like do it in the command line. Could you help me with some examples to do that? Thanks, Cristian. -- Lic. Cristian S. Rocha <crocha@dc.uba.ar> Departamento de Computación, Facultad de Ciencias Exactas y Naturales, Universidad de Buenos Aires. _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Cristian S. Rocha wrote at 2004-8-10 19:15 -0300:
I'm working in a Product (CMFBio) to store biological data as Plone content. To begin the database I need to populate a Plone Folder with a lot of these contents (> 10000) in a batch way.
Ensure to use a "LargeFolder" and not a standard folder!
That's the reason to make a little script who load a big file and create the objects in a folder. I was looking information about it, but was difficult to me found something in the zope.org page. I make a form to upload a file, but I would like do it in the command line.
You can do it from the command line (you use techniques, you can also use for debugging -- search again). *BUT* it is far easier when you make it in an ExternalMethod. -- Dieter
On Thu, 12 Aug 2004 22:28:03 +0200 Cristian S. Rocha wrote at 2004-8-10 19:15 -0300:
I'm working in a Product (CMFBio) to store biological data as Plone content. To begin the database I need to populate a Plone Folder with a lot of these contents (> 10000) in a batch way.
Dieter Maurer <dieter@handshake.de> wrote:
Ensure to use a "LargeFolder" and not a standard folder!
Searching for a folder product that supports lots of objects, I found - BTreeFolder ( http://zope.org/Members/hathawsh/BTreeFolder ). But it seems a bit outdated: last maintenance 2001. - Harthaway's BTreeFolder2 ( http://hathawaymix.org/Software/BTreeFolder2 ) Much more up-to-date: 16 June 2004 - And I did look for a product called "LargeFolder", but found a single reference in a e-mail, but no Product to download: http://mail.zope.org/pipermail/zope-dev/2002-December/018315.html Does any body have a URL for LargeFolder Product ? Is it the most appropriate Folder to use or BTreeFolder2 is the way to go ? regards, Senra
Rodrigo Dias Arruda Senra wrote:
- BTreeFolder ( http://zope.org/Members/hathawsh/BTreeFolder ). But it seems a bit outdated: last maintenance 2001.
- Harthaway's BTreeFolder2 ( http://hathawaymix.org/Software/BTreeFolder2 ) Much more up-to-date: 16 June 2004
- And I did look for a product called "LargeFolder", but found a single reference in a e-mail, but no Product to download: http://mail.zope.org/pipermail/zope-dev/2002-December/018315.html
Does any body have a URL for LargeFolder Product ? Is it the most appropriate Folder to use or BTreeFolder2 is the way to go ?
All BTree based folders I know are based on Shanes second implementation BTreeFolder2. This includes Large Plone Folder and BaseBTreeFolder from Archetypes. Christian
Rodrigo Dias Arruda Senra wrote at 2004-8-13 09:32 -0300:
... Dieter Maurer <dieter@handshake.de> wrote:
Ensure to use a "LargeFolder" and not a standard folder!
Searching for a folder product that supports lots of objects, I found ...
Plone comes with a "BTreeFolder2" based "Large Plone Folder". -- Dieter
participants (5)
-
Christian Heimes -
Cristian S. Rocha -
Dieter Maurer -
Matt Shaw -
Rodrigo Dias Arruda Senra