1 diff -urN oryg/__init__.py zmien/__init__.py
2 --- oryg/__init__.py 2004-02-27 17:03:24.000000000 +0100
3 +++ zmien/__init__.py 2004-06-03 18:30:38.000000000 +0200
8 - x = Publish.old_publish(zope_request, module_name, after_list, debug)
10 - # Remove the context object
12 + x = Publish.old_publish(zope_request, module_name, after_list, debug)
16 - # Some people has reported that sometimes a KeyError exception is
17 - # raised in the previous line, I haven't been able to reproduce it.
18 - # This try/except clause seems to work. I'd prefer to understand
19 - # what is happening.
20 - LOG('iHotfix', PROBLEM,
21 - "The thread number %s don't has a context object associated." % id)
27 + # Remove the context object
31 + # Some people has reported that sometimes a KeyError exception is
32 + # raised in the previous line, I haven't been able to reproduce it.
33 + # This try/except clause seems to work. I'd prefer to understand
34 + # what is happening.
35 + LOG('iHotfix', PROBLEM,
36 + "The thread %s doesn't have a context object associated." % id)
42 + # Intercept I18NLayer (XXX it should depend on iHotfix, contact its
44 + if hasattr(Publish, 'old_publish'):
45 + Publish.publish = Publish.old_publish
46 + del Publish.old_publish
49 # XXX What happens when Localizer 1.0 and iHotfix are installed??
51 Publish.old_publish = Publish.publish