Skip to content

Commit

Permalink
Zope trunk compatibility for product init.
Browse files Browse the repository at this point in the history
  • Loading branch information
lrowe committed Nov 2, 2011
1 parent 816c7ab commit 98ad094
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Products/ZopeVersionControl/__init__.py
Expand Up @@ -65,6 +65,11 @@ def filtered_manage_options(self, REQUEST=None, method = method,

def registerIcon(filename):
from OFS import misc_
setattr(misc_.misc_.ZopeVersionControl, filename,
try:
info = misc_.misc_.ZopeVersionControl
except AttributeError:
# Zope trunk
return
setattr(info, filename,
ImageFile('www/%s' % filename, globals())
)

0 comments on commit 98ad094

Please sign in to comment.