strongwind r23 - in trunk: . strongwind



Author: jtai
Date: Wed Jul 30 17:15:13 2008
New Revision: 23
URL: http://svn.gnome.org/viewvc/strongwind?rev=23&view=rev

Log:
2008-07-30  Jonathan Tai  <jon tgpsolutions com>

	* strongwind/accessibles.py: In TreeTable's select() and activate()
	  methods, and in MenuBar's select() and open() methods, check the path
	  argument and throw a TypeError if the path is not a list. (#545553)


Modified:
   trunk/ChangeLog
   trunk/strongwind/accessibles.py

Modified: trunk/strongwind/accessibles.py
==============================================================================
--- trunk/strongwind/accessibles.py	(original)
+++ trunk/strongwind/accessibles.py	Wed Jul 30 17:15:13 2008
@@ -953,6 +953,12 @@
         Path must be an array of strings, regular expressions are not supported.
         '''
 
+        if type(path) != type(['l']):
+            raise TypeError, 'path argument must be a list'
+
+        if type(path) != type(['l']):
+            raise TypeError, 'path argument must be a list'
+
         for row in path[0:-1]:
             sleep(config.MEDIUM_DELAY)
             super(TreeTable, self).select(row).expandOrContract()
@@ -1065,6 +1071,9 @@
         Path must be an array of strings; regular expressions are not supported.
         '''
 
+        if type(path) != type(['l']):
+            raise TypeError, 'path argument must be a list'
+
         if log:
             procedurelogger.action('Under the %s menu, select %s.' % (' => '.join(path[0:-1]), path[-1].replace('...', '')), self)
 
@@ -1083,6 +1092,9 @@
         Path must be an array of strings; regular expressions are not supported.
         '''
 
+        if type(path) != type(['l']):
+            raise TypeError, 'path argument must be a list'
+
         procedurelogger.action('Open the %s menu.' % ' => '.join(path), self)
 
         return self._open(path)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]