[Zope] CollectorNG und translation service

robert rottermann robert at redcor.ch
Thu Jul 1 06:59:28 EDT 2004


Salu Andreas
Products.PlacelessTranslationService wird zweimal importiert (und 
stirbt, wenn er nicht gefunden wird)
Gruss
Robert

from AccessControl import ClassSecurityInfo
from Products.PlacelessTranslationService import getTranslationService
^^^^^^
try:
     from Products.PlacelessTranslationService import
^^^^^^
getTranslationService
     have_pts = 1
except ImportError:
     from zLOG import LOG, WARNING
     LOG('plonecollectorng', WARNING, 'PlacelessTranslationService not 
found..using EN as default language')
     have_pts = 0



More information about the Zope mailing list