Scusate se disturbo ancora qui, ma (che nervoso) la ml di sqlalchemy proprio non riesco a farla andare! Quindi chiedo venia in anticipo, e chiedo anche se qualcuno può illuminarmi. Ho il seguente errore:

sqlalchemy.exceptions.ArgumentError: Error determining primary and/or secondary join for relationship 'righe' between mappers 'Mapper|datadef|cancella_unomolti01' and 'Mapper|datadef|cancella_unomolti01_righe'. If the underlying error cannot be corrected, you should specify the 'primaryjoin' (and 'secondaryjoin', if there is an association table present) keyword arguments to the relation() function (or for backrefs, by specifying the backref using the backref() function with keyword arguments) to explicitly specify the join conditions. Nested error is "Table 'None.cancella_unomolti01' not defined"

due mapper e relative tabelle "incapsulati" in due oggetti. Ciascuno ha il suo mapper, la tabella "molti" ha la sua definizione "ForeignKey('cancella_unomolti01.progressivo'), il mapper relativo al lato "uno" ha:
cls.mapper.add_property('righe', relation(self.righe_proxy.mapper) )

Non capisco da dove arrivi quel None ('None.cancella_unomolti01') nella segnalazione Nested error.

Qualche idea?
Grazie in anticipo e scusate il disturbo...

max
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a