"Michael Oschmann" <[EMAIL PROTECTED]> writes:

>    Hi Loic
>
>
>    If I want to request a list of holdem tables, what should the value of
>    the string be in PacketpokerTableSelect?
>
>    I've tried  "1<tabulation>holdem" & "1holdem" & "1 holdem" & "holdem".
>

        That would be "1<tabulation>holdem"

    def listTables(self, string, serial):
        criterion = split(string, "\t")
        if string == '' or string == 'all':
            return self.tables
        elif string == 'my':
            return filter(lambda table: serial in table.game.serialsAll(), 
self.tables)
        elif re.match("^[0-9]+$", string):
            return filter(lambda table: table.currency_serial == int(string), 
self.tables)
        elif len(criterion) > 1:
            ( currency_serial, variant ) = criterion
            if currency_serial:
                currency_serial = int(currency_serial)
                return filter(lambda table: table.game.variant == variant and 
table.currency_serial == currency_serial, self.tables)
            else:
                return filter(lambda table: table.game.variant == variant, 
self.tables)
        else:
            return filter(lambda table: table.game.name == string, self.tables)


-- 
+33 1 76 60 72 81  Loic Dachary mailto:[EMAIL PROTECTED]
http://dachary.org/loic/gpg.txt sip:[EMAIL PROTECTED]
Latitude: 48.86962325498033 Longitude: 2.3623046278953552

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to