Compressing the zope database and remote updates..
Well, firstly I must say that Zope 2.0.0 is so far proving itself a wonderful system, quite refreshing in its ability to create stunning results from a bit of carefull work. One thing I would like to know, is there a method of 'compressing' the ZODB3 database (Data.fs from memory) - ie: making it forget all the old undo versions held internally, and reduce to the minimum required contents for the system as it currently is? Another idea I would love to see is a method of doing a minimum-content transfer from one system to another, ie: I have a running server (the main system) in one location, I have a slowish link to this, and run a copy of the zope system on my local devel machine to allow for fast changes. It would be great to be able to just transfer the minimum changes to the remove ZODB3 database through a net link, rather than compress, transfer, and uncompress the whole db.. I would think with all the versioning systems in place a process could be written to do this via the normal interfaces into the databases???? Anyone have any input on these two ideas? ------------------------------------------------------------ Stuart Woolford, stuartw@newmail.net Unix Consultant. Software Developer. Supra Club of New Zealand. ------------------------------------------------------------
Hi, I keep on running into this error: Debugging Notice Zope has encountered a problem publishing your object. Missing doc string at: http://zopesite/blah... Traceback (innermost last): File /Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 179, in publish File /Zope-2.0.0/lib/python/Zope/__init__.py, line 201, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 151, in publish File /Zope-2.0.0/lib/python/ZPublisher/BaseRequest.py, line 344, in traverse File /Zope-2.0.0/lib/python/ZPublisher/HTTPResponse.py, line 520, in debugError NotFound: (see above) What exactly is a "missing doc string"?? Anyone seen this before? The error arose when I tried to submit a form which has been produced by a call to HTMLFile from an external Python method. The form has worked before. Thanks, Chris
At 13:39 09/09/99 , Chris Allen wrote:
Hi,
I keep on running into this error:
Debugging Notice
Zope has encountered a problem publishing your object. Missing doc string at: http://zopesite/blah...
Traceback (innermost last): File /Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 179, in publish File /Zope-2.0.0/lib/python/Zope/__init__.py, line 201, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /Zope-2.0.0/lib/python/ZPublisher/Publish.py, line 151, in publish File /Zope-2.0.0/lib/python/ZPublisher/BaseRequest.py, line 344, in traverse File /Zope-2.0.0/lib/python/ZPublisher/HTTPResponse.py, line 520, in debugError NotFound: (see above)
What exactly is a "missing doc string"?? Anyone seen this before?
The error arose when I tried to submit a form which has been produced by a call to HTMLFile from an external Python method. The form has worked before.
A "doc string" is the python documentation string you can add to all your objects by placing a string in it's definition, stroed in it's __doc__ property. See your Python manuals for details. Zope will not publish an object unless it has one. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
At 13:07 09/09/99 , Stuart Woolford wrote:
Well, firstly I must say that Zope 2.0.0 is so far proving itself a wonderful system, quite refreshing in its ability to create stunning results from a bit of carefull work.
One thing I would like to know, is there a method of 'compressing' the ZODB3 database (Data.fs from memory) - ie: making it forget all the old undo versions held internally, and reduce to the minimum required contents for the system as it currently is?
Yup, just got to the Control Panel, click Databsae Management, fill in an age of objects you want to keep and click 'Pack'
Another idea I would love to see is a method of doing a minimum-content transfer from one system to another, ie: I have a running server (the main system) in one location, I have a slowish link to this, and run a copy of the zope system on my local devel machine to allow for fast changes. It would be great to be able to just transfer the minimum changes to the remove ZODB3 database through a net link, rather than compress, transfer, and uncompress the whole db.. I would think with all the versioning systems in place a process could be written to do this via the normal interfaces into the databases????
I believe that ZEO (Zope Enterprise Objects), a commercial product from Digital Creations does just such a thing. See Ken's email on the subject: http://www.zope.org/pipermail/zope/1999-September/009880.html If you want a simple staging/production server setup, with only actual changes going over the line, you'll have to write something yourself.. We'd be eager to test your product. =) -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (3)
-
Chris Allen -
Martijn Pieters -
Stuart Woolford