[Zope] RE: [Zope-dev] Getting a printout of my Zope Application
Rik Hoekstra
RikHoekstra@bigfoot.com
Tue, 14 Dec 1999 16:52:24 +0100
>
>
> > -----Original Message-----
> > From: Rob Page [mailto:rob.page@digicool.com]
> > Sent: Monday, December 13, 1999 9:36 PM
> > To: 'Clayton Miller'
> > Cc: 'zope@zope.org'
> > Subject: [Zope] RE: [Zope-dev] Getting a printout of my Zope
> > Application
> >
> >
> > Hi Clayton:
> >
> > > I have been wondering (while developing my first Zope
> > > application), is there
> > > a way to get a printout of all of my objects' source?
> > > I just feel better having a hard copy of my entire
> > > application lying around.
> >
> > You could Export the site (or Folder) from the Import/Export tab into
> > XML.
>
> And then you could feed that XML right back IN to Zope and render it
> real pertty with a style sheet.
>
> Sick.
>
Hm, except that when I import an exported product back into ZOpe it fails
with the following traceback:
Zope Error
Zope has encountered an error while publishing this resource.
Error Type: TypeError
Error Value: ('not enough arguments; expected 2, got 1', , ())
<snip>
Traceback (innermost last):
File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 214,
in publish_module
File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 179,
in publish
File C:\Program Files\WebSite\lib\python\Zope\__init__.py, line 202, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 165,
in publish
File C:\Program Files\WebSite\lib\python\ZPublisher\mapply.py, line 160,
in mapply
(Object: manage_importObject)
File C:\Program Files\WebSite\lib\python\ZPublisher\Publish.py, line 102,
in call_object
(Object: manage_importObject)
File C:\Program Files\WebSite\lib\python\OFS\ObjectManager.py, line 478,
in manage_importObject
(Object: ElementWithAttributes)
File C:\Program Files\WebSite\lib\python\ZODB\ExportImport.py, line 216,
in importFile
File C:\Program Files\WebSite\lib\python\ZODB\ExportImport.py, line 318,
in importXML
File C:\Program Files\WebSite\lib\python\ZODB\ExportImport.py, line 283,
in importFile
TypeError: (see above)
Rik