#5964 (pm prep in avanti1 says 'str' object has no attribute 'get_layout_handle')
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
Concepts sous-jacents
Commentaires
- 1 année, 7 mois ago by Luc Saffre about #5964 (pm prep in avanti1 says 'str' object has no attribute 'get_layout_handle') : Adding "if ar is None: return" would have been just a pseudo-solution, and would have led to other issues later. Actually it was because the new automatic python tools package of my Pulsar had moved the line "from .ui import" to the very top of the models.py file.
- 1 année, 7 mois ago by Luc Saffre about #5964 (pm prep in avanti1 says 'str' object has no attribute 'get_layout_handle') : In lino_xl/lib/courses/models.py we had:
@dd.requestfield(_("Enrolments")) def enrolments(self, ar): return self.get_enrolments(start_date=dd.today())
The issue went away when I added "if ar is None: return" before calling get_enrolments().
But why did it start only now? - 1 année, 7 mois ago by Luc Saffre about #5964 (pm prep in avanti1 says 'str' object has no attribute 'get_layout_handle') : Created new Ticket #5964 (pm prep in avanti1 says 'str' object has no attribute 'get_layout_handle').