Re: [Zope] ANNOUNCE: FAQ Tool sample Zope app.
I downloaded it to try it out. When I restarted Zope I got the FAQ entry in ControlPanel/Products, but it does not show up in the list of things that I can add to my folders. Is there something else I need to install to support Lever generated things? -- Robin Dunn robin@AllDunn.com http://AllDunn.com/robin/ http://AllDunn.com/wxPython/ Check it out! Try http://AllDunn.com/laughworks/ for a good laugh. -----Original Message----- From: Amos Latteier <amos@aracnet.com> To: zope@zope.org <zope@zope.org> Date: Saturday, February 27, 1999 12:52 PM Subject: [Zope] ANNOUNCE: FAQ Tool sample Zope app.
Hi Everyone:
As part of writing an article on Zope for WebReview, I've put together an example FAQ Tool for Zope. If you've seen Guido's FAQ Wizard then you know what the FAQ Tool is about.
You can try out the FAQ Tool online, and download it.
(Note: the example FAQ is not a real FAQ, please don't enter useful information into it. Hopefully, we'll get a real Zope FAQ online soon.)
One of the interesting things about this example is that it was built with the 'Lever' by creating a Product in the Control Panel and working from there. This is the first time that I've used the Lever and I have to say I like it. I think that this is the future of Zope Product authoring.
The Lever basically allows you to create a Zope Product through the web without any programming. And as a special bonus, the Lever *is* documented in the Zope Manager's Guide. In fact, that's how I learned how to use it ;-) I think that the Lever will be even cooler when Zope Classes are out, since then you will be able to make changes to your Product in the Control Panel, and all your instances will be updated.
Anyway enjoy, and send me your feedback.
-Amos
P.S. You may notice that the FAQ Tool is not searchable. When Zope gets searchability, then so will the FAQ Tool. I probably won't get around to adding searching to the FAQ Tool before that. However, the basic search indexing libraries are there in 1.10.2, and I do accept patches for those of you who can't wait ;-)
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
At 03:56 PM 2/27/99 -0800, Robin Dunn wrote:
I downloaded it to try it out. When I restarted Zope I got the FAQ entry in ControlPanel/Products, but it does not show up in the list of things that I can add to my folders. Is there something else I need to install to support Lever generated things?
No. It should work so long as you are using Zope 1.10.2 or later. I bet you are using Zope 1.9 since this is what happened to me when I tried installing it in Zope 1.9. I think the problem is due to the fact that it uses classes not available in 1.9 (ie DTML Methods, not Documents). But I'm not sure... -Amos
At 05:39 28-2-99 , Amos Latteier wrote:
At 03:56 PM 2/27/99 -0800, Robin Dunn wrote:
I downloaded it to try it out. When I restarted Zope I got the FAQ entry in ControlPanel/Products, but it does not show up in the list of things that I can add to my folders. Is there something else I need to install to support Lever generated things?
No. It should work so long as you are using Zope 1.10.2 or later. I bet you are using Zope 1.9 since this is what happened to me when I tried installing it in Zope 1.9. I think the problem is due to the fact that it uses classes not available in 1.9 (ie DTML Methods, not Documents). But I'm not sure...
No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this at home, running Win98, and I checked the source of the Product initialisation. When I twiddle with it a bit, swicth off the try/except errorhandling, I discovered that it is the product.dat file. Here is the traceback: Traceback (innermost last): File "C:\Program Files\Internet\Zope\MJ_New\serve.py", line 100, in ? ZopeHTTPServer.main(args) File "C:\Program Files\Internet\Zope\MJ_New\ZopeHTTPServer\ZopeHTTPServer.py", line 498, in main start(module_file,host,port,threading,env) File "C:\Program Files\Internet\Zope\MJ_New\ZopeHTTPServer\ZopeHTTPServer.py", line 436, in start set_published_module(module_file,BoboRequestHandler,env) File "C:\Program Files\Internet\Zope\MJ_New\ZopeHTTPServer\ZopeHTTPServer.py", line 432, in set_published_module __import__(name) # to catch problem modules right away File "C:\Program Files\Internet\Zope\MJ_New\lib\python\Main.py", line 103, in ? Bobobase=OFS.Application.open_bobobase() File "C:\Program Files\Internet\Zope\MJ_New\lib\python\OFS\Application.py", line 365, in open_bobobase install_products(app) File "C:\Program Files\Internet\Zope\MJ_New\lib\python\OFS\Application.py", line 480, in install_products App.Product.initializeProduct(product, product_name, package_dir, app) File "C:\Program Files\Internet\Zope\MJ_New\lib\python\App\Product.py", line 421, in initializeProduct meta=cPickle.Unpickler(f).load() File "C:\Program Files\Internet\Zope\MJ_New\lib\python\App\Product.py", line 370, in read while l > len(self._b) and not self._done: self._next() File "C:\Program Files\Internet\Zope\MJ_New\lib\python\App\Product.py", line 359, in _next l=self._c.flush() zlib.error: Error -5 while decompressing [] It looks like the Lever isn't platform independent. -- M.J. Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
At 08:33 PM 2/28/99 +0100, Martijn Pieters wrote:
No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this at home, running Win98, and I checked the source of the Product initialisation. When I twiddle with it a bit, swicth off the try/except errorhandling, I discovered that it is the product.dat file. Here is the traceback: ... It looks like the Lever isn't platform independent.
It certainly looks like you are having a problem, but since I developed to FAQ Tool under win32 and it works fine for me under Linux, I don't agree with you assessment of the problem. Would you please file a bug report in the collector including this traceback. This is getting deeper than I can easily troubleshoot. Thanks. -Amos
On 1 Mar 99, at 0:32, Amos Latteier wrote:
No, sorry Amos. I have the same problem under Zope 1.10.2. I tired this at home, running Win98, and I checked the source of the Product initialisation. When I twiddle with it a bit, swicth off the try/except errorhandling, I discovered that it is the product.dat file. Here is the traceback: ...
I don't get a traceback because I didn't "fiddle", the FAQ item shows up in the control panel, but is not in the Add drop-down. I'm running 1.10.2 on NT with ZServer. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax netmeeting: ils://ils.murkworks.com ICQ: 14856937
At 13:21 01/03/99 , Brad Clements wrote:
I don't get a traceback because I didn't "fiddle", the FAQ item shows up in the control panel, but is not in the Add drop-down.
I'm running 1.10.2 on NT with ZServer.
The 'fiddling' involves disbling the exception handling of the product initialisation. Normally, a 'Levered' product, that has been distributed, has a product.dat file. This file contains the compressed pickled reprensentation of the product, which basicly consists of other Zope objects, with a Principia Factory. When Zope can't uncompress and depickle the product.dat file, you only get to see that the Product is installed, but it doesn't contain anything (which a Levered Product actually should), and nothing else happens or can happen. If you want to know more on how to use the 'Lever', read up at http://www.zope.org/Documentation/Guides/ZMG/ZMG-HTML/ZMG.html#pgfId-986684 (Zope Manager's Guide, Creating Zoipe Products). When you disable the exception handling in initializeProduct in Product.py, and restart Zope, it will exit with the traceback I reported. I have reported this to DC with the Collector, but I used Win98. You are using WinNT, which is interesting.. Something goes wrong with decompressing the product.dat file on win32 platforms (Amos says he tested it succesfully on Linux). -- M.J. Pieters, Web Developer | ATMM http://www.atmm.nl | Tel: +31-35-6254545 Fax: +31-35-6254555 | mailto:mj@atmm.nl http://www.atmm.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------
participants (5)
-
Amos Latteier -
Brad Clements -
Martijn Pieters -
Martijn Pieters -
Robin Dunn