Remove ListOfReferences

This commit is contained in:
Vincent Jacques
2012-02-22 20:29:16 +00:00
parent c41a1730ef
commit 39c1f27f32
3 changed files with 15 additions and 27 deletions
-12
View File
@@ -85,15 +85,3 @@ class ListOfObjects:
def apply( self, cls ):
for capacity in self.__capacities:
capacity.apply( self, cls )
class ListOfReferences( ListOfObjects ):
def __init__( self, attributeName, type, addable = False, removable = False, hasable = False, getParameters = [] ):
capacities = list()
capacities.append( ListGetable( [], getParameters ) )
if addable:
capacities.append( ElementAddable() )
if removable:
capacities.append( ElementRemovable() )
if hasable:
capacities.append( ElementHasable() )
ListOfObjects.__init__( self, attributeName, type, *capacities )