-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 25 May 2008, at 20:53, [EMAIL PROTECTED] wrote:
> I've gone through the tutorial and I'm seeing something odd with the
> foreign keys.
They seem okay if you short-circuit the Yaml.
Try:
for d in Director.query().all():
print d.movies
# print
dump(d.toYamlRep(),Dumper=Dumper,default_flow_style=False)
I get:
[<Movie: "Empire Strikes Back" (1980)>, <Movie: "Star Wars" (1977)>]
[<Movie: "Alien" (1979)>, <Movie: "Blade Runner" (1982)>]
Which is what I'd expect.
Cheers,
Graham
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAkg50/kACgkQOsmLt1NhivyTHwCg4HJ1a9snKQd9h7UUNsJeB4Kg
RP0AnRFPO/yMCguJAwMA1eJff821BLIwiQCVAgUBSDnT+VnrWVZ7aXD1AQLn/wP+
JOIiOiZNvBjcbiLdOHaTWmELU6oLflB9oJI/RvkZD5vHjMcfZvcWMTSya2cuDYMu
g0kIRq+aG79O7I3noAu9L6JMsxvvQvV+Yei8LjIJ1nhtPzYPYVi9eksG0ZnsvAws
1T3B1AZgoRCam4wKy/j6/j/81DCJagYexKVOC5/CGjU=
=iqda
-----END PGP SIGNATURE-----
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SQLElixir" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---