Alex Grönholm avatar Alex Grönholm committed 8ec7dd5

Removed model assertions from ObjectTableModel since they interfere with some table model proxying schemes

Comments (0)

Files changed (2)

 
 setup(
     name='jython-swingutils',
-    version='1.0.2',
+    version='1.0.3.dev1',
     description="Makes using Java's Swing UI toolkit easy on Jython",
     long_description=long_description,
     author='Alex Gronholm',
     author_email='alex.gronholm+pypi@nextday.fi',
     url='http://pypi.python.org/jython-swingutils/',
     classifiers=[
-      'Development Status :: 5 - Production/Stable',
-      'Intended Audience :: Developers',
-      'License :: OSI Approved :: MIT License',
-      'Programming Language :: Python',
-      'Programming Language :: Python :: 2.5',
-      'Programming Language :: Java',
-      'Topic :: Software Development :: User Interfaces'
+        'Development Status :: 5 - Production/Stable',
+        'Intended Audience :: Developers',
+        'License :: OSI Approved :: MIT License',
+        'Programming Language :: Python',
+        'Programming Language :: Python :: 2.5',
+        'Programming Language :: Java',
+        'Topic :: Software Development :: User Interfaces'
     ],
     keywords='jython swing',
     license='MIT',

swingutils/models/table.py

         multi-row selection enabled.
 
         """
-        assert table.model is self
         if table.selectedRow >= 0:
             modelRow = table.convertRowIndexToModel(table.selectedRow)
             return self[modelRow]
         :rtype: list
 
         """
-        assert table.model is self
         selected = []
         for viewRow in table.selectedRows:
             modelRow = table.convertRowIndexToModel(viewRow)
         :rtype: list
 
         """
-        assert table.model is self
         visible = []
         for viewRow in xrange(table.rowCount):
             modelRow = table.convertRowIndexToModel(viewRow)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.