[Zope] Captcha Image For Form Verification
Does anyone if there is a product (specifically for zope) for creating a "captcha" image to verify that an actual human is submitting a form? I am using zope 2.8.1 with python 2.3.5 on a windows server. I am currently looking into this: http://captchas.net/sample/python/ ___ 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 )
Re: [Zope] Path Level in Catalog
Robert, thanks for the suggestion. I am using Zope for our sites, not Plone. There is no rebuild option in the manage_catalogAdvanced tab. However, it turns out there is another solution to this issue: I checked the zope book under "Searching and Categorizing Content" and it turns out that I had been using the getPath() method to display results from catalog queries when I should have been using the getURL() method. When I changed my script to use the getURL() method, the path was displayed from the root of the site, as in "/myobject/" as desired, (instead of "/mysite/myojbect") as I was getting before. Thanks! John T. - Original Message - From: "robert rottermann" <[EMAIL PROTECTED]> Subject: Re: [Zope] Path Level in Catalog try just rebuilding the catalog in prtal_catalog/advanced ->rebuild ___ 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 )
[Zope] Mark Pilgrim's Feed Parser in Zope
I'm trying to move our sites from Zope 2.5.1 to Zope 2.8.1-final and I'm receiving an error with this script: http://www.zope.org/Members/johntynan/feedparser/ In particular, I receive the following error, when using the attached page template "nprnews.pt": "Unauthorized: You are not allowed to access 'a particular list' in this context" (see traceback.txt attached). This page template renders an rss feed that has been transformed into a dictionary (see "dictionary.txt" attached) via a python script ("feedscript") which calls an external method ("newsfeed") which uses Mark Pilgrim's feed parser to parse the xml into a python data type. If I run the python script or the external method directly (via the "test" tab in the ZMI) I have no problem viewing all the properties of the rss feed. However, if I use the page template, I still receive this error. I've tried to get around this by running the python script using a proxy role of manager or owner, but I still receive the same error. Any suggestions you might have are appreciated. John Tynan - webmaster KJZZ.org / KBAQ.org 480.774.8462 Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module OFS.DTMLDocument, line 128, in __call__ - - URL: http://localhost/news/index_html/manage_main - Physical Path: /news/index_html Module DocumentTemplate.DT_String, line 476, in __call__ Module DocumentTemplate.DT_Util, line 196, in eval - __traceback_info__: npr Module , line 1, in Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PageTemplates.ZopePageTemplate, line 256, in _exec Module Products.PageTemplates.PageTemplate, line 102, in pt_render - Module TAL.TALInterpreter, line 206, in __call__ Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 649, in do_loop_tal Module Products.PageTemplates.TALES, line 206, in setRepeat Module Products.PageTemplates.TALES, line 221, in evaluate - URL: /newsstories - Line 2, Column 2 - Expression: - Names: {'container': , 'context': , 'default': , 'here': , 'loop': , 'modules': , 'nothing': None, 'options': {'args': (None, )}, 'repeat': , 'request': http://localhost/news/index_html>, 'root': , 'template': , 'traverse_subpath': [], 'user': admin} Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ - __traceback_info__: news['entries'][0:4] Module Python expression "news['entries'][0:4]", line 1, in Module AccessControl.ZopeGuards, line 71, in guarded_getitem Unauthorized: You are not allowed to access 'a particular list' in this context {'feed': {'lastbuilddate': u'Mon, 24 Jul 2006 12:06:18 EDT', 'subtitle': u'U.S.', 'generator': u'NPR/RSS Generator 2.0', 'links': [{'href': u'http://www.npr.org/templates/topics/topic.php?topicId=1003&ft=1&f=1003', 'type': 'text/html', 'rel': 'alternate'}, {'type': 'text/html', 'rel': 'alternate'}], 'title': u'NPR Topics: Nation', 'image': {'href': u'http://www.npr.org/images/npr_news_123x20.gif', 'link': u'http://www.npr.org/templates/topics/topic.php?topicId=1003&ft=1&f=1003', 'title': u'Nation'}, 'rights': u'Copyright 2006 NPR - For Personal Use Only', 'generator_detail': {'name': u'NPR/RSS Generator 2.0'}, 'subtitle_detail': {'base': 'http://www.npr.org/rss/rss.php?id=1003', 'type': 'text/html', 'value': u'U.S.', 'language': None}, 'title_detail': {'base': 'http://www.npr.org/rss/rss.php?id=1003', 'type': 'text/plain', 'value': u'NPR Topics: Nation', 'language': None}, 'link': u'http://www.npr.org/templates/topics/topic.php?topicId=1003&ft=1&f=1003', 'rights_detail': {'base': 'http://www.npr.org/rss/rss.php?id=1003', 'type': 'text/plain', 'value': u'Copyright 2006 NPR - For Personal Use Only', 'language': None}}, 'status': 200, 'updated': (2006, 7, 24, 17, 53, 55, 0, 205, 0), 'version': 'rss20', 'encoding': 'us-ascii', 'bozo': 0, 'headers': {'content-length': '17980', 'set-cookie': 'v1st=1DCE87E4F229957A; path=/; expires=Wed, 19 Feb 2020 14:28:00 GMT; domain=.npr.org, Apache=140.198.109.3.318941153763735423; path=/', 'accept-ranges': 'bytes', 'expires': 'Mon, 24 Jul 2006 17:55:35 GMT', 'server': 'Apache', 'last-modified': 'Mon, 24 Jul 2006 17:53:55 GMT', 'connection': 'close', 'etag': '"463c-44c50933"', 'cache-control': 'max-age=0', 'date': 'Mon, 24 Jul 2006 17:55:35 GMT', 'content-type': 'text/xml'}, 'etag': '"463c-44c50933"', 'href': 'http://www.npr.org/rss/rss.php?id=1003', 'namespaces': {'itunes': u'http://www.itunes.com/dtds/podcast-1.0.dtd', 'content': u'http://purl.org/rss/1.0/modules/content/', u'npr': u'http://www.npr.org/rss/'}, 'entries': [{'updated': u'Mon, 24 Jul 2006 11:09:00 EDT', 'updated_parsed': (2006, 7, 24, 15, 9, 0, 0, 205, 0), 'links': [{'href': u'http://www.npr.org/templates/stor
[Zope] Mark Pilgrim's Feed Parser in Zope
I'm trying to move our sites from Zope 2.5.1 to Zope 2.8.1-final and I'm receiving an error with this script: http://www.zope.org/Members/johntynan/feedparser/ In particular, I receive the following error, when using the attached page template "nprnews.pt": "Unauthorized: You are not allowed to access 'a particular list' in this context" (see traceback.txt attached). This page template renders an rss feed that has been transformed into a dictionary (see "dictionary.txt" attached) via a python script ("feedscript") which calls an external method ("newsfeed") which uses Mark Pilgrim's feed parser to parse the xml into a python data type. If I run the python script or the external method directly (via the "test" tab in the ZMI) I have no problem viewing all the properties of the rss feed. However, if I use the page template, I still receive this error. I've tried to get around this by running the python script using a proxy role of manager or owner, but I still receive the same error. Any suggestions you might have are appreciated. John Tynan - webmaster KJZZ.org / KBAQ.org 480.774.8462 Traceback (innermost last): Module ZPublisher.Publish, line 113, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 40, in call_object Module OFS.DTMLDocument, line 128, in __call__ - - URL: http://localhost/news/index_html/manage_main - Physical Path: /news/index_html Module DocumentTemplate.DT_String, line 476, in __call__ Module DocumentTemplate.DT_Util, line 196, in eval - __traceback_info__: npr Module , line 1, in Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.PageTemplates.ZopePageTemplate, line 256, in _exec Module Products.PageTemplates.PageTemplate, line 102, in pt_render - Module TAL.TALInterpreter, line 206, in __call__ Module TAL.TALInterpreter, line 250, in interpret Module TAL.TALInterpreter, line 649, in do_loop_tal Module Products.PageTemplates.TALES, line 206, in setRepeat Module Products.PageTemplates.TALES, line 221, in evaluate - URL: /newsstories - Line 2, Column 2 - Expression: - Names: {'container': , 'context': , 'default': , 'here': , 'loop': , 'modules': , 'nothing': None, 'options': {'args': (None, )}, 'repeat': , 'request': http://localhost/news/index_html>, 'root': , 'template': , 'traverse_subpath': [], 'user': admin} Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__ - __traceback_info__: news['entries'][0:4] Module Python expression "news['entries'][0:4]", line 1, in Module AccessControl.ZopeGuards, line 71, in guarded_getitem Unauthorized: You are not allowed to access 'a particular list' in this context {'feed': {'lastbuilddate': u'Mon, 24 Jul 2006 12:06:18 EDT', 'subtitle': u'U.S.', 'generator': u'NPR/RSS Generator 2.0', 'links': [{'href': u'http://www.npr.org/templates/topics/topic.php?topicId=1003&ft=1&f=1003', 'type': 'text/html', 'rel': 'alternate'}, {'type': 'text/html', 'rel': 'alternate'}], 'title': u'NPR Topics: Nation', 'image': {'href': u'http://www.npr.org/images/npr_news_123x20.gif', 'link': u'http://www.npr.org/templates/topics/topic.php?topicId=1003&ft=1&f=1003', 'title': u'Nation'}, 'rights': u'Copyright 2006 NPR - For Personal Use Only', 'generator_detail': {'name': u'NPR/RSS Generator 2.0'}, 'subtitle_detail': {'base': 'http://www.npr.org/rss/rss.php?id=1003', 'type': 'text/html', 'value': u'U.S.', 'language': None}, 'title_detail': {'base': 'http://www.npr.org/rss/rss.php?id=1003', 'type': 'text/plain', 'value': u'NPR Topics: Nation', 'language': None}, 'link': u'http://www.npr.org/templates/topics/topic.php?topicId=1003&ft=1&f=1003', 'rights_detail': {'base': 'http://www.npr.org/rss/rss.php?id=1003', 'type': 'text/plain', 'value': u'Copyright 2006 NPR - For Personal Use Only', 'language': None}}, 'status': 200, 'updated': (2006, 7, 24, 17, 53, 55, 0, 205, 0), 'version': 'rss20', 'encoding': 'us-ascii', 'bozo': 0, 'headers': {'content-length': '17980', 'set-cookie': 'v1st=1DCE87E4F229957A; path=/; expires=Wed, 19 Feb 2020 14:28:00 GMT; domain=.npr.org, Apache=140.198.109.3.318941153763735423; path=/', 'accept-ranges': 'bytes', 'expires': 'Mon, 24 Jul 2006 17:55:35 GMT', 'server': 'Apache', 'last-modified': 'Mon, 24 Jul 2006 17:53:55 GMT', 'connection': 'close', 'etag': '"463c-44c50933"', 'cache-control': 'max-age=0', 'date': 'Mon, 24 Jul 2006 17:55:35 GMT', 'content-type': 'text/xml'}, 'etag': '"463c-44c50933"', 'href': 'http://www.npr.org/rss/rss.php?id=1003', 'namespaces': {'itunes': u'http://www.itunes.com/dtds/podcast-1.0.dtd', 'content': u'http://purl.org/rss/1.0/modules/content/', u'npr': u'http://www.npr.org/rss/'}, 'entries': [{'updated': u'Mon, 24 Jul 2006 11:09:00 EDT', 'updated_parsed': (2006, 7, 24, 15, 9, 0, 0, 205, 0), 'links': [{'href': u'http://www.npr.org/templates/stor
[Zope] Rotating Zope Log Files on Windows
I am using Zope 2.5.0 (binary release, python 2.1, win32-x86), and the python 2.1.3 distribution of from python.org as a service on a Windows 2000 server. I am looking for a solution to rotate zope log files on windows. I just started writing a batch file to accomplish this, and it seems to work fairly well: net stop ZOPE_INSTANCE_SERVICE_NAME FOR /f "tokens=6-8 delims=/ " %%G IN ('NET TIME \\%computername%') DO ( SET _mm=%%G SET _dd=%%H SET _yy=%%I ) FOR /f "tokens=1,2 delims=: " %%G IN ('time/t') DO ( SET _hr=%%G SET _min=%%H ) ECHO Today is Year: [%_yy%] Month: [%_mm%] Day: [%_dd%] ECHO The time is: [%_hr%]:[%_min%] REN "C:\Zope_2_8_1_instance\log\Z2.log" "[EMAIL PROTECTED]" del Z2.log rundll32.exe >C:\Zope_2_8_1_instance\log\Z2.log net start Zope net start ZOPE_INSTANCE_SERVICE_NAME I am thinking of using windows scheduler to run this every night at midnight. But I wonder if anyone else worked on a similar solution and could pass along any advice. Or, conversely, does anyone know how to configure Zope 2.5.0 to send information that would normally be saved to the Z2.log file to a syslog utility, (such as the Kwiki Syslog Daemon), found here: http://www.kiwisyslog.com/info_syslog.htm Sincerely, John T. ___ 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 )
[Zope] Debugging Zope on Windows
I am using Zope 2.5.0 (binary release, python 2.1, win32-x86), and the python 2.1.3 distribution of from python.org as a service on a Windows 2000 server. I have heard that there is a way to debug zope and save error messages to a text file using the "STUPID_LOG_FILE" parameter however I'm not clear on how to implement this. I have tried adding the the paramter, STUPID_LOG_FILE=Zope.log to the Z2.py file. I modified the command line parameters "C:\Python21\python.exe" "C:\PROGRA~1\Zope\z2.py" -S for the registry value at: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Zope\Parameters\start to "C:\Python21\python.exe" "C:\PROGRA~1\Zope\z2.py" -S -D STUPID_LOG_FILE=Zope.log or should this be "C:\Python21\python.exe" "C:\PROGRA~1\Zope\z2.py" -S -D EVENT_LOG_FILE=Zope.log ??? Still, when I restart Zope, I'm not seeing the log file. Does anyone know how I might set this up properly on a Windows Machine? Alternatively, has anyone configured the z2.py file (or windows registry) to use a syslog utility (such as the Kwiki Syslog Daemon), found here: http://www.kiwisyslog.com/info_syslog.htm Sincerely, John T. ___ 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 )
[Zope] nxmldocument product and zope 2.8.1
I am transitioning to zope 2.8.1 and python 2.3.5 and I would like to use the nxmldocument product: http://www.zope.org/Members/philh/nXMLDocument (I am also using Mark Hammond's Win32 extensions, and Microsoft's MSXML 4.0 parser on a windows 2003 server). However, upon startup, I received the following error with the nxmldocument product: Traceback (most recent call last): File "E:\Program Files\Zope-2.8.1-final\lib\python\OFS\Application.py", line 695, in import_product product=__import__(pname, global_dict, global_dict, silly) File "E:\Program Files\Zope\Products\nXMLDocument\__init__.py", line 4, in ? import nXMLDocument File "E:\Program Files\Zope\Products\nXMLDocument\nXMLDocument.py", line 8, in ? import pythoncom File "E:\Python23\lib\site-packages\pythoncom.py", line 3, in ? pywintypes.__import_pywin32_system_module__("pythoncom", globals()) File "E:\Python23\lib\site-packages\win32\lib\pywintypes.py", line 42, in __import_pywin32_system_module__ mod = imp.load_module(modname, None, found, ('.dll', 'rb', imp.C_EXTENSION)) ImportError: DLL load failed: The specified procedure could not be found. Thanks in advance! John Tynan - webmaster KJZZ.org / KBAQ.org 480.774.8462 ___ 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 )