SiteAccess2, Zope 2.2.2, __no_before_traverse__
Hi all, What is the new way to apply the "__no_before_traverse__" using SiteAccess2 ? When I was younger, in SiteAccess1, I used to postfix my URL with this (ex : http://mysite:8080/__no_before_traverse__/manage ), so that SiteRoot did not apply ; this enabling to play with the management interface on a broken SiteAcces configuration... What is the "nowadays way to to this (TM)" ? Please help ! Thanx ! --- We are Micro$oft. You will be assimilated. Resistance is futile.
the new magic buzz word is : "_SUPPRESS_SITEROOT" et voila ! Olivier. ----- Original Message ----- From: "Olivier Deckmyn" <odeckmyn.list@teaser.fr> To: <zope@zope.org> Sent: Friday, October 06, 2000 3:16 PM Subject: [Zope] SiteAccess2, Zope 2.2.2, __no_before_traverse__
Hi all,
What is the new way to apply the "__no_before_traverse__" using SiteAccess2 ?
When I was younger, in SiteAccess1, I used to postfix my URL with this (ex : http://mysite:8080/__no_before_traverse__/manage ), so that SiteRoot did not apply ; this enabling to play with the management interface on a broken SiteAcces configuration...
What is the "nowadays way to to this (TM)" ?
Please help !
Thanx !
--- We are Micro$oft. You will be assimilated. Resistance is futile.
_______________________________________________ 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 )
From: Olivier Deckmyn <odeckmyn.list@teaser.fr>
What is the new way to apply the "__no_before_traverse__" using SiteAccess2
Two ways, and it's factored so that you can turn SiteAccess objects off more selectively. First, you can turn all SiteRoots or Access Rules in your site off by restarting Zope with environment variables SUPPRESS_SITEROOT and/or SUPPRESS_ACCESSRULE set. Second, you can insert _SUPPRESS_SITEROOT or _SUPPRESS_ACCESSRULE in a URL right after the name of a container that has one you want to suppress. You can include both, in either order, if a folder has both an Access Rule and a SiteRoot that you want to turn off. Cheers, Evan @ digicool & 4-am
Hi, I was working with zope and try to use the "-D" flag within it but a terrible thing happend when i was restarting the server: Starting Zope................................Traceback (innermost last): File "/usr/sbin/zope-z2", line 558, in ? exec "import "+MODULE in {} File "<string>", line 1, in ? File "/usr/lib/zope/lib/python/Zope/__init__.py", line 110, in ? DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName) File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 301, in __init__ self._pos, self._oid, tid = read_index( File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 1556, in read_index panic('%s has invalid transaction header at %s', name, pos) File "/usr/lib/zope/lib/python/ZODB/FileStorage.py", line 218, in panic raise CorruptedTransactionError, message ZODB.FileStorage.CorruptedTransactionError: /var/lib/zope/var/Data.fs has invalid transaction header at 46034131 ............................... failed. The problem is that it never start again :'''( so i'am nervous only thinking that i can loose all of my work, there is any way to fix that? Thanks, -- Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: nestor@engendro.com - WWW: http://www.engendro.com
I forgot: Zope version 2.2.0-1 (On a Debian Potato i386) Thanks, Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: nestor@engendro.com - WWW: http://www.engendro.com
Sorry for the spam. Well i was able to fix it, i read the mail list at http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687... and it tell that i can split the file at position 46034131 i do this: split --bytes=46034131 Data.fs cp xaa Data.fs i loose: 3089 bytes, however i don't know this correspond to. and starts zope, and everything goes OK. i make a final test and provide the "-D" option for Zope and everything comes OK, and better because the traceback is printed in the pages that shows an error. I think the problem was made when i install some products from the mk-zprod package. Well i am happy again :) Thanks, Nestor A. Diaz Ingeniero de Desarrollo Engendro.com - Comercio Electronico sobre Linux Email: nestor@engendro.com - WWW: http://www.engendro.com
participants (3)
-
Evan Simpson -
Nestor A. Diaz L. -
Olivier Deckmyn