def __init__(self, service=None): self.service = service AttrsLookup.__init__( self, attr2accessor={"percentile": UserStatsRankPercentileAccessor(), "rank": UserStatsRankPercentileAccessor()}, packetClassesName="PlayerStats", requiredAttrPacketFields=["serial"], )
def __init__(self, service = None): self.service = service AttrsLookup.__init__(self, attr2accessor = { 'percentile' : UserStatsRankPercentileAccessor(), 'rank' : UserStatsRankPercentileAccessor() }, packetClassesName = "PlayerStats", requiredAttrPacketFields = [ 'serial' ])
def getAttrsAsPacket(self, **kwargs): if not kwargs.has_key("service"): kwargs["service"] = self.service return AttrsLookup.getAttrsAsPacket(self, **kwargs)
def __init__(self, service=None): self.service = service AttrsLookup.__init__( self, attr2accessor={}, packetClassesName="PlayerStats", requiredAttrPacketFields=["serial"] )
def getAttrsAsPacket(self, **kwargs): if not kwargs.has_key('service'): kwargs['service'] = self.service return AttrsLookup.getAttrsAsPacket(self, **kwargs)
def __init__(self, service = None): self.service = service AttrsLookup.__init__(self, attr2accessor = { }, packetClassesName = "PlayerStats", requiredAttrPacketFields = [ 'serial' ])