예제 #1
0
 def __init__(self, service=None):
     self.service = service
     AttrsLookup.__init__(
         self,
         attr2accessor={"percentile": UserStatsRankPercentileAccessor(), "rank": UserStatsRankPercentileAccessor()},
         packetClassesName="PlayerStats",
         requiredAttrPacketFields=["serial"],
     )
예제 #2
0
 def __init__(self, service = None):
     self.service = service
     AttrsLookup.__init__(self,
        attr2accessor = { 
             'percentile' : UserStatsRankPercentileAccessor(),
             'rank' : UserStatsRankPercentileAccessor() },
        packetClassesName = "PlayerStats",
        requiredAttrPacketFields = [ 'serial' ])
예제 #3
0
 def getAttrsAsPacket(self, **kwargs):
     if not kwargs.has_key("service"):
         kwargs["service"] = self.service
     return AttrsLookup.getAttrsAsPacket(self, **kwargs)
예제 #4
0
 def __init__(self, service=None):
     self.service = service
     AttrsLookup.__init__(
         self, attr2accessor={}, packetClassesName="PlayerStats", requiredAttrPacketFields=["serial"]
     )
예제 #5
0
 def getAttrsAsPacket(self, **kwargs):
     if not kwargs.has_key('service'):
         kwargs['service'] = self.service
     return AttrsLookup.getAttrsAsPacket(self, **kwargs)
예제 #6
0
 def __init__(self, service = None):
     self.service = service
     AttrsLookup.__init__(self,
        attr2accessor = { },
        packetClassesName = "PlayerStats",
        requiredAttrPacketFields = [ 'serial' ])