Re: [Zope] RESPONSE.redirect not working
Actually, that is exactly what is happening. It's the current URL with the contents of login_html rendered. I changed it to the following and it worked: <dtml-unless pyCheckSession> <dtml-return expr="1"> </dtml-unless> Thanks again for your help! -Andrew On May 23, 2006, at 5/23/2006 5:02 PMMDT, Jo Meder wrote:
Am 24.05.2006, 00:57 Uhr schriebte Andrew Hedges <andrew@clearwired.com>:
<dtml-unless pyCheckSession> <dtml-return login_html> </dtml-unless>
Are you sure you're seeing the redirect there and not just the login page rendered for the address you were originally accessing?
Just wondering...
Jo.
I am trying to set up a zeo client on one machine and a zeo server on another machine. I get the following messages in zeo.log (on the zeo server machine): 2006-05-24T08:42:04 INFO ZEO.StorageServer (8610) StorageServer created RW with storages: 1:RW:/apps/zeo1/var/Data.fs ------ 2006-05-24T08:42:04 INFO ZEO.zrpc (8610) listening on ('', 8100) So it looks like the zeo server is running ok & listing on port 8100. On the zeo client machine I have the following entries in zope.conf: <zodb_db main> # Main FileStorage database <filestorage> path $INSTANCE/var/Data.fs </filestorage> mount-point / </zodb_db> <zodb_db zeo1> mount-point /Test/TestData # ZODB cache, in number of objects cache-size 5000 <zeoclient> server 192.168.123.1:8100 storage 1 name zeostorage var /apps/zeo1/var # ZEO client cache, in bytes cache-size 20MB # Uncomment to have a persistent disk cache client zeo1 </zeoclient> </zodb_db> (192.168.123.1 is the IP address of the server on my LAN) When I run zope on the zeo client & check the 'zeo1' database in the ControlPanel I get the following traceback: Traceback (innermost last): Module ZPublisher.Publish, line 106, in publish Module ZPublisher.BaseRequest, line 323, in traverse Module App.ApplicationManager, line 122, in __bobo_traverse__ Module App.ApplicationManager, line 113, in __getitem__ Module Zope2.Startup.datatypes, line 280, in getDatabase Module Zope2.Startup.datatypes, line 178, in open Module Zope2.Startup.datatypes, line 175, in createDB Module ZODB.config, line 97, in open Module ZODB.config, line 155, in open Module ZEO.ClientStorage, line 312, in __init__ Module ZEO.cache, line 107, in __init__ Module ZEO.cache, line 774, in __init__ IOError: [Errno 2] No such file or directory: '/apps/zeo1/var/zeo1-1.zec' Why is the zeo client looking for '/apps/zeo1/var/zeo1-1.zec'? How do I get the zeo client to point at the zeo-created Data.fs which resides in /apps/zeo1/var on the machine at 192.168.123.1?Zope 2.9.2 is running on the zeo client. Zope is not running on the server (just zeo from the Zope 2.9.2 installation tarball)Any and all help appreciated!Jonathan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 24 May 2006, at 14:16, Jonathan wrote:
When I run zope on the zeo client & check the 'zeo1' database in the ControlPanel I get the following traceback:
Traceback (innermost last): Module ZPublisher.Publish, line 106, in publish Module ZPublisher.BaseRequest, line 323, in traverse Module App.ApplicationManager, line 122, in __bobo_traverse__ Module App.ApplicationManager, line 113, in __getitem__ Module Zope2.Startup.datatypes, line 280, in getDatabase Module Zope2.Startup.datatypes, line 178, in open Module Zope2.Startup.datatypes, line 175, in createDB Module ZODB.config, line 97, in open Module ZODB.config, line 155, in open Module ZEO.ClientStorage, line 312, in __init__ Module ZEO.cache, line 107, in __init__ Module ZEO.cache, line 774, in __init__ IOError: [Errno 2] No such file or directory: '/apps/zeo1/var/ zeo1-1.zec' Why is the zeo client looking for '/apps/zeo1/var/zeo1-1.zec'? How do I get the zeo client to point at the zeo-created Data.fs which resides in /apps/zeo1/var on the machine at 192.168.123.1?Zope 2.9.2 is running on the zeo client. Zope is not running on the server (just zeo from the Zope 2.9.2 installation tarball)Any and all help appreciated!Jonathan
It is attempting to create the persistent cache file, which resides in $INSTANCE/var/XXX. Does the path /apps/zeo1/var/ exist and does the user Zope runs as have permissions to write into that directory? jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEdGzDRAx5nvEhZLIRAv0xAJ48h1AA/zzYkJBTNVi7IKT59zqwFACgozGr qSY1Yho7wtA0h/Vpu+c58mE= =/0yH -----END PGP SIGNATURE-----
That did the trick! (I had created a /apps/zeo1 directory on the server machine, but I did not have a matching directory on the client machine to hold the persistent cache file) Thanks very much! Jonathan ----- Original Message ----- From: "Jens Vagelpohl" <jens@dataflake.org> To: "[Zope] List Mailing" <zope@zope.org> Sent: Wednesday, May 24, 2006 10:25 AM Subject: Re: [Zope] zope.conf Zeo question
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 24 May 2006, at 14:16, Jonathan wrote:
When I run zope on the zeo client & check the 'zeo1' database in the ControlPanel I get the following traceback:
Traceback (innermost last): Module ZPublisher.Publish, line 106, in publish Module ZPublisher.BaseRequest, line 323, in traverse Module App.ApplicationManager, line 122, in __bobo_traverse__ Module App.ApplicationManager, line 113, in __getitem__ Module Zope2.Startup.datatypes, line 280, in getDatabase Module Zope2.Startup.datatypes, line 178, in open Module Zope2.Startup.datatypes, line 175, in createDB Module ZODB.config, line 97, in open Module ZODB.config, line 155, in open Module ZEO.ClientStorage, line 312, in __init__ Module ZEO.cache, line 107, in __init__ Module ZEO.cache, line 774, in __init__ IOError: [Errno 2] No such file or directory: '/apps/zeo1/var/ zeo1-1.zec' Why is the zeo client looking for '/apps/zeo1/var/zeo1-1.zec'? How do I get the zeo client to point at the zeo-created Data.fs which resides in /apps/zeo1/var on the machine at 192.168.123.1?Zope 2.9.2 is running on the zeo client. Zope is not running on the server (just zeo from the Zope 2.9.2 installation tarball)Any and all help appreciated!Jonathan
It is attempting to create the persistent cache file, which resides in $INSTANCE/var/XXX. Does the path /apps/zeo1/var/ exist and does the user Zope runs as have permissions to write into that directory?
jens
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin)
iD8DBQFEdGzDRAx5nvEhZLIRAv0xAJ48h1AA/zzYkJBTNVi7IKT59zqwFACgozGr qSY1Yho7wtA0h/Vpu+c58mE= =/0yH -----END 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 )
participants (3)
-
Andrew Hedges -
Jens Vagelpohl -
Jonathan