#6169 (get_layout_handle for ShowDetail on pcsw.Clients failed (no such table: properties_propgroup))
by Luc Saffre · in Developers · assigned to Luc Saffre
Summary
welfare is failing on GitLab.
Children
Comments
- 1 year, 3 months ago by Sharif Mehedi about #6169 (get_layout_handle for ShowDetail on pcsw.Clients failed (no such table: properties_propgroup)) : Somebody calls the cv.models.ConfiguredPropsByPerson.get_actor_label at startup. Which tries to lookup a database object, see here. It's fine if a record and a database already exists but breaks when there's no existing database e.g. at pm prep. So, we catch OperationalError on it when no database e...
- 1 year, 4 months ago by Sharif Mehedi about #6169 (get_layout_handle for ShowDetail on pcsw.Clients failed (no such table: properties_propgroup)) : welfare test suite is passing now
- 1 year, 4 months ago by Luc Saffre about #6169 (get_layout_handle for ShowDetail on pcsw.Clients failed (no such table: properties_propgroup)) : In lino_welfare/modlib/cv/models.py line 104 it is doing a db access already during startup. Which fails during pm prep. Solution: put a try...except around it and return "" (or the error message? Or the cls.__name__). Strange: why doesn't the error occur on my local machine?
- 1 year, 4 months ago by Luc Saffre about #6169 (get_layout_handle for ShowDetail on pcsw.Clients failed (no such table: properties_propgroup)) : Created new Ticket #6169 (get_layout_handle for ShowDetail on pcsw.Clients failed (no such table: properties_propgroup)).