[Zope3-dev] Bug in renderer/metaconfigure

Roger Ineichen r.ineichen at projekt01.ch
Sat May 15 07:08:51 EDT 2004


Can anybody check the file,

src\zope\app\renderer\metaconfigure.py

The module sourcetype doesn't exist anymore.
I'm not shure if the new class is in the 
vocabulary called SourceTypeVocabulary
and can be replaced.

HEAD:
-----
from zope.app.renderer.sourcetype import SourceTypes 

def sourcetype(_context, interface, class_, title=u''):
    _context.action(
        discriminator = ('source type', title, interface),
        callable = SourceTypes.provide,
        args = (title, interface, class_)
        )



Should it be like: ??? 
------------------
from zope.app.renderer.vocabulary import SourceTypeVocabulary 

def sourcetype(_context, interface, class_, title=u''):
    _context.action(
        discriminator = ('source type', title, interface),
        callable = SourceTypeVocabulary.provide,
#                  ^^^^^^^^^^^^^^^^^^^^                         
        args = (title, interface, class_)
        )

Regards
Roger Ineichen
_____________________________
END OF MESSAGE




More information about the Zope3-dev mailing list