LocalFS busted on Zope 2.5.1?? - NOPE!
Hi all, Just a heads-up. It seems LocalFS is broken under 2.5.1. Creating a new instance works fine, but then trying to view the instance leads to the following; Error Type: TypeError Error Value: filtered_meta_types() takes exactly 1 argument (2 given) Traceback is: Traceback (innermost last): File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 150, in publish_module File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 114, in publish File /home/zope/Zope-2.5.1-src/lib/python/Zope/__init__.py, line 159, in zpublisher_exception_hook (Object: AAA) File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 98, in publish File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/mapply.py, line 88, in mapply (Object: main) File /home/zope/Zope-2.5.1-src/lib/python/ZPublisher/Publish.py, line 39, in call_object (Object: main) File /home/zope/Zope-2.5.1-src/lib/python/App/special_dtml.py, line 61, in __call__ (Object: main) File /home/zope/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_String.py, line 473, in __call__ (Object: main) File /home/zope/Zope-2.5.1-src/lib/python/DocumentTemplate/DT_Util.py, line 159, in eval (Object: filtered_meta_types(AUTHENTICATED_USER)) (Info: filtered_meta_types) File <string>, line 0, in ? TypeError: (see above) Is this just an artifact of my zope installation, or is this generic to LocalFS on 2.5.1? Anyone got any clues? *voice from the peanut gallery* "I do" I figured this out before I hit send, so here's the fix. Edit main.dtml in LocalFS and remove all references to AUTHENTICATED_USER. Eg <dtml-in "filtered_meta_types(AUTHENTICATED_USER)" mapping sort=name> Goes to <dtml-in filtered_meta_types mapping sort=name> There's a few other lines in there with AUTHENTICATED_USER in main.dtml, so make sure you get all of them... LocalFS is quite an old product, but it still keeps rolling along :) Tone. -- Dr Tony McDonald, Assistant Director, FMCC, http://www.fmcc.org.uk/ The Medical School, Newcastle University Tel: +44 191 243 6140 A Zope list for UK HE/FE http://www.fmcc.org.uk/mailman/listinfo/zope
participants (1)
-
Tony McDonald