25 |
from Products.PageTemplates.GlobalTranslationService import setGlobalTranslationService |
from Products.PageTemplates.GlobalTranslationService import setGlobalTranslationService |
26 |
import os, fnmatch, zLOG, sys, Zope, Globals |
import os, fnmatch, zLOG, sys, Zope, Globals |
27 |
|
|
28 |
|
# in python 2.1 fnmatch doesn't have the filter function |
29 |
|
if not hasattr(fnmatch, 'filter'): |
30 |
|
def fnfilter(names, pattern): |
31 |
|
return [name for name in names if fnmatch.fnmatch(name, pattern)] |
32 |
|
fnmatch.filter = fnfilter |
33 |
|
|
34 |
# patch flaky ZPT - this must be removed once someone fixes it |
# patch flaky ZPT - this must be removed once someone fixes it |
35 |
# I'm leaving this enabled even for OpenPT, because it somehow manages |
# I'm leaving this enabled even for OpenPT, because it somehow manages |
36 |
# to make zope a bit faster... |
# to make zope a bit faster... |