[prev in list] [next in list] [prev in thread] [next in thread]
List: mailman-cvs
Subject: [Mailman-checkins] CVS: mailman/scripts driver,2.2,2.3
From: Barry Warsaw <bwarsaw () users ! sourceforge ! net>
Date: 2001-06-27 18:05:26
[Download RAW message or body]
Update of /cvsroot/mailman/mailman/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv32691/scripts
Modified Files:
driver
Log Message:
run_main(): Don't stick Mailman.i18n._ in the builtins.
Index: driver
===================================================================
RCS file: /cvsroot/mailman/mailman/scripts/driver,v
retrieving revision 2.2
retrieving revision 2.3
diff -C2 -r2.2 -r2.3
*** driver 2000/12/07 21:58:33 2.2
--- driver 2001/06/27 18:05:24 2.3
***************
*** 1,4 ****
# -*- python -*-
! # Copyright (C) 1998,1999,2000 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
--- 1,5 ----
# -*- python -*-
!
! # Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
***************
*** 80,97 ****
import Mailman.pythonlib.cgi
sys.modules['cgi'] = Mailman.pythonlib.cgi
- #
- # TBD: Stick the i18n translation function into the builtins. This is
- # bogus because it's too magical, but it's also quite convenient
- # during the i18n integration phase. This will change before the
- # release!
- import __builtin__
- from Mailman.i18n import _
- __builtin__._ = _
- #
# The name of the module to run is passed in argv[1]. What we
# actually do is import the module named by argv[1] that lives in the
# Mailman.Cgi package. That module must have a main() function, which
# we dig out and call.
- #
scriptname = sys.argv[1]
# See the reference manual for why we have to do things this way.
--- 81,88 ----
_______________________________________________
Mailman-checkins mailing list
Mailman-checkins@python.org
http://mail.python.org/mailman/listinfo/mailman-checkins
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic