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))
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))
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))
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
def setArenaGuiLabel(self, label): if label: self.setChild(SimpleExtension('arena-label', label))
def setGameServerHost(self, host): if host: self.setChild(SimpleExtension('game-host', host))
def setIgrRoomID(self, igrRoomID): if igrRoomID: self.setChild(SimpleExtension('igr-room-id', igrRoomID))