-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I implemented the following components for jpoker.plugins.tourneyDetails:
Table listing:
http://jpoker.aminche.com/hg/jpoker/rev/3de0b6d1ccf9
Only showing when tourney.state == "registering"
http://jpoker.aminche.com/hg/jpoker/rev/c7cf24957b19
Table players listing:
http://jpoker.aminche.com/hg/jpoker/rev/e949e1602711
http://jpoker.aminche.com/hg/jpoker/rev/7a219ea215e9
http://jpoker.aminche.com/hg/jpoker/rev/4b6f52fc0de9
Prizes listing:
http://jpoker.aminche.com/hg/jpoker/rev/dae140a3bff3
http://jpoker.aminche.com/hg/jpoker/rev/fdc29c99f9d7
That need the attached server side patch in order to be available.

Feel free to pull using:
hg pull http://jpoker.aminche.com/hg/jpoker/
- --
bou ^


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://getfiregpg.org

iD8DBQFImeeMZmEdV9SHoe4RAvIiAJ9NZA7blgxhJ6c0xkIGtPe2N40uvACeKjuM
vOthchFHFDyw5Pxhdnw1cyA=
=ztMD
-----END PGP SIGNATURE-----
Index: tests/test-pokerservice.py.in
===================================================================
--- tests/test-pokerservice.py.in	(revision 4223)
+++ tests/test-pokerservice.py.in	(working copy)
@@ -748,8 +748,10 @@
                                                                 game_id = tourney_serial))
         self.service.db.db.query("INSERT INTO user2table VALUES (" + str(self.user1_serial) + ", " + str(table_serial) + ", " + str(table_money) + ", 0)")
         self.service.db.db.query("UPDATE user2tourney SET table_serial = " + str(table_serial))
+        self.service.tourneys[tourney_serial].can_register = False
         packet = self.service.tourneyManager(tourney_serial)
-        self.assertEqual(tourney_serial, packet.tourney['serial'])
+        self.assertEqual(tourney_serial, packet.tourney['serial'])        
+        self.assertNotEqual(None, packet.tourney['rank2prize'])
         self.assertEqual(1, packet.tourney['registered'])
         self.assertEqual({'4' : {'rank': -1,
                                  'table_serial': table_serial,
Index: pokernetwork/pokerservice.py
===================================================================
--- pokernetwork/pokerservice.py	(revision 4223)
+++ pokernetwork/pokerservice.py	(working copy)
@@ -716,6 +716,9 @@
         cursor.execute("SELECT * FROM tourneys WHERE serial = " + str(tourney_serial));
         packet.tourney = cursor.fetchone()
         packet.tourney["registered"] = len(user2tourney)
+        packet.tourney["rank2prize"] = None
+        if self.tourneys.has_key(tourney_serial):
+            packet.tourney["rank2prize"] = self.tourneys[tourney_serial].prizes()
 
         cursor.close()
 
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to