Re: [Zope] Export fails

2007-08-06 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-06 Thread Christian Schaffer
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'

Thanks so much for your patience and for helping me.
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 )


[Zope] Fwd: [ANN] Grok-Workshop with Martijn Faassen

2007-08-06 Thread Uli Fouquet
In case anybody who's interested is not subscribed to zope-announce...


 Forwarded Message 
From: Uli Fouquet <[EMAIL PROTECTED]>
To: grok-dev <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: [ANN] Grok-Workshop with Martijn Faassen
Date: Mon, 06 Aug 2007 17:49:29 +0200

The Zope User Group Rhineland in collaboration with the German Zope User
Group (DZUG) is happy to announce a Grok workshop with Martijn Faassen,
well known inventor of Grok.

The workshop will take place on 25th and 26th of August at the FrOSCon
conference at the "Fachhochschule Bonn-Rhein-Sieg" (university of
applied sciences) in St. Augustin near Cologne, Germany.

It will provide a practical introduction into Grok, the thing, that
makes Zope 3 even usable for cavemen.

The number of participants is limited to twenty persons. Therefore quick
registration is highly recommended.

The workshop fee is 20 EUR (10 EUR for DZUG members) plus 5 EUR for
FrOSCon admittance.

All about the workshop:
http://www.zope.de/grok-workshop

To the registration:
http://www.zope.de/redaktion/rzug-rheinland/froscon-2007/anmeldung-zum-grok-workshop/

More about the FrOSCon:
http://www.froscon.de

More about Grok:
http://grok.zope.org/

Hope to see you there,

-- 
Uli


___
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 )


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 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: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 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] Re: having a dtml-var as arguments of a python script

2007-08-06 Thread Andreas Jung



--On 3. August 2007 12:45:47 -0400 Tres Seaver <[EMAIL PROTECTED]> 
wrote:





-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Jung wrote:


--On 3. August 2007 17:15:30 +0200 Martin Krallinger
<[EMAIL PROTECTED]>  wrote:




Obviously this will work:

  


You can also just do::

   

and set the "Namespace" binding on the "Bindings" tab of the script to
'_", which would allow the script to the DTML namespace directly, e.g.::

  x = _['bd_abs']


Evil DTML magic...another reason why we should hide DTML from mortal
Zope developers :->

Andreas



pgpkGlbusDwpP.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
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 )


[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 )