bugunderware - Bugs: bug #4518, localization problem in string...

 
 
Show feedback again

bug #4518: localization problem in string amount

Submitted by:  Ludovic HEYBERGER <gorila>
Submitted on:  Thu 13 Oct 2005 03:07:44 PM UTC  
 
Category: NoneEffort: 0.00
Priority: 5 - NormalSeverity: 3 - Normal
Status: NonePrivacy: Public
Assigned to: Jérôme Jeannin <griim>Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 13 Oct 2005 03:07:44 PM UTC, original submission:
  • problem when sitting and using the maximum amount (5000):

PokerInterfaceProtocol: dataReceived buy_in5000,00
PokerInterface::event: ('buy_in', '5000,00')
handleBuyIn: ('5000,00',)
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/twisted/internet/default.py", line 526, in doSelect
_logrun(selectable, _drdw, selectable, method, dict)
File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 65, in callWithLogger
callWithContext({"system": lp}, func, args, *kw)
File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 52, in callWithContext
return context.call({ILogContext: newCtx}, func, args, *kw)
File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 43, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/python2.4/site-packages/twisted/internet/default.py", line 535, in _doReadOrWrite
why = getattr(selectable, method)()
File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 255, in doRead
return self.protocol.dataReceived(data)
File "/usr/lib/python2.4/site-packages/pokerui/pokerinterface.py", line 507, in dataReceived
self.event(*args)
File "/usr/lib/python2.4/site-packages/pokerui/pokerinterface.py", line 86, in event
data = self.handleBuyIn(data[1:])
File "/usr/lib/python2.4/site-packages/pokerui/pokerinterface.py", line 431, in handleBuyIn
self.publishEvent(INTERFACE_BUY_IN, value)
File "/usr/lib/python2.4/site-packages/twisted/python/dispatch.py", line 49, in publishEvent
cb(*args, **kwargs)
File "/usr/lib/python2.4/site-packages/pokerui/pokerrenderer.py", line 1017, in <lambda>
callback = lambda value: self.buyIn(game, value)
File "/usr/lib/python2.4/site-packages/pokerui/pokerrenderer.py", line 1026, in buyIn
amount = int(float(value))))
exceptions.ValueError: invalid literal for float(): 5000,00

  • while everything goes normally with an amount of 2000:

PokerInterfaceProtocol: dataReceived buy_in2000
PokerInterface::event: ('buy_in', '2000')
handleBuyIn: ('2000',)
sendPacket type = POKER_BUY_IN(159) serial = 544 game_id = 111 amount = 2000

Ludovic HEYBERGER <gorila>

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by loic (Updated the item)
  • -unavailable- added by lejade (Updated the item)
  • -unavailable- added by gorila (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Feb 2007 02:39:19 PM UTCloicAssigned toloic=>griim
    Mon 19 Jun 2006 05:22:33 PM UTClejadeAssigned toNone=>loic
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup