On 22 Oct 2005, at 00:27, Tres Seaver wrote:

Hash: SHA1

I just checked in a preliminary pass at viewifying the
'full_metadata_form' (now 'metadata.html' as a view):


I expanded the branch by adding a proposed viewification for the Link content type, based on Tres' example and code he sent to me a few weeks ago.

As mentioned in Tres' note, the five:traversable configuration in CMFDefault/configure.zcml is commented out because it breaks other CMF tests and you neeed to uncomment it to see the new stuff. However, I am seeing breakage in the link views tests themselves (traceback below) which I can't quite interpret. This time I doubt it is due to a sandbox with old software, I'm working off today's Zope 2.8 branch, the tseaver-viewification CMF branch and todays Five trunk. Can anyone spot what the problem is? Using the views in the browser does not show any error, it only pops up during testing.


File "/usr/local/zope/28Instance/Products/CMFDefault/browser/tests/ linkviews.txt", line 39, in linkviews.txt
Failed example:
    print display.renderContent()
Exception raised:
    Traceback (most recent call last):
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/zope/ testing/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest linkviews.txt[7]>", line 1, in ?
        print display.renderContent()
File "/usr/local/zope/28Instance/Products/CMFDefault/browser/ linkviews.py", line 56, in renderContent
        , title=self.context.title
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/Products/ PageTemplates/PageTemplate.py", line 110, in __call__
        return self.pt_render(extra_context={'options': kwargs})
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/Products/ PageTemplates/PageTemplate.py", line 104, in pt_render
        tal=not source, strictinsert=0)()
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/TAL/ TALInterpreter.py", line 206, in __call__
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/TAL/ TALInterpreter.py", line 250, in interpret
        handlers[opcode](self, args)
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/TAL/ TALInterpreter.py", line 595, in do_insertTranslation
        xlated_msgid = self.translate(msgid, default, i18ndict, obj)
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/TAL/ TALInterpreter.py", line 663, in translate
        msgid, i18ndict, default=default)
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/Products/ PageTemplates/TALES.py", line 261, in translate
File "/usr/local/zope/CMFHEADInstance/Products/Five/i18n.py", line 39, in translate
        util = zapi.queryUtility(ITranslationDomain, domain)
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/zope/ component/__init__.py", line 79, in queryUtility
        return getService(Utilities, context).queryUtility(
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/zope/ component/__init__.py", line 68, in getService
        return getServices(context).getService(name)
File "/usr/local/zope/opt/Zope-2.8-branch/lib/python/zope/ component/service.py", line 109, in getService
        raise ComponentLookupError(name)
    ComponentLookupError: 'Utilities'
Zope-CMF maillist  -  Zope-CMF@lists.zope.org

See http://collector.zope.org/CMF for bug reports and feature requests

Reply via email to