Skip to content

Commit

Permalink
Do not reraise import error; also, do not import message factory from…
Browse files Browse the repository at this point in the history
… Plone.
  • Loading branch information
malthe committed Jul 3, 2008
1 parent 1611afd commit 1283218
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion z3c/jbot/__init__.py
Expand Up @@ -13,6 +13,6 @@ def jbot_func(self, *args, **kwargs):
from Products.PageTemplates.PageTemplateFile import PageTemplateFile as Z2PageTemplateFile
Z2PageTemplateFile._cook_check = jbot(Z2PageTemplateFile._cook_check)
except ImportError:
raise
pass


7 changes: 3 additions & 4 deletions z3c/jbot/metadirectives.py
@@ -1,11 +1,10 @@
from zope.interface import Interface
from zope.configuration import fields

from Products.CMFPlone import PloneMessageFactory as _

class ITemplateOverridesDirective(Interface):
"""Directive which registers a directory with template overrides."""

directory = fields.Path(title=_(u"Path to directory"),
required=True)
directory = fields.Path(
title=u"Path to directory",
required=True)

0 comments on commit 1283218

Please sign in to comment.