[Checkins] SVN: Products.PluginRegistry/trunk/Products/PluginRegistry/ Nuke trailing white space.

Maurits van Rees m.van.rees at zestsoftware.nl
Tue Jan 3 10:54:48 UTC 2012


Log message for revision 123908:
  Nuke trailing white space.

Changed:
  U   Products.PluginRegistry/trunk/Products/PluginRegistry/PluginRegistry.py
  U   Products.PluginRegistry/trunk/Products/PluginRegistry/interfaces.py
  U   Products.PluginRegistry/trunk/Products/PluginRegistry/tests/test_PluginRegistry.py
  U   Products.PluginRegistry/trunk/Products/PluginRegistry/www/active_plugins.zpt
  U   Products.PluginRegistry/trunk/Products/PluginRegistry/www/plugins.zpt
  U   Products.PluginRegistry/trunk/Products/PluginRegistry/www/two_lists.zpt

-=-
Modified: Products.PluginRegistry/trunk/Products/PluginRegistry/PluginRegistry.py
===================================================================
--- Products.PluginRegistry/trunk/Products/PluginRegistry/PluginRegistry.py	2012-01-03 10:54:08 UTC (rev 123907)
+++ Products.PluginRegistry/trunk/Products/PluginRegistry/PluginRegistry.py	2012-01-03 10:54:48 UTC (rev 123908)
@@ -68,7 +68,7 @@
         self._plugin_types = [x[0] for x in plugin_type_info]
         self._plugin_type_info = PersistentMapping()
         for interface in plugin_type_info:
-            self._plugin_type_info[interface[0]] = { 
+            self._plugin_type_info[interface[0]] = {
                   'id': interface[1]
                 , 'title': interface[2]
                 , 'description': interface[3]
@@ -142,11 +142,11 @@
             raise KeyError, 'Duplicate plugin id: %s' % plugin_id
 
         parent = aq_parent(aq_inner(self))
-        plugin = parent._getOb(plugin_id) 
+        plugin = parent._getOb(plugin_id)
 
         if not _satisfies(plugin, plugin_type):
-            raise ValueError, 'Plugin does not implement %s' % plugin_type 
-        
+            raise ValueError, 'Plugin does not implement %s' % plugin_type
+
         plugins.append(plugin_id)
         self._plugins[plugin_type] = tuple(plugins)
 

Modified: Products.PluginRegistry/trunk/Products/PluginRegistry/interfaces.py
===================================================================
--- Products.PluginRegistry/trunk/Products/PluginRegistry/interfaces.py	2012-01-03 10:54:08 UTC (rev 123907)
+++ Products.PluginRegistry/trunk/Products/PluginRegistry/interfaces.py	2012-01-03 10:54:48 UTC (rev 123908)
@@ -49,7 +49,7 @@
     def listPluginIds(plugin_type):
 
         """ Return a sequence of plugin ids
-        
+
         o Return ids for each active plugin of the given type.
 
         o 'plugin_type' must be one of the known types, else raise KeyError.
@@ -86,7 +86,7 @@
 
         o 'ids_to_move' must be a sequence of ids of current plugins
           for that type.
-          
+
           - If any item is not the ID of a current plugin, raise ValueError.
         """
 
@@ -98,6 +98,6 @@
 
         o 'ids_to_move' must be a sequence of indexes of items in the current
           list of plugins for that type.
-          
+
           - If any item is not the ID of a current plugin, raise ValueError.
         """

Modified: Products.PluginRegistry/trunk/Products/PluginRegistry/tests/test_PluginRegistry.py
===================================================================
--- Products.PluginRegistry/trunk/Products/PluginRegistry/tests/test_PluginRegistry.py	2012-01-03 10:54:08 UTC (rev 123907)
+++ Products.PluginRegistry/trunk/Products/PluginRegistry/tests/test_PluginRegistry.py	2012-01-03 10:54:48 UTC (rev 123908)
@@ -239,13 +239,13 @@
         # Moving the top plugin up should not change anything.
         preg.movePluginsUp(IFoo, ('bar_plugin',))
         idlist = preg.listPluginIds(IFoo)
-        self.assertEqual(idlist, 
+        self.assertEqual(idlist,
                          ('bar_plugin', 'baz_plugin', 'foo_plugin'))
 
         # Moving the top plugin and another one could change something.
         preg.movePluginsUp(IFoo, ('bar_plugin', 'foo_plugin'))
         idlist = preg.listPluginIds(IFoo)
-        self.assertEqual(idlist, 
+        self.assertEqual(idlist,
                          ('bar_plugin', 'foo_plugin', 'baz_plugin'))
 
 
@@ -286,13 +286,13 @@
         # Moving the lowest plugin down should not change anything.
         preg.movePluginsDown(IFoo, ('bar_plugin',))
         idlist = preg.listPluginIds(IFoo)
-        self.assertEqual(idlist, 
+        self.assertEqual(idlist,
                          ('baz_plugin', 'foo_plugin', 'bar_plugin'))
 
         # Moving the lowest plugin and another one could change something.
         preg.movePluginsDown(IFoo, ('bar_plugin', 'baz_plugin'))
         idlist = preg.listPluginIds(IFoo)
-        self.assertEqual(idlist, 
+        self.assertEqual(idlist,
                          ('foo_plugin', 'baz_plugin', 'bar_plugin'))
 
     def test_getAllPlugins(self):

Modified: Products.PluginRegistry/trunk/Products/PluginRegistry/www/active_plugins.zpt
===================================================================
--- Products.PluginRegistry/trunk/Products/PluginRegistry/www/active_plugins.zpt	2012-01-03 10:54:08 UTC (rev 123907)
+++ Products.PluginRegistry/trunk/Products/PluginRegistry/www/active_plugins.zpt	2012-01-03 10:54:48 UTC (rev 123908)
@@ -32,7 +32,7 @@
                tal:omit-tag="active_id">
            <a href=""
               tal:attributes="href string:../${active_id}/manage_workspace"
-              tal:content="string:${active_id}">foo_plugin</a> 
+              tal:content="string:${active_id}">foo_plugin</a>
          </span>
        </td>
 
@@ -42,7 +42,7 @@
                tal:omit-tag="inactive_id">
            <a href=""
               tal:attributes="href string:../${inactive_id}/manage_workspace"
-              tal:content="inactive_id">foo_plugin</a> 
+              tal:content="inactive_id">foo_plugin</a>
          </span>
        </td>
      </tal:plugins>

Modified: Products.PluginRegistry/trunk/Products/PluginRegistry/www/plugins.zpt
===================================================================
--- Products.PluginRegistry/trunk/Products/PluginRegistry/www/plugins.zpt	2012-01-03 10:54:08 UTC (rev 123907)
+++ Products.PluginRegistry/trunk/Products/PluginRegistry/www/plugins.zpt	2012-01-03 10:54:48 UTC (rev 123908)
@@ -30,7 +30,7 @@
 <div tal:condition="plugin_type">
 <tal:info tal:define="plugin_info python:here.getPluginInfo( plugin_type )">
 
-<h3> <span tal:replace="plugin_info/title/capitalize">PluginType</span> 
+<h3> <span tal:replace="plugin_info/title/capitalize">PluginType</span>
     Plugins </h3>
 
 

Modified: Products.PluginRegistry/trunk/Products/PluginRegistry/www/two_lists.zpt
===================================================================
--- Products.PluginRegistry/trunk/Products/PluginRegistry/www/two_lists.zpt	2012-01-03 10:54:08 UTC (rev 123907)
+++ Products.PluginRegistry/trunk/Products/PluginRegistry/www/two_lists.zpt	2012-01-03 10:54:48 UTC (rev 123908)
@@ -46,17 +46,17 @@
               multiple="multiple"
               tal:attributes="name string:${left_name}:list" >
         <option tal:repeat="item left_list"
-                tal:attributes="value python:item[0]" 
+                tal:attributes="value python:item[0]"
                 tal:content="python: item[1]"/>
       </select>
     </td>
     <td align="center" valign="middle">
-      <input type="image" src="arrow_right_gif" 
+      <input type="image" src="arrow_right_gif"
              width="29" height="30" border="0"
              name="left_to_right:method"
              tal:attributes="name string:${left_to_right}:method"/>
       <br /><br />
-      <input type="image" src="arrow_left_gif" 
+      <input type="image" src="arrow_left_gif"
              width="29" height="30" border="0"
              name="right_to_left:method"
              tal:attributes="name string:${right_to_left}:method"/>
@@ -69,19 +69,19 @@
               multiple="multiple"
               tal:attributes="name string:${right_name}:list" >
         <option tal:repeat="item right_list"
-                tal:attributes="value python:item[0]" 
+                tal:attributes="value python:item[0]"
                 tal:content="python: item[1]"/>
       </select>
     </td>
     <td align="center" valign="middle"
         tal:condition="right_is_ordered | nothing"
     >
-      <input type="image" src="arrow_up_gif" 
+      <input type="image" src="arrow_up_gif"
              width="29" height="30" border="0"
              name="move_up:method"
              tal:attributes="name string:${move_up}:method"/>
       <br /><br />
-      <input type="image" src="arrow_down_gif" 
+      <input type="image" src="arrow_down_gif"
              width="29" height="30" border="0"
              name="move_down:method"
              tal:attributes="name string:${move_down}:method"/>



More information about the checkins mailing list