TutorialDivingIn: alltogether.py

File alltogether.py, 0.7 kB (added by ged, 4 years ago)
Line 
1# you don't need to copy-paste this line, it's only useful when using the data
2# as "from section4 import *"
3from model import *
4
5rscott = Director(name=u"Ridley Scott")
6glucas = Director(name=u"George Lucas")
7
8hford = Actor(name=u"Harrison Ford")
9mhamill = Actor(name=u"Mark Hamill")
10sweaver = Actor(name=u"Sigourney Weaver")
11
12scifi = Genre(name=u"Science-Fiction")
13horror = Genre(name=u"Horror")
14
15alien = Movie(title=u"Alien", year=1979, director=rscott,
16              genres=[scifi, horror], actors=[sweaver])
17brunner = Movie(title=u"Blade Runner", year=1982, director=rscott,
18                genres=[scifi], actors=[hford])
19swars = Movie(title=u"Star Wars", year=1977, director=glucas,
20              genres=[scifi], actors=[mhamill, hford])