Changeset 439
- Timestamp:
- 12/22/08 15:27:37 (3 years ago)
- Files:
-
- 1 modified
-
elixir/trunk/elixir/collection.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
elixir/trunk/elixir/collection.py
r436 r439 8 8 # default entity collection 9 9 class EntityCollection(list): 10 def __init__(self ):10 def __init__(self, entities=None): 11 11 # _entities is a dict of entities keyed on their name. 12 12 self._entities = {} 13 13 list.__init__(self) 14 if entities is not None: 15 self.extend(entities) 16 17 def extend(self, entities): 18 for e in entities: 19 self.append(e) 14 20 15 21 def append(self, entity):
