Its me again, asking stupid questions I havent found answers within the docs :( Is it possible to extend the <dtml-in "sub.objectValues()"> <h2><dtml-var title></h2> <dtml-var sequence-item> </dtml-in> code a little, so that will only display objects ending in "_de" or "_en" ? Is there a kind of "content-negotiation" like I use it with Apache and plain html files: index.html.de index.html.en and apache picks out the correct one depending on the users browser prefs - is that possible with zope too? Greetings kai -- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
Hi Kai, Kai Hofmann wrote:
Its me again, asking stupid questions I havent found answers within the docs :(
Is it possible to extend the
<dtml-in "sub.objectValues()"> <h2><dtml-var title></h2> <dtml-var sequence-item> </dtml-in>
code a little, so that will only display objects ending in "_de" or "_en" ?
Is there a kind of "content-negotiation" like I use it with Apache and plain html files:
index.html.de index.html.en
I'm working on it ;) Basically you can do it with a folder-like object and subobjects naming 'de','en' and so on. The default method of the folder (index_html) would then select the right subobject depending on the accept-language header and availibility. If you want to do it with a python method, you can have a look at the algorithm in my vary-tag for the selection. (http://www.zope.org/Members/tino/) HTH Tino Wildenhain
Hi, I am a little in trouble, because calling /zope on our server now results in the following error message: Zope Error Zope has encountered an error while publishing this resource. AttributeError Sorry, a Zope error occurred. Traceback (innermost last): File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/src/www/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/src/www/Zope-2.3.0-src/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: index_html) File /home/src/www/Zope-2.3.0- src/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: index_html) File /home/src/www/Zope-2.3.0- src/lib/python/Shared/DC/Scripts/Bindings.py, line 337, in __render_with_namespace__ (Object: zope_quick_start) File /home/src/www/Zope-2.3.0- src/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: zope_quick_start) File /home/src/www/Zope-2.3.0-src/lib/python/App/special_dtml.py, line 236, in _exec (Object: zope_quick_start) AttributeError: _v_blocks Zope works perfectly before I did 2 things: 1) Shutting down our server to move it into another room - inlc. startup 2) Installing Tino Wildenhain VaryTag removing VaryTag does not help. Can someone help me with fixing this problem - because I don't want to install Zope another time and lost all work I did in the last days. Thanks in advance Kai Hofmann -- Institute of Shipping Economics and Logiostics http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen / Germany fax:+49 421 22096-55
On Tue, 24 Apr 2001, Kai Hofmann wrote:
Zope works perfectly before I did 2 things: 1) Shutting down our server to move it into another room - inlc. startup 2) Installing Tino Wildenhain VaryTag
removing VaryTag does not help.
Can someone help me with fixing this problem - because I don't want to install Zope another time and lost all work I did in the last days.
You won't lost your work - just install Zope and copy your old Data.fs over new one. Then start Zope. Hope this helps. Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Tue, 24 Apr 2001, Kai Hofmann wrote:
Zope works perfectly before I did 2 things: 1) Shutting down our server to move it into another room - inlc. startup 2) Installing Tino Wildenhain VaryTag
removing VaryTag does not help.
Can someone help me with fixing this problem - because I don't want to install Zope another time and lost all work I did in the last days.
You won't lost your work - just install Zope and copy your old Data.fs over new one. Then start Zope. Hope this helps.
Sorry this doesn't help, because at it seem the installation of VaryTag has also broken Data.fs. I installes Zope 2.3.1 which works until I copy back my old Data.fs OR install VaryTag again!!! Why does this happen? Anny hints how to repair the Data.fs ??? Thanks Kai -- Institute of Shipping Economics and Logiostics http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen / Germany fax:+49 421 22096-55
http://www.zope.org/Members/itamar/CorruptedZODB On Wed, 25 Apr 2001, Kai Hofmann wrote:
On Tue, 24 Apr 2001, Kai Hofmann wrote:
Zope works perfectly before I did 2 things: 1) Shutting down our server to move it into another room - inlc. startup 2) Installing Tino Wildenhain VaryTag
removing VaryTag does not help.
Can someone help me with fixing this problem - because I don't want to install Zope another time and lost all work I did in the last days.
You won't lost your work - just install Zope and copy your old Data.fs over new one. Then start Zope. Hope this helps.
Sorry this doesn't help, because at it seem the installation of VaryTag has also broken Data.fs. I installes Zope 2.3.1 which works until I copy back my old Data.fs OR install VaryTag again!!!
Why does this happen? Anny hints how to repair the Data.fs ???
Oleg. ---- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
Hi Kai, this is strange. I've tested the vary-tag with all Zope versions so far I came accross. Last test a couple minutes ago with 2.3.2b1. I doupt the error is directly related to the VaryTag. However, what other products do you have installed? Did you make a copy of your Data.fs before installing the vary-tag? Try a clean zope install, copy your Data.fs over and try again. Please report anything you might experience to me Thank you! Tino --On Dienstag, 24. April 2001 13:01 +0200 Kai Hofmann <hofmann@isl.org> wrote:
Hi,
I am a little in trouble, because calling /zope on our server now results in the following error message:
Zope Error
Zope has encountered an error while publishing this resource.
AttributeError
Sorry, a Zope error occurred.
Traceback (innermost last): File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/src/www/Zope-2.3.0-src/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: index_html) File /home/src/www/Zope-2.3.0-src/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: index_html) File /home/src/www/Zope-2.3.0-src/lib/python/OFS/DTMLMethod.py, line 189, in __call__ (Object: index_html) File /home/src/www/Zope-2.3.0- src/lib/python/DocumentTemplate/DT_String.py, line 538, in __call__ (Object: index_html) File /home/src/www/Zope-2.3.0- src/lib/python/Shared/DC/Scripts/Bindings.py, line 337, in __render_with_namespace__ (Object: zope_quick_start) File /home/src/www/Zope-2.3.0- src/lib/python/Shared/DC/Scripts/Bindings.py, line 353, in _bindAndExec (Object: zope_quick_start) File /home/src/www/Zope-2.3.0-src/lib/python/App/special_dtml.py, line 236, in _exec (Object: zope_quick_start) AttributeError: _v_blocks
Zope works perfectly before I did 2 things: 1) Shutting down our server to move it into another room - inlc. startup 2) Installing Tino Wildenhain VaryTag
removing VaryTag does not help.
Can someone help me with fixing this problem - because I don't want to install Zope another time and lost all work I did in the last days.
Thanks in advance
Kai Hofmann
-- Institute of Shipping Economics and Logiostics http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen / Germany fax:+49 421 22096-55
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi,
I'm working on it ;) Basically you can do it with a folder-like object and subobjects naming 'de','en' and so on. The default method of the folder (index_html) would then select the right subobject depending on the accept-language header and availibility. If you want to do it with a python method, you can have a look at the algorithm in my vary-tag for the selection. (http://www.zope.org/Members/tino/)
ist schon etwas her - ich hab Dein VaryTag jetzt mal testen wollen - aber das zerschiesst mir sowohl zope 2.3.0 als auch 2.3.1 - danach kann man nichtmal mehr die einstiegsseite /zope/ aufrufen (nach installation) - Die Datenbasis in Data.fs kann ich auch nicht uebernehmen - ne neue installation laeuft dann auch nicht. Anny hints??? Gruss Kai -- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
Hi Kai, ich habe es durch Zufall gesehen. Nachvollziehen kann ich es jedoch auch nicht, weil das Vary-Tag auch nichts schlimmes macht. Es ist in weiten Teilen sogar ziemlich identisch zum mime-tag, was von Zope mitgeliefert wird. Es gab bisher einen Fall von Unverträglichkeit, der reportet wurde und da war auch ein anderes Produkt, was vorher installiert worden war, Schuld daran. Wie auch immer; natürlich ist es nicht auszuschließen, dass ein Fehler drin sein könnte. Ich brauche aber mehr Info über die Bedingungen, damit ich es nachvollziehen kann. Ich sollte bei der Installation hinzuschreiben, was eigentlich bei jeder Installation von Software zu tun ist: Sicherheitskopien! Zope speichert ja zum Glück alles in einer handlichen Datei (per Voreinstellung), sodass man nur das Data.fs sichern muß. Ich hoffe, ich kann dir irgendwie helfen. Gruß Tino --On Mittwoch, 25. April 2001 13:06 +0200 Kai Hofmann <hofmann@isl.org> wrote:
Hi,
I'm working on it ;) Basically you can do it with a folder-like object and subobjects naming 'de','en' and so on. The default method of the folder (index_html) would then select the right subobject depending on the accept-language header and availibility. If you want to do it with a python method, you can have a look at the algorithm in my vary-tag for the selection. (http://www.zope.org/Members/tino/)
ist schon etwas her - ich hab Dein VaryTag jetzt mal testen wollen - aber das zerschiesst mir sowohl zope 2.3.0 als auch 2.3.1 - danach kann man nichtmal mehr die einstiegsseite /zope/ aufrufen (nach installation) - Die Datenbasis in Data.fs kann ich auch nicht uebernehmen - ne neue installation laeuft dann auch nicht. Anny hints???
Gruss
Kai
-- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
Sorry english speaking folks, this was never meant to be sent to the list. Regards Tino --On Mittwoch, 25. April 2001 15:59 +0200 Tino Wildenhain <tino@wildenhain.de> wrote:
Hi Kai,
ich habe es durch Zufall gesehen. Nachvollziehen kann ich es jedoch auch nicht, weil das Vary-Tag auch nichts schlimmes macht. Es ist in weiten Teilen sogar ziemlich identisch zum mime-tag, was von Zope mitgeliefert wird. Es gab bisher einen Fall von Unverträglichkeit, der reportet wurde und da war auch ein anderes Produkt, was vorher installiert worden war, Schuld daran. Wie auch immer; natürlich ist es nicht auszuschließen, dass ein Fehler drin sein könnte. Ich brauche aber mehr Info über die Bedingungen, damit ich es nachvollziehen kann.
Ich sollte bei der Installation hinzuschreiben, was eigentlich bei jeder Installation von Software zu tun ist: Sicherheitskopien!
Zope speichert ja zum Glück alles in einer handlichen Datei (per Voreinstellung), sodass man nur das Data.fs sichern muß.
Ich hoffe, ich kann dir irgendwie helfen.
Gruß Tino
--On Mittwoch, 25. April 2001 13:06 +0200 Kai Hofmann <hofmann@isl.org> wrote:
Hi,
I'm working on it ;) Basically you can do it with a folder-like object and subobjects naming 'de','en' and so on. The default method of the folder (index_html) would then select the right subobject depending on the accept-language header and availibility. If you want to do it with a python method, you can have a look at the algorithm in my vary-tag for the selection. (http://www.zope.org/Members/tino/)
ist schon etwas her - ich hab Dein VaryTag jetzt mal testen wollen - aber das zerschiesst mir sowohl zope 2.3.0 als auch 2.3.1 - danach kann man nichtmal mehr die einstiegsseite /zope/ aufrufen (nach installation) - Die Datenbasis in Data.fs kann ich auch nicht uebernehmen - ne neue installation laeuft dann auch nicht. Anny hints???
Gruss
Kai
-- Institut für Seeverkehrswirtschaft und Logistik http://www.isl.org/ Dipl.-Inform. Kai Hofmann mailto:hofmann@isl.org Universitaetsallee GW1 Block A phone:+49 421 22096-83 D-28359 Bremen fax:+49 421 22096-55
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Kai Hofmann -
Oleg Broytmann -
Tino Wildenhain