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 2005-02-07 01:01:07 PST
Message User: limodou
Date: 05/02/07 01:01:07

Modified:
 /newedit/src/mixins/
  DocumentBase.py, Import.py, mComEdit.py
 /newedit/src/modules/
  ftplistparse.py

Log:
 bug fix

File Changes:

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

File [changed]: DocumentBase.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/D​ocumentBase.py?r1=1.​10&r2=1.11
Delta lines: +4 -1
-------------------
--- DocumentBase.py 6 Feb 2005 11:46:23 -0000 1.10
+++ DocumentBase.py 7 Feb 2005 09:01:07 -0000 1.11
@@ -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: DocumentBase.py,v 1.10 2005/02/06 11:46:23 limodou Exp $
+# $Id: DocumentBase.py,v 1.11 2005/02/07 09:01:07 limodou Exp $
 
 __doc__ = 'Document base class'
 
@@ -58,6 +58,9 @@
             return True
         else:
             return False
+
+ def __int__(self):
+ return 0
 
 class DocumentBase:
     def __init__(self, parent, filename, documenttype, **kwargs):

File [changed]: Import.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/I​mport.py?r1=1.69​&r2=1.70
Delta lines: +3 -3
-------------------
--- Import.py 6 Feb 2005 15:38:25 -0000 1.69
+++ Import.py 7 Feb 2005 09:01:07 -0000 1.70
@@ -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.69 2005/02/06 15:38:25 limodou Exp $
+# $Id: Import.py,v 1.70 2005/02/07 09:01:07 limodou Exp $
 
 
 #----------------------- mPreference.py ------------------
@@ -463,11 +463,11 @@
         if eid in [win.IDM_EDIT_CUT, win.IDM_EDIT_COPY]:
             event.Enable(win.doc​ument.GetSelectedTex​t and len(win.document.Get​SelectedText()) > 0)
         elif eid == win.IDM_EDIT_PASTE:
- event.Enable(win.doc​ument.CanPaste())
+ event.Enable(bool(wi​n.document.CanPaste(​)))
         elif eid == win.IDM_EDIT_UNDO:
- event.Enable(win.doc​ument.CanUndo())
+ event.Enable(bool(wi​n.document.CanUndo()​))
         elif eid == win.IDM_EDIT_REDO:
- event.Enable(win.doc​ument.CanRedo())
+ event.Enable(bool(wi​n.document.CanRedo()​))
 Mixin.setPlugin('mainframe', 'on_update_ui', OnUpdateUI)
 
 def init(win):

File [changed]: mComEdit.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/m​ComEdit.py?r1=1.9​&r2=1.10
Delta lines: +4 -4
-------------------
--- mComEdit.py 14 Oct 2004 03:27:12 -0000 1.9
+++ mComEdit.py 7 Feb 2005 09:01:07 -0000 1.10
@@ -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: mComEdit.py,v 1.9 2004/10/14 03:27:12 limodou Exp $
+# $Id: mComEdit.py,v 1.10 2005/02/07 09:01:07 limodou Exp $
 
 __doc__ = 'Common edit menu. Redo, Undo, Cut, Paste, Copy'
 
@@ -162,11 +162,11 @@
         if eid in [win.IDM_EDIT_CUT, win.IDM_EDIT_COPY]:
             event.Enable(win.doc​ument.GetSelectedTex​t and len(win.document.Get​SelectedText()) > 0)
         elif eid == win.IDM_EDIT_PASTE:
- event.Enable(win.doc​ument.CanPaste())
+ event.Enable(bool(wi​n.document.CanPaste(​)))
         elif eid == win.IDM_EDIT_UNDO:
- event.Enable(win.doc​ument.CanUndo())
+ event.Enable(bool(wi​n.document.CanUndo()​))
         elif eid == win.IDM_EDIT_REDO:
- event.Enable(win.doc​ument.CanRedo())
+ event.Enable(bool(wi​n.document.CanRedo()​))
 Mixin.setPlugin('mainframe', 'on_update_ui', OnUpdateUI)
 
 def init(win):

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

File [changed]: ftplistparse.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/modules/​ftplistparse.py?r1=1​.3&r2=1.4
Delta lines: +0 -2
-------------------
--- ftplistparse.py 25 Nov 2004 12:55:23 -0000 1.3
+++ ftplistparse.py 7 Feb 2005 09:01:07 -0000 1.4
@@ -116,8 +116,6 @@
         "---------- 1 owner group 1803128 Jul 10 10:18 ls-lR.Z",
         "d--------- 1 owner group 0 May 9 19:45 Softlib",
         "-rwxrwxrwx 1 noone nogroup 322 Aug 19 1996 message.ftp",
-# "-rw------- 1 clearing informix 664 2003Äê11ÔÂ20ÈÕ YJXTtmpf",
-# "-rw-r----- 1 clearing informix 12 9ÔÂ20ÈÕ 15:13 a.c",
         ]
     dirs, files = ftplistparse(lists)
     print 'dirs-------------------'




--------------------​--------------------​--------------------​---------
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 2005-02-07 01:01:07 PST
Messages per page: