Re: [Zope-dev] Question about import code

2001-05-11 Thread Dieter Maurer
Shane Hathaway writes: Fred Wilson Horch wrote: Importing multiple objects simultaneously could result in a fair amount of confusion... Can you elaborate? When you import a folder, for example, it imports the folder and all objects in it. If there are some objects in the

Re: [Zope-dev] Question about import code

2001-05-10 Thread Shane Hathaway
Fred Wilson Horch wrote: The problem that happens on import is a KeyError on line 194 of this bit of code: lines 192-197 of lib/python/ZODB/ExportImport.py ooid=h[:8] if oids: oid=oids[ooid] if type(oid) is

Re: [Zope-dev] Question about import code

2001-05-10 Thread Fred Wilson Horch
Hi Shane, You wrote: Importing multiple objects simultaneously could result in a fair amount of confusion... Can you elaborate? When you import a folder, for example, it imports the folder and all objects in it. Why is it any different to import two unrelated objects? Would it be better

Re: [Zope-dev] Question about import code

2001-05-10 Thread Shane Hathaway
Fred Wilson Horch wrote: You wrote: Importing multiple objects simultaneously could result in a fair amount of confusion... Can you elaborate? When you import a folder, for example, it imports the folder and all objects in it. If there are some objects in the folder that have

[Zope-dev] Question about import code

2001-05-05 Thread Fred Wilson Horch
Hi folks, I have hacked on the export code to allow you to export more than one object at a time. Now I'm trying to grok the import code. Can someone help me figure out what's going on? I have an export file in XML format that looks like this: ?xml version=1.0? ZopeData record id=5602