Package: zope-cmfforum
Version: 1.0-8
Severity: important
The forum search form when using zope-cmfforum in a Plone site does
not work. The search form fails to display and I get the following
error when clicking the search button:
------- Start of error message
Time
2005/03/19 23:08:22.539 US/Eastern
User Name (User Id)
bojsen (bojsen)
Request URL
http://lothlorien/zope/experiments/plone_test/forums/wasting/forum_search_form
Exception Type
PTRuntimeError
Exception Value
Page Template forum_search_form has errors.
Traceback (innermost last):
* Module ZPublisher.Publish, line 98, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 39, in call_object
* Module Shared.DC.Scripts.Bindings, line 306, in __call__
* Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 191, in _exec
* Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
* Module Products.PageTemplates.PageTemplate, line 87, in pt_render
<FSPageTemplate at /experiments/plone_test/forum_search_form used for
/experiments/plone_test/forums/wasting>
Warning: Compilation failed
Warning: TAL.TALDefs.TALError: Python expression error: unexpected EOF
while parsing (line 1) in expression
'python:test(container.portal_membership.isAnonymousUser(), 0, 1);', at line
54, column 25
PTRuntimeError: Page Template forum_search_form has errors.
------- End of error message
The error occurs in line 54 of the
/usr/lib/zope/lib/python/Products/CMFForum/skins/zpt_forum/forum_search_form.pt
file. I removed the semi-colon at the end of the Python expression
and that got me past the error above. Here is the diff:
--- /tmp/forum_search_form.pt.orig 2005-03-19 23:19:12.435263915 -0500
+++ /tmp/forum_search_form.pt 2005-03-19 23:19:25.505373745 -0500
@@ -52,7 +52,7 @@
lastmonth python:(today-31);
ever python:DateTime('1970/01/01');">
<option value="#"
-
tal:condition="python:test(container.portal_membership.isAnonymousUser(), 0,
1);"
+
tal:condition="python:test(container.portal_membership.isAnonymousUser(), 0, 1)"
tal:attributes="value
python:container.portal_membership.getAuthenticatedMember().last_login_time">
Last login </option>
<option value="#" tal:attributes="value yesterday">
Yesterday </option>
<option value="#" tal:attributes="value lastweek">
Last week </option>
With the above diff, the search form gets displayed. However, no
matter what search term I try, I never get any results. It always
says ` No Results were Found'. But when I repeat the search using the
same search term in the global site search form at the top left, the
search successfully finds the forum posts that matches the term. I
have no patch for this problem.
Zope and Plone packages I have installed:
ii plone 2.0.4-3 content management system based on zope and
ii zope-cmfplone 2.0.4-3 content management system based on zope and
ii zope-plonetran 0.6-2 translation files for plone 2.0
ii zope 2.6.4-1.6 Open Source Web Application Server
ii zope-book 20040910-1 Zope Open Content Book
ii zope-btreefold 1.0.1-5 Zope folder that can efficiently contain man
ii zope-cmf1.4 1.4.7-3 zope content management framework (CMF), 1.4
ii zope-cmfaction 0.9-2 Actions and icons add-on for Zope Content Ma
ii zope-cmfcalend 1.4.7-3 zope cmf calendar, 1.4 branch
ii zope-cmfcore1. 1.4.7-3 zope cmf core services, 1.4 branch
ii zope-cmfdefaul 1.4.7-3 zope cmf default (basic) content, 1.4 branch
ii zope-cmfformco 1.0.3-3 zope form validation for cmf and plone
ii zope-cmfforum 1.0-8 forum module for zope content management fra
ii zope-cmfphoto 0.5.0-5 photo module for zope content management fra
ii zope-cmfphotoa 0.5.0-5 photo album module for zope content manageme
ii zope-cmfplone 2.0.4-3 content management system based on zope and
ii zope-cmfquicki 1.5.0-2 zope add-on to easy install cmf/plone produc
ii zope-cmftopic1 1.4.7-3 zope cmf topic, 1.4 branch
ii zope-dcworkflo 1.4.7-3 fully customizable workflow for cmf-based pr
ii zope-devguide 20040104-2 Zope Developer's Guide
ii zope-docfinder 0.4.1-1 Find documentation for a Zope product using
ii zope-epoz 0.9.0-1 cross-browser WYSIWYG editor for Zope
ii zope-extfile 1.4.2-2 Stores large files outside Zope database
ii zope-formulato 1.7.0-5 A tool to create and validate web forms in Z
ii zope-groupuser 3.1.1-3 zope add-on that provides user flagged as gr
ii zope-ldapuserf 2.2-2 The Zope LDAP user folder
ii zope-parsedxml 1.3.1-5 ParsedXML Zope Product
ii zope-photo 1.2.3-8 zope product for managing digital images
ii zope-plonetran 0.6-2 translation files for plone 2.0
ii zope-popyda 2.0.8-3 A Database Adapter connecting Zope and Postg
ii zope-psycopgda 1.1.18-1 Zope Database Adapter based on python-psycop
ii zope-pts 1.2-rc1-2 placeless translation service for zope
ii zope-rdfgrabbe 0.4-4 Zope Product to search foreign webpages by t
ii zope-testcase 0.9.0-1 unit testing framework and test case for Zop
ii zope-textindex 2.0.8-5 full text index for Zope
ii zope-xmlmethod 1.0.0-1 XMLMethods Zope Product
ii zope-zms 2.1.2.7-2 Content management for science, technology a
ii zope-znavigato 2.02-9 Zope product for creating navigation bars
ii zope-zpatterns 0.4.3p2-17 Database Independence and Framework Integrat
ii zope-zwiki 0.37.0-4 implentation of WikiWikiWeb for Zope
ii zopectl 0.3.4.2 Zope instances controlling utility
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages zope-cmfforum depends on:
ii debconf [debconf-2.0] 1.4.30.11 Debian configuration management sy
ii zope-cmf1.4 1.4.7-3 zope content management framework
-- debconf information:
* zope-cmfforum/installationNote:
zope-cmfforum/postinst: true
zope-cmfforum/oldproduct_in_var: do nothing
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]