コード例 #1
0
ファイル: models.py プロジェクト: chokribr/invenio-1
 def pop(self, item):
     # FIXME
     if self:
         obj_list = sorted(self, key=lambda obj: obj.score)
         for i, it in enumerate(obj_list):
             if obj_list[i] == item:
                 return InstrumentedList.pop(self, i)
コード例 #2
0
ファイル: models.py プロジェクト: httpPrincess/b2share
 def pop(self, item):
     # FIXME
     if self:
         obj_list = sorted(self, key=lambda obj: obj.score)
         for i, it in enumerate(obj_list):
             if obj_list[i] == item:
                 return InstrumentedList.pop(self, i)