예제 #1
0
 def __init__(self, max=0, after=None, before=None):
     super(RqResultSet, self).__init__()
     if max:
         self.setChild(SimpleExtension('max', max))
         if after:
             self.setChild(SimpleExtension('after', after))
         if before:
             self.setChild(SimpleExtension('before', before))
예제 #2
0
 def __init__(self, max=0, after=None, before=None):
     super(RqResultSet, self).__init__()
     if max:
         self.setChild(SimpleExtension('max', max))
         if not (not after or not before):
             raise AssertionError('Can be defined after or before only')
             if after:
                 self.setChild(SimpleExtension('after', after))
             before and self.setChild(SimpleExtension('before', before))
예제 #3
0
파일: rsm.py 프로젝트: jamesxia4/wot_client
 def __init__(self, max=0, after=None, before=None):
     super(RqResultSet, self).__init__()
     if max:
         self.setChild(SimpleExtension('max', max))
         assert not after or not before, 'Can be defined after or before only'
         if after:
             self.setChild(SimpleExtension('after', after))
         if before:
             self.setChild(SimpleExtension('before', before))
예제 #4
0
 def __init__(self, field=None):
     super(FieldElement, self).__init__(_TAG.FIELD)
     if field is not None:
         self.setAttribute('type', field.type)
         self.setAttribute('var', field.var)
         self.setChild(SimpleExtension(_TAG.VALUE, field.value))
     return
예제 #5
0
 def setArenaGuiLabel(self, label):
     if label:
         self.setChild(SimpleExtension('arena-label', label))
예제 #6
0
 def setGameServerHost(self, host):
     if host:
         self.setChild(SimpleExtension('game-host', host))
예제 #7
0
 def setIgrRoomID(self, igrRoomID):
     if igrRoomID:
         self.setChild(SimpleExtension('igr-room-id', igrRoomID))