[Python-Dev] Fwd: [ALERT] cityoftoronto: problem saving to products table

Tony Lownds tony at pagedna.com
Fri Jan 23 20:09:08 CET 2009


Hi Paulus,

Have you fixed these aerts before? We need a script to fix these alerts.

Thanks
-Tony

Begin forwarded message:

> From: support+dev at pagedna.com
> Date: January 23, 2009 11:00:01 AM PST
> To: problems at pagedna.com
> Subject: [ALERT] cityoftoronto: problem saving to products table
>
> problem saving to products table
>
> Traceback (most recent call last):
>  File "/opt/printra/lib/python/printra/sossite/KindManager.py", line  
> 325, in save_to_products_table
>    self.save_to_products_table2(kinds)
>  File "/opt/printra/lib/python/printra/sossite/KindManager.py", line  
> 344, in save_to_products_table2
>    if dbkind.update(site, kind):
>  File "/opt/printra/lib/python/printra/sossite/KindManager.py", line  
> 490, in update
>    v = fn(kind)
>  File "/opt/printra/lib/python/printra/sossite/KindManager.py", line  
> 474, in _buy_price
>    return coerce_qtyspec(kind.buy_qtyspec).price_for_qty(1)
>  File "/opt/printra/lib/python/printra/sossite/Sos2qtyspec.py", line  
> 778, in price_for_qty
>    q, p, l = _qtypricesplit(q)
>  File "/opt/printra/lib/python/printra/sossite/Sos2qtyspec.py", line  
> 671, in _qtypricesplit
>    raise ValueError, "bad tuple to qtyonly: %s" % t
> ValueError: bad tuple to qtyonly: [(1000, '1000 - $67.42'), (6000,  
> '6000 - $356.52'), (10000, '10000 - $486.2')]
>
> Menu user: rolando
> Script: /inet/www/clients/cityoftoronto/index.cgi
> Machine: siteserver3
> Directory: /mnt/sitenfs2_clients/cityoftoronto
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090123/a96d9de9/attachment.htm>


More information about the Python-Dev mailing list