Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / gvsig_2_3_0 / selection.py @ 462

History | View | Annotate | Download (382 Bytes)

1

    
2

    
3
from org.gvsig.fmap.dal.feature.impl import DefaultFeatureSelection as JFeatureSelection
4

    
5

    
6
def __iter(self):
7
  return  self.fastIterator()
8

    
9
def __len(self):
10
  return self.getSize()
11
  
12
def __call(self):
13
    return self
14
#
15
# Inject new methods in the class JFeatureSelection
16
#
17
JFeatureSelection.__iter__ = __iter
18
JFeatureSelection.__len__ = __len
19
JFeatureSelection.__call__ = __call