Login | Register
My pages Projects Community openCollabNet

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

newedit
Discussion topic

Back to topic list

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

Reply

Author limodou
Full name limodou
Date 2004-11-27 07:52:08 PST
Message User: limodou
Date: 04/11/27 07:52:08

Modified:
 /newedit/src/
  ChangeLog.txt
 /newedit/src/mixins/
  Import.py, SnippetWindow.py, mSnippets.py

Log:
 fix snippet path creation

File Changes:

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

File [changed]: ChangeLog.txt
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/ChangeLo​g.txt?r1=1.122&r​2=1.123
Delta lines: +4 -0
-------------------
--- ChangeLog.txt 26 Nov 2004 06:27:43 -0000 1.122
+++ ChangeLog.txt 27 Nov 2004 15:52:08 -0000 1.123
@@ -1,3 +1,7 @@
+[2004/11/27]
+SnippetClass.py SnippetWindow.py
+ ÐÞÕýµ±snippet²»´æÔÚÊ​±´´½¨Â·¾¶µÄ´¦Àí
+
 [2004/11/26]
 ShellWindow.py ÐÞÕýȡϵͳȱʡ±àÂëµÄ´¦Àí
 

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

File [changed]: Import.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/I​mport.py?r1=1.64​&r2=1.65
Delta lines: +3 -0
-------------------
--- Import.py 26 Nov 2004 06:27:44 -0000 1.64
+++ Import.py 27 Nov 2004 15:52:08 -0000 1.65
@@ -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.64 2004/11/26 06:27:44 limodou Exp $
+# $Id: Import.py,v 1.65 2004/11/27 15:52:08 limodou Exp $
 
 
 #----------------------- mPreference.py ------------------
@@ -3743,6 +3743,9 @@
 def afterinit(win):
     win.snippet_catalogfile = common.unicode_abspa​th('snippets/catalog​.xml')
     win.snippet_imagelist = snippet_imagelist
+ #check snippets directory, if not exists then create it
+ if not os.path.exists('snippets'):
+ os.mkdir('snippets')
 Mixin.setPlugin('mainframe', 'afterinit', afterinit)
 
 def createSnippetWindow(win):

File [changed]: SnippetWindow.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/S​nippetWindow.py?r1=1​.10&r2=1.11
Delta lines: +1 -5
-------------------
--- SnippetWindow.py 25 Nov 2004 12:39:45 -0000 1.10
+++ SnippetWindow.py 27 Nov 2004 15:52:08 -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: SnippetWindow.py,v 1.10 2004/11/25 12:39:45 limodou Exp $
+# $Id: SnippetWindow.py,v 1.11 2004/11/27 15:52:08 limodou Exp $
 
 import wx
 import SnippetClass
@@ -53,10 +53,6 @@
         self.SetItemImage(self.root, self.open_image, wx.TreeItemIcon_Expanded)
 
         wx.EVT_TREE_SEL_CHANGED(self, self.GetId(), self.OnChanged)
-
- #check snippets directory, if not exists then create it
- if not os.path.exists('snippets'):
- os.mkdir('snippets')
 
     def loadData(self):
         self.items = [self.root]

File [changed]: mSnippets.py
Url: http://newedit.tigri​s.org/source/browse/​newedit/src/mixins/m​Snippets.py?r1=1.7​&r2=1.8
Delta lines: +4 -1
-------------------
--- mSnippets.py 14 Oct 2004 03:27:12 -0000 1.7
+++ mSnippets.py 27 Nov 2004 15:52:08 -0000 1.8
@@ -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: mSnippets.py,v 1.7 2004/10/14 03:27:12 limodou Exp $
+# $Id: mSnippets.py,v 1.8 2004/11/27 15:52:08 limodou Exp $
 
 from modules import Mixin
 import wx
@@ -63,6 +63,9 @@
 def afterinit(win):
     win.snippet_catalogfile = common.unicode_abspa​th('snippets/catalog​.xml')
     win.snippet_imagelist = snippet_imagelist
+ #check snippets directory, if not exists then create it
+ if not os.path.exists('snippets'):
+ os.mkdir('snippets')
 Mixin.setPlugin('mainframe', 'afterinit', afterinit)
 
 def createSnippetWindow(win):




--------------------​--------------------​--------------------​---------
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/, /newedit/src/mixins/ limodou limodou 2004-11-27 07:52:08 PST
Messages per page: