At 09:30 AM 12/28/98 -0500, you wrote:
Unfortunately Zope doesn't work with my favourite browser (Opera), so I
I see that Opera doesnt seem to like forms with an ENCTYPE specified -- is this what you are referring to? (e.g. I can add Folders with Opera, but it seems to hang waiting for a response when adding documents, images or files which have file upload fields. Interestingly, the document _does_ get created in Zope - I'll look into this).
Actually, I get an error the minute I go into the management screens stating "The server requested a login authentication method that Opera does not yet support." That's with Opera v3.5
That's odd - I'm using 3.2 on NT and have no problems with authentication :(
Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
At 10:05 AM 12/30/98 -0500, you wrote:
Unfortunately Zope doesn't work with my favourite browser (Opera), so I
stating "The server requested a login authentication method that Opera does not yet support." That's with Opera v3.5
That's odd - I'm using 3.2 on NT and have no problems with authentication :(
I will revert to 3.21 to see if this is fixed.
As to my other problem with the error on trying to add objects while in IE, I did a complete deletion of ZOPE and a complete re-install. I still get the URL error on trying to add any object.
Any light you can shed would be greatly appreciated!
I would like to use ZPublisher alone (having had some success with Bobo) under linux.
I can't find installation instructions for ZPublisher. I've got the whole Zope thing up and running from the source, but I'm not sure what to do if I just want to do Bobo things....
Could some kind soul point me at the FM?
Cheers and Thanks
Chris Wright
Chris> I would like to use ZPublisher alone (having had some success Chris> with Bobo) under linux.
Chris> I can't find installation instructions for ZPublisher. I've got Chris> the whole Zope thing up and running from the source, but I'm not Chris> sure what to do if I just want to do Bobo things....
Chris> Could some kind soul point me at the FM?
Not sure there is one. Here's what I've been doing.
1. Run ZopeHTTPServer from the Zope-1.9.0-src directory using the Python script
import ZopeHTTPServer, sys, os try: open('srv.pid', 'w').write('%d'%os.getpid()) ZopeHTTPServer.main(("-h 127.0.0.2", "-p 8043", "/usr/local/lib/automatrix/python/z.py", "BOBO_DEBUG_MODE=1", "SCRIPT_NAME=", "SERVER_NAME=concerts.calendar.com", "SERVER_PORT=8080")) except KeyboardInterrupt: sys.exit(255)
This works okay except the except clause doesn't ever catch keyboard interrupts. I eventually gave up and now use "kill `cat srv.pid`" to zap the server. z.py is the module that's published. A watcher shell script then restarts it. I had to create an unwritable file named "core" to prevent the core dumps that the inevitably occur if the server has processed any requests.
2. I built a run Apache (1.3.3) with both mod_proxy and mod_rewrite enabled. I then use a number of rewrite rules to smash a couple related CGI scripts into a single URI called /search. That is then proxied to the Z Publisher using
RewriteRule ^/search$ http://127.0.0.2:8043/search [P]
"search" is a published function in z.py.
Thanks to Andreas Kostyrka and Amos Latteier for developing the plumbing in ZopeHTTPServer necessary to do this.
Any ideas about the core dumps? I will admit that for the time being I have been more concerned with getting things going than investigating the problem so I have even tried to debug it. One thing I did notice is that it doesn't seem to drop a core file if the server hasn't handled any requests.
Skip Montanaro | Mojam: "Uniting the World of Music" http://www.mojam.com/ skip@calendar.com | Musi-Cal: http://concerts.calendar.com/ 518-372-5583
At 04:27 PM 1/6/99 +1100, Chris Wright wrote:
I would like to use ZPublisher alone (having had some success with Bobo) under linux.
I can't find installation instructions for ZPublisher. I've got the whole Zope thing up and running from the source, but I'm not sure what to do if I just want to do Bobo things....
Could some kind soul point me at the FM?
If you've used Bobo before you can continue in the same way you have, with the exception that instead of calling 'cgi_module_publisher.publish_module' to publish a Python module, you call 'ZPublisher.Publish.publish_module'. You may need to update your publishing machinery to call the correct publishing function.
We're working on better documentation and packaging to allow you to use Zope components such as ZPublisher separately.
If you haven't used Bobo before and you want to find out about ZPublisher I recommend these two tutorials which were originally for Bobo, but have been updated for Zope:
http://www.zope.org/Documentation/Reference/ObjectPublishingIntro http://www.zope.org/Documentation/Reference/Trinkets
OK, so now you understand object publishing, and have a Python module that you want to publish with ZPublisher. What next?
In order to use ZPublisher you need to decide on a publisher--PCGI, ZopeHTTPServer, CGI, etc. Probably the easiest way to go is to use ZopeHTTPServer. Just invoke it on the command-line like this:
ZopeHTTPServer.py myPublishedModule
That's it.
For more information on how to use ZopeHTTPServer see its doc string. Or read the doc string on the web:
http://www.zope.org/Documentation/Reference/ZopeHTTPServer
PCGI works the same way it always has. Setting up PCGI is more complex, so I'll just give a pointer to the docs here:
http://www.zope.org/Documentation/Reference/PCGI
If you are interested in plain old CGI, we do not currently have a blessed method of publishing. However, I hope to change that soon--keep your eyes peeled.
If you really want to do CGI right now, all you basically need to do is write a CGI program that looks like this:
from ZPublisher.Publish import publish_module publish_module("MyPublishedModule")
You can get fancier, but that's the essential part right there.
Hope this helps.
-Amos