Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /newedit/src/mixins/, /newedit/src/modules/

newedit
Discussion topic

Back to topic list

CVS update: /newedit/src/mixins/, /newedit/src/modules/

Reply

Author limodou
Full name limodou
Date 2004-11-11 17:16:54 PST
Message User: limodou
Date: 04/11/11 17:16:54

Modified:
 /newedit/src/mixins/
  Import.py, mConvert.py, mProject.py
 /newedit/src/modules/
  i18n.py

Log:
 fix

File Changes:

Directory: /newedit/src/mixins/
===============================

File [changed]: Import.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/I​mport.py?r1=1.58​&r2=1.59
Delta lines: +3 -7
-------------------
--- Import.py 11 Nov 2004 05:30:34 -0000 1.58
+++ Import.py 12 Nov 2004 01:16:53 -0000 1.59
@@ -20,7 +20,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: Import.py,v 1.58 2004/11/11 05:30:34 limodou Exp $
+# $Id: Import.py,v 1.59 2004/11/12 01:16:53 limodou Exp $
 
 
 #----------------------- mPreference.py ------------------
@@ -4255,7 +4255,7 @@
 def OnUpdateUI(win, event):
     eid = event.GetId()
     if eid in (win.IDM_PROJECT_SAVE, win.IDM_PROJECT_SAVEAS, win.IDM_PROJECT_CLOSE):
- event.Enable(win.project)
+ event.Enable(boolean​(win.project))
 Mixin.setPlugin('mainframe', 'on_update_ui', OnUpdateUI)
 
 popmenulist = [ (None,
@@ -4808,14 +4808,10 @@
 
 def OnConvertRest2Html(win, event):
     try:
- from docutils import core
- except:
- error.traceback()
- common.showmessage(win, tr("You should install docutils module first!"))
-
- try:
         def html_fragment(input_string, source_path=None, destination_path=None,
                        input_encoding='unicode', doctitle=1, initial_header_level=1):
+ from docutils import core
+
             overrides = {'input_encoding': input_encoding,
                          'doctitle_xform': doctitle,
                          'initial_header_level': initial_header_level}

File [changed]: mConvert.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/m​Convert.py?r1=1.6​&r2=1.7
Delta lines: +3 -7
-------------------
--- mConvert.py 14 Oct 2004 03:27:12 -0000 1.6
+++ mConvert.py 12 Nov 2004 01:16:54 -0000 1.7
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: mConvert.py,v 1.6 2004/10/14 03:27:12 limodou Exp $
+# $Id: mConvert.py,v 1.7 2004/11/12 01:16:54 limodou Exp $
 
 from modules import Mixin
 from modules.Debug import error
@@ -74,14 +74,10 @@
 
 def OnConvertRest2Html(win, event):
     try:
- from docutils import core
- except:
- error.traceback()
- common.showmessage(win, tr("You should install docutils module first!"))
-
- try:
         def html_fragment(input_string, source_path=None, destination_path=None,
                        input_encoding='unicode', doctitle=1, initial_header_level=1):
+ from docutils import core
+
             overrides = {'input_encoding': input_encoding,
                          'doctitle_xform': doctitle,
                          'initial_header_level': initial_header_level}

File [changed]: mProject.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/m​Project.py?r1=1.4​&r2=1.5
Delta lines: +2 -2
-------------------
--- mProject.py 14 Oct 2004 03:27:12 -0000 1.4
+++ mProject.py 12 Nov 2004 01:16:54 -0000 1.5
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: mProject.py,v 1.4 2004/10/14 03:27:12 limodou Exp $
+# $Id: mProject.py,v 1.5 2004/11/12 01:16:54 limodou Exp $
 
 __doc__ = 'project manage'
 
@@ -63,7 +63,7 @@
 def OnUpdateUI(win, event):
     eid = event.GetId()
     if eid in (win.IDM_PROJECT_SAVE, win.IDM_PROJECT_SAVEAS, win.IDM_PROJECT_CLOSE):
- event.Enable(win.project)
+ event.Enable(boolean​(win.project))
 Mixin.setPlugin('mainframe', 'on_update_ui', OnUpdateUI)
 
 popmenulist = [ (None,

Directory: /newedit/src/modules/
====================​============

File [changed]: i18n.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/modules/​i18n.py?r1=1.6&r​2=1.7
Delta lines: +2 -2
-------------------
--- i18n.py 10 Nov 2004 15:13:22 -0000 1.6
+++ i18n.py 12 Nov 2004 01:16:54 -0000 1.7
@@ -19,7 +19,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# $Id: i18n.py,v 1.6 2004/11/10 15:13:22 limodou Exp $
+# $Id: i18n.py,v 1.7 2004/11/12 01:16:54 limodou Exp $
 
 import gettext
 import glob
@@ -49,7 +49,7 @@
             lang = ''
             
         try:
- codecs.lookup(lang)
+ codecs.lookup(defaultencoding)
         except:
             error.traceback()
             lang = ''




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@newe​dit.tigris.org
For additional commands, e-mail: cvs-help at newedit dot tigris dot org

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /newedit/src/mixins/, /newedit/src/modules/ limodou limodou 2004-11-11 17:16:54 PST
Messages per page: