[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[OpenTAL-checkins] opental/PlacelessTranslationService __init__.py
From: |
Fernando Lalo Martins |
Subject: |
[OpenTAL-checkins] opental/PlacelessTranslationService __init__.py |
Date: |
Wed, 05 Mar 2003 09:08:10 -0500 |
CVSROOT: /cvsroot/opental
Module name: opental
Changes by: Fernando Lalo Martins <address@hidden> 03/03/05 09:08:10
Modified files:
PlacelessTranslationService: __init__.py
Log message:
adding a hook to do stuff when PTS finishes its initialization
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/opental/opental/PlacelessTranslationService/__init__.py.diff?tr1=1.7&tr2=1.8&r1=text&r2=text
Patches:
Index: opental/PlacelessTranslationService/__init__.py
diff -u opental/PlacelessTranslationService/__init__.py:1.7
opental/PlacelessTranslationService/__init__.py:1.8
--- opental/PlacelessTranslationService/__init__.py:1.7 Thu Feb 27 20:45:45 2003
+++ opental/PlacelessTranslationService/__init__.py Wed Mar 5 09:08:10 2003
@@ -16,7 +16,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
__version__ = '''
-$Id: __init__.py,v 1.7 2003/02/28 01:45:45 lalo Exp $
+$Id: __init__.py,v 1.8 2003/03/05 14:08:10 lalo Exp $
'''.strip()
from AccessControl import ModuleSecurityInfo, allow_module, allow_class,
allow_type
@@ -31,6 +31,9 @@
# to make zope a bit faster...
import PatchStringIO
+# this is for packages that need to initialize stuff after we're done
+notify_initialized = []
+
# id to use in the Control Panel
cp_id = 'TranslationService'
@@ -100,3 +103,7 @@
except:
log('Message Catalog has errors', zLOG.PROBLEM, name,
sys.exc_info())
log('Initialized:', detail = repr(translation_service.objectIds()) +
'\n')
+
+ # notify anyone who needs it
+ for function in notify_initialized:
+ function()
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [OpenTAL-checkins] opental/PlacelessTranslationService __init__.py,
Fernando Lalo Martins <=