/[opental]/opental/PlacelessTranslationService/__init__.py
ViewVC logotype

Diff of /opental/PlacelessTranslationService/__init__.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by lalo, Wed Mar 5 20:30:53 2003 UTC revision 1.10 by lalo, Thu Mar 13 01:22:41 2003 UTC
# Line 25  from GettextMessageCatalog import Gettex Line 25  from GettextMessageCatalog import Gettex
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...

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26