Mercurial > repos > yufei-luo > s_mart
comparison commons/pyRepetUnit/profilesDB/ProfilesDatabank.py @ 31:0ab839023fe4
Uploaded
| author | m-zytnicki |
|---|---|
| date | Tue, 30 Apr 2013 14:33:21 -0400 |
| parents | 94ab73e8a190 |
| children |
comparison
equal
deleted
inserted
replaced
| 30:5677346472b5 | 31:0ab839023fe4 |
|---|---|
| 1 class ProfilesDatabank: | |
| 2 | |
| 3 """ | |
| 4 List of profiles objects. | |
| 5 """ | |
| 6 | |
| 7 list; | |
| 8 | |
| 9 def __init__( self ): | |
| 10 self._profilesDatabank = [] | |
| 11 | |
| 12 def append( self, list ): | |
| 13 self._profilesDatabank.append(list) | |
| 14 | |
| 15 def len (self): | |
| 16 return len(self._profilesDatabank) | |
| 17 | |
| 18 def get(self, index): | |
| 19 return self._profilesDatabank[index] | |
| 20 | |
| 21 def getList(self): | |
| 22 return self._profilesDatabank |
