Re: [Zope] SiteAcess (Debian Fix)
I have submitted this bug to the Zope Bug system. Ciao! -- "Duct tape is like the force. It has a light side, and a dark side, and it holds the universe together ..." -- Carl Zwanzig The Doctor What: http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] SiteAcess (Debian Fix)
The bug (number 76658) is listed on Debian's site: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=76658&repeatmerged=yes The fix (I had forgotten what it was) is stupidly simple: mkdir /usr/lib/zope/lib/python/Products/SiteAccess/help A better fix is to fix ProductContext.py is lib/Python/App. I have an attached patch, but it doesn't seem like it's the right way to fix it. BTW: While you're making empty directories, you should probably make: /usr/lib/zope/lib/python/Products/PlugIns/help Because in the Debian package, it has the same problem. Ciao! -- "Duct tape is like the force. It has a light side, and a dark side, and it holds the universe together ..." -- Carl Zwanzig The Doctor What: Un-Humble http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC --- ProductContext.py.orig Fri Nov 17 11:05:00 2000 +++ ProductContext.py Fri Nov 17 11:05:06 2000 @@ -309,38 +309,33 @@ """ help=self.getProductHelp() path=os.path.join(Globals.package_home(self.__pack.__dict__), directory) -try: - -# test to see if nothing has changed since last registration -if help.lastRegistered is not None and \ - help.lastRegistered >= DateTime(os.stat(path)[stat.ST_MTIME]): -return -help.lastRegistered=DateTime() -if clear: -for id in help.objectIds('Help Topic'): -help._delObject(id) - -for file in os.listdir(path): -ext=os.path.splitext(file)[1] -ext=string.lower(ext) -if ext in ('.dtml',): -ht=HelpTopic.DTMLTopic(file, '', os.path.join(path,file)) -self.registerHelpTopic(file, ht) -elif ext in ('.html', '.htm'): -ht=HelpTopic.TextTopic(file, '', os.path.join(path,file)) -self.registerHelpTopic(file, ht) -elif ext in ('.stx', '.txt'): -title=string.split(open(os.path.join(path,file),'rb').readline(), ':')[0] -ht=HelpTopic.STXTopic(file, title, os.path.join(path, file)) -self.registerHelpTopic(file, ht) -elif ext in ('.jpg', '.gif', '.png'): -ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file)) -self.registerHelpTopic(file, ht) -elif ext in ('.py',): -ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file)) -self.registerHelpTopic(file, ht) -except OSError, (errno, text): -from zLOG import LOG, WARNING -LOG("Zope", WARNING, text + ": " + path) - +# test to see if nothing has changed since last registration +if help.lastRegistered is not None and \ +help.lastRegistered >= DateTime(os.stat(path)[stat.ST_MTIME]): +return +help.lastRegistered=DateTime() + +if clear: +for id in help.objectIds('Help Topic'): +help._delObject(id) + +for file in os.listdir(path): +ext=os.path.splitext(file)[1] +ext=string.lower(ext) +if ext in ('.dtml',): +ht=HelpTopic.DTMLTopic(file, '', os.path.join(path,file)) +self.registerHelpTopic(file, ht) +elif ext in ('.html', '.htm'): +ht=HelpTopic.TextTopic(file, '', os.path.join(path,file)) +self.registerHelpTopic(file, ht) +elif ext in ('.stx', '.txt'): +title=string.split(open(os.path.join(path,file),'rb').readline(), +':')[0] +ht=HelpTopic.STXTopic(file, title, os.path.join(path, file)) +self.registerHelpTopic(file, ht) +elif ext in ('.jpg', '.gif', '.png'): +ht=HelpTopic.ImageTopic(file, '', os.path.join(path, file)) +self.registerHelpTopic(file, ht) +elif ext in ('.py',): +ht=APIHelpTopic.APIHelpTopic(file, '', os.path.join(path, file)) +self.registerHelpTopic(file, ht)
Re: [Zope] SiteAcess
* Mechtild Hofmann ([EMAIL PROTECTED]) [001116 13:53]: > We use Zope 2.2.2. and Linux. Guten tag! If the your linux distrobution os Debian, I know what the problem is, and can mail you a fixed debian that should work till the Debian maintainer fixes the problem. Ciao! -- "We can go back to dallas, November 22, 1963, stand on the grassy knoll and shout,'DUCK!!'" -Kryten (Red Dwarf episode: Timeslides) The Doctor What: Not that 'who' guy http://docwhat.gerf.org/ [EMAIL PROTECTED] KF6VNC ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] SiteAcess
Hallo, We tried to install SiteAccess. But when we try to connect with a SiteRoot Objekt, we get error: Error Type: TypeError Error Value: unexpected keyword argument: validated_hook [...] Traceback (innermost last): File /var/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /var/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /var/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /var/zope/lib/python/ZPublisher/Publish.py, line 162, in publish TypeError: (see above) When I remove the directory /var/zope/lib/python/Products/SiteAccess and restart the server again, everything works as before - except the siteroot functionality of course :-( Does someone have info how I can get SiteAccess to run correctly on my machine (Linux, newest Zope source distribution)? Any help would be appreciated! Doch wenn mittels apache zugegriffen wird, bringt der Zope-Server (2.2.2) eine Fehlermeldung. Traceback (innermost last): File /opt/igat/Zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /opt/igat/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /opt/igat/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: ApplicationDefaultPermissions) File /opt/igat/Zope/lib/python/ZPublisher/Publish.py, line 162, in publish File /opt/igat/Zope/lib/python/ZPublisher/BaseRequest.py, line 338, in traverse File /opt/igat/Zope/lib/python/OFS/Application.py, line 251, in __bobo_traverse__ (Object: ApplicationDefaultPermissions) File /opt/igat/Zope/lib/python/ZPublisher/HTTPResponse.py, line 529, in notFoundError NotFound: (see above) What can we do ? We use Zope 2.2.2. and Linux. Thank you for help Mechtild -- in der Heimat tut sich was: http://www.wolterdingen.de konteXXt - Web-Konzept-Text-Design 07705 / 919391 ___ Zope maillist - [EMAIL PROTECTED] 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 )