Discussion:
[Erp5-dev] Site Error List Action
Tomasz Brzezina
2008-03-28 13:05:33 UTC
Permalink
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?
--
Tomasz Brzezina
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3327 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080328/e33e449e/attachment.bin>
Tomasz Brzezina
2008-03-28 13:26:11 UTC
Permalink
Post by Tomasz Brzezina
Why there's an error?
Module Products.ERP5Form.ListBox, line 1633, in query
1631 | self.current_page = 0
1633>| self.total_pages = int(max(self.total_size - 1, 0) /
max_lines) + 1
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
--
Tomasz Brzezina
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3327 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20080328/3a6b6b9b/attachment.bin>
bartek
2008-03-28 13:26:21 UTC
Permalink
Post by Tomasz Brzezina
Post by Tomasz Brzezina
Why there's an error?
Module Products.ERP5Form.ListBox, line 1633, in query
1631 | self.current_page = 0
1633>| self.total_pages = int(max(self.total_size - 1, 0) /
max_lines) + 1
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
Post by Tomasz Brzezina
------------------------------------------------------------------------
_______________________________________________
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"
Loading...