"Mogens Melander" <[EMAIL PROTECTED]> writes:
> On Wed, November 21, 2007 08:57, Loic Dachary wrote:
>>
>> 2) find the log entries that show currency_one.php in poker-network.log
>> and see if there is an error associated with it.
>
> Wow, playing around with poke2d, actually generated some output in
> poker-network.log
>
> It make no sense at all to me, but hopefully it will for you guys (attached).
self.calcsizestring(self.birthdate)
File "/usr/local/poker/lib/python2.5/site-packages/pokernetwork/packets.py",
line 183, in calcsizestring
return calcsize("!H") + len(string)
exceptions.TypeError: object of type 'datetime.date' has no len()
That looks like a genuine bug to me. Please try with the following
patch and let me know if it helps. Apparently MySQLdb returns date using
a dedicated type instead of a string as it used to. Explicit conversion
is needed.
Index: pokerpackets.py
===================================================================
--- pokerpackets.py (revision 3474)
+++ pokerpackets.py (working copy)
@@ -2706,7 +2706,7 @@
self.calcsizestring(self.addr_country) +
self.calcsizestring(self.phone) +
self.calcsizestring(self.gender) +
- self.calcsizestring(self.birthdate)
+ self.calcsizestring(str(self.birthdate))
)
def __str__(self):
The other error, earlier in the file, indicates that a number
describing a tournament is out of range and python2.5 is not happy
about it. It would help to have more context to figure out which one
it is.
Cheers,
--
+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