Class: EntityCollection

default entity collection

Constructor

__init__ (self, entities=None)

Methods

append (self, entity)

Add an entity to the collection.

clear (self)

extend (self, entities)

resolve (self, key, entity=None)

Resolve a key to an Entity. The optional entity argument is the "source" entity when resolving relationship targets.

Attributes

count

Value of count

<method 'count' of 'list' objects>

index

Value of index

<method 'index' of 'list' objects>

insert

Value of insert

<method 'insert' of 'list' objects>

pop

Value of pop

<method 'pop' of 'list' objects>

remove

Value of remove

<method 'remove' of 'list' objects>

reverse

Value of reverse

<method 'reverse' of 'list' objects>

sort

Value of sort

<method 'sort' of 'list' objects>