Package: zope-cmfphotoalbum
Version: 0.5.0-5
Severity: important

*** Please type your report below this line *** I installed the CMF
Photo and Photo Album products in a Plone test site and created a
photo album with one photo in it.  When trying to view the photo album
I get a `Site error' page with the following text:

------- Start of site error message
This site encountered an error trying to fulfill your request. The errors were:

Error Type
    PTRuntimeError
Error Value
    Page Template photoalbum_view has errors.
Request made at
    2005/03/20 22:40:36.396 US/Eastern 
------- End of site error message

The error log shows the following:

------- Start of error log entry
Time
    2005/03/20 22:40:34.619 US/Eastern
User Name (User Id)
    bojsen (bojsen)
Request URL
    
http://lothlorien/zope/experiments/plone_test/albums/sarahandtom/photoalbum_view
Exception Type
    PTRuntimeError
Exception Value
    Page Template photoalbum_view 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/photoalbum_view used for 
/experiments/plone_test/albums/sarahandtom>
      Warning: Compilation failed
      Warning: TAL.TALDefs.METALError: invalid macro name: 'list-item', at line 
100, column 17

PTRuntimeError: Page Template photoalbum_view has errors.
------- End of error log entry

I worked around the above problem by customizing the photoalbum_view
page template as follows:

--- photoalbum_view.pt.orig     2005-01-27 18:24:50.000000000 -0500
+++ photoalbum_view.pt  2005-03-20 23:01:48.297323795 -0500
@@ -97,7 +97,7 @@
             <dl>
                 <tal:entry tal:repeat="obj otherContents">
 
-                <dt metal:define-macro="list-item"
+                <dt metal:define-macro="list_item"
                     tal:define="url python: 
obj.absolute_url()+test(obj.isPrincipiaFolderish,'/','');
                                 icon python: obj.getIcon(1)">
                 <a href="#" tal:attributes="href url">

There appears to be a simple typo: list-item should have been list_item.

Thanks,
Per

-- 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-cmfphotoalbum depends on:
ii  debconf [debconf-2.0]         1.4.30.11  Debian configuration management sy
ii  zope-cmfphoto                 0.5.0-5    photo module for zope content mana

-- debconf information:
  zope-cmfphotoalbum/oldproduct_in_var: do nothing


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to