Problem with indexing of Silva Agenda Items when upgrading
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Silva |
Fix Released
|
High
|
Job van Achterberg |
Bug Description
From the silva-general list:
http://
I've run into an issue while trying to upgrade a Silva 2.3.7 site to
3.0.1. Specifically it is the indexing of Silva Agenda Items at the end
of the upgrade script. I am getting this traceback:
Traceback (innermost last):
Module infrae.
Module infrae.
- Published class: Products.
- Object path: /silva/
- Object type: Silva Extension Service
Module infrae.
Module infrae.
Module infrae.
Module Zope2.App.startup, line 301, in commit
Module transaction.
Module transaction.
Module transaction.
Module silva.core.
Module Products.
Module Products.
Module silva.app.
Module silva.app.
Module silva.app.
TypeError: expected integer key
The key that __insert_
as expected. I have traced the origin of the key's value to the
silva.app.
returns a long. In Silva 2.3.7, the datetime_
Products.
wrapping the computation in a call to int().
Was the upgrade supposed to change the type of the keys used in the
index to long? Or should datetime_
before? Or something else? Distributing the division performed in the
method keeps the return value completely within an int:
(delta.
3600)
Changed in silva: | |
status: | New → Confirmed |
Changed in silva: | |
status: | Fix Committed → Fix Released |
A fix should have been committed a while back. Migrations need to be done again in order to test it.