Oups, add a lot of missing files

This commit is contained in:
Némunaire 2012-06-30 04:06:59 +02:00
commit 061e73722f
21 changed files with 937 additions and 2 deletions

20
modules/qd/QDWrapper.py Normal file
View file

@ -0,0 +1,20 @@
# coding=utf-8
from wrapper import Wrapper
from .Score import Score
class QDWrapper(Wrapper):
def __init__(self, datas):
Wrapper.__init__(self)
self.DATAS = datas
self.stateName = "player"
self.attName = "name"
def __getitem__(self, i):
if i in self.cache:
return self.cache[i]
else:
sc = Score()
sc.parse(Wrapper.__getitem__(self, i))
self.cache[i] = sc
return sc