Re: [Zope] Export fails

2007-08-10 Thread Christian Schaffer
Dieter Maurer schrieb:
 Christian Schaffer wrote at 2007-8-6 14:55 +0200:
   
 ...
 Unfortunately, the only content of the file was one line:
 ZEXP
 The file itself is only 20k of size.

 Is there something I missed?
 Is there probably a command line tool to do exports?
 

 All you can do via the ZMI, you can do in an interactive Python
 interpreter session -- however, it is unlikely that the result
 will be different.

 Export uses essentially the same mechanism which is used
 by the ZODB itself (persistent references are expanded, though, rather
 than stored as references). Especially, the export of an object
 should contain all objects referenced (directly or indirectly) by this 
 initial object.

 If this does not work in your case, then it may be necessary to
 debug the export process (to find out why it does not work).

   
Hi Dieter,

thanks for the reply.
I set the log levels to debug and got the following results in event.log:
2007-08-10T15:05:06 DEBUG txn.4 new transaction
--
2007-08-10T15:05:06 DEBUG ZODB.ExportImport broken reference for oid
'\x00\x00\x00\x00\x00\x00\x00\x06'
Traceback (most recent call last):
  File /ra1/roteliste_2007-08/lib/python/ZODB/ExportImport.py, line
45, in exportFile
p, serial = load(oid, self._version)
  File
C:\Programme\RoteListeIN\Products\RoteListeIN\CdromStorage\CdromStorage.py,
line 673, in load
TypeError: exceptions must be classes, instances, or strings
(deprecated), not NoneType
--
2007-08-10T15:05:07 DEBUG txn.4 commit

Unfortunately, from the logs I really cannot see what to do. Does anyone
know? Any help is appreciated.
Thanks in advance.
Best regards,
Chris

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-09 Thread Dieter Maurer
Christian Schaffer wrote at 2007-8-6 14:55 +0200:
 ...
Unfortunately, the only content of the file was one line:
ZEXP
The file itself is only 20k of size.

Is there something I missed?
Is there probably a command line tool to do exports?

All you can do via the ZMI, you can do in an interactive Python
interpreter session -- however, it is unlikely that the result
will be different.

Export uses essentially the same mechanism which is used
by the ZODB itself (persistent references are expanded, though, rather
than stored as references). Especially, the export of an object
should contain all objects referenced (directly or indirectly) by this 
initial object.

If this does not work in your case, then it may be necessary to
debug the export process (to find out why it does not work).



-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-07 Thread Andreas Jung



--On 7. August 2007 08:50:20 +0200 Christian Schaffer 
[EMAIL PROTECTED] wrote:



Hello Andreas,
hello list,


Hello Andreas,
hi list,

unfortunately, the zexp-file does not contain any of the children
objects.

How will you know that when your import fails? And export operation
always exports always the object including its whole subtree (if the
object is an folder). So basically I would not believe that what
you're saying.

The object, I?d like to export is a folder. At least, it shows up with
the corresponding icon. In the navigation frame on the left, the folder
is visible with a + in front of the symbol. Clicking the + uncovers
a list of sub-objects.
Puzzling is that selecting the folder or one of the sub-objects by
clicking it, the content is viewed at once, not the manage_workspace
view.


Re-importing the zexp-file leads to the following error:

Site Error
An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: 'NoneType' object has no attribute 'id'


You must provide the _full_ traceback.

I hope this is the traceback you requested:
--
2007-08-07T08:40:13 ERROR Zope.SiteErrorLog
http://genesis:9080/manage_importObject
Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module OFS.ObjectManager, line 586, in manage_importObject
Module OFS.ObjectManager, line 605, in _importObjectFromFile
Module OFS.CopySupport, line 476, in _verifyObjectPaste
AttributeError: 'NoneType' object has no attribute 'id'


Which Zope version are you running?
Which 3rd-party products are you runngin?
Are you sure that the source and destination system have *IDENTICAL*
software versions (same Zope, same Python, same 3rd-party products)?

-aj



pgps2I2mJz73v.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-07 Thread Andreas Jung



--On 7. August 2007 09:10:54 +0200 Christian Schaffer 
[EMAIL PROTECTED] wrote:



Andreas Jung schrieb: The version information shows:
Zope 2.9.4-final, python 2.4.3, sunos5
I tried to re-import the renamed export file to the same server, so it?s
the same version.

I?m not aware of any 3rd-party components. The Products subtree in
Control Panel does not show anything unusual.



No idea, never seen that.

-aj

pgptKpS3TLkNn.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Export fails

2007-08-06 Thread Christian Schaffer
Hi list,

I have Zope installed using the following config:
Zope 2.9.4-final, python 2.4.3, sunos5

I´d like to export an object which has several children. Using the web
management console, I navigate to the root folder and checked the
checkbox for the object to export. After that, I clicked the
export/import button. The object ID showed up correctly, so I clicked
the export button, wanting to leave the export file on the server.
The export seemed to work. At least, I found a file on my server.
Unfortunately, the only content of the file was one line:
ZEXP
The file itself is only 20k of size.

Is there something I missed?
Is there probably a command line tool to do exports?

Thanks in advance.
Best regards,
Chris

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-06 Thread Christian Schaffer
Hi again,

sorry - forgot to mention:
I actually wanted to export the object and all its children recursively
so that I have a complete backup of the content. The use case is to move
the content from one server to another.

Thanks once again for helping and best regards,
Chris



Andreas Jung schrieb:


 --On 6. August 2007 14:55:35 +0200 Christian Schaffer
 [EMAIL PROTECTED] wrote:

 Hi list,

 I have Zope installed using the following config:
 Zope 2.9.4-final, python 2.4.3, sunos5

 I?d like to export an object which has several children. Using the web
 management console, I navigate to the root folder and checked the
 checkbox for the object to export. After that, I clicked the
 export/import button. The object ID showed up correctly, so I clicked
 the export button, wanting to leave the export file on the server.
 The export seemed to work. At least, I found a file on my server.
 Unfortunately, the only content of the file was one line:
 ZEXP
 The file itself is only 20k of size.

 And? What did you except? What should it contain? It contains a binary
 format - to be exactly: the Python pickle of the selected object.

 -aj
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-06 Thread Andreas Jung



--On 6. August 2007 14:55:35 +0200 Christian Schaffer 
[EMAIL PROTECTED] wrote:



Hi list,

I have Zope installed using the following config:
Zope 2.9.4-final, python 2.4.3, sunos5

I´d like to export an object which has several children. Using the web
management console, I navigate to the root folder and checked the
checkbox for the object to export. After that, I clicked the
export/import button. The object ID showed up correctly, so I clicked
the export button, wanting to leave the export file on the server.
The export seemed to work. At least, I found a file on my server.
Unfortunately, the only content of the file was one line:
ZEXP
The file itself is only 20k of size.


And? What did you except? What should it contain? It contains a binary 
format - to be exactly: the Python pickle of the selected object.


-aj

pgpWPBpRLFllC.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-06 Thread Andreas Jung



--On 6. August 2007 15:08:16 +0200 Christian Schaffer 
[EMAIL PROTECTED] wrote:



Hi again,

sorry - forgot to mention:
I actually wanted to export the object and all its children recursively
so that I have a complete backup of the content. The use case is to move
the content from one server to another.

Thanks once again for helping and best regards,



And? The zexp format is a binary format and can be re-imported into another
Zope instance (running the identical Zope version). Where is the problem?

-aj

pgp35g8maCTOE.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-06 Thread Christian Schaffer
Hello Andreas,
hi list,

unfortunately, the zexp-file does not contain any of the children
objects. Re-importing the zexp-file leads to the following error:

Site Error
An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: 'NoneType' object has no attribute 'id'

Sorry for asking, but I?m quite new to Zope.
Thanks once again and best regards,
Chris



Andreas Jung schrieb:


 --On 6. August 2007 15:08:16 +0200 Christian Schaffer
 [EMAIL PROTECTED] wrote:

 Hi again,

 sorry - forgot to mention:
 I actually wanted to export the object and all its children recursively
 so that I have a complete backup of the content. The use case is to move
 the content from one server to another.

 Thanks once again for helping and best regards,


 And? The zexp format is a binary format and can be re-imported into
 another
 Zope instance (running the identical Zope version). Where is the problem?

 -aj
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-06 Thread Andreas Jung



--On 6. August 2007 15:52:32 +0200 Christian Schaffer 
[EMAIL PROTECTED] wrote:



Hello Andreas,
hi list,

unfortunately, the zexp-file does not contain any of the children
objects.


How will you know that when your import fails? And export operation
always exports always the object including its whole subtree (if the object 
is an folder). So basically I would not believe that what you're saying.



Re-importing the zexp-file leads to the following error:

Site Error
An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: 'NoneType' object has no attribute 'id'



You must provide the _full_ traceback.

-aj

pgpsyk9YX7ZkS.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Export fails

2007-08-06 Thread Jonathan


- Original Message - 
From: Christian Schaffer [EMAIL PROTECTED]

Subject: Re: [Zope] Export fails


unfortunately, the zexp-file does not contain any of the children
objects. Re-importing the zexp-file leads to the following error:



We need some more information as to the type of object you are trying to 
export (eg. folder, ZClass instance, custom product instance, etc).




Site Error
An error was encountered while publishing this resource.
Error Type: AttributeError
Error Value: 'NoneType' object has no attribute 'id'


Include the full traceback.


Jonathan 


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )