[Erp5-dev] Site Error List Action - SOLVED

bartek bartek at erp5.pl
Fri Mar 28 14:26:21 CET 2008


Tomasz Brzezina wrote:
> Tomasz Brzezina pisze:
>> Why there's an error?
>>
>>       Module Products.ERP5Form.ListBox, line 1633, in query
>>       1631 |      self.current_page = 0
>>       1632 |    else:
>>       1633>|      self.total_pages = int(max(self.total_size - 1, 0) / 
>> max_lines) + 1
>>       1634 |      if start >= self.total_size:
>>       1635 |        start = max(self.total_size - 1, 0)
>>
>> TypeError: unsupported operand type(s) for /: 'int' and 'NoneType'
>>
>> where should I set max_lines?
> I found it - I have to enable preferences ;D
> 

Take a closer look at the listbox' configuration tab, it will teach you 
a lot.

Bartek

> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev


-- 
"feelings affect productivity. (...) unhappy people write worse 
software, and less of it."
Karl Fogel, "Producing Open Source Software"



More information about the Erp5-dev mailing list