if lastline == 'Name:':
names = thisline.split()
if len(names)>0:
- firstName = add_quotes(names[0])
+ notNames = ['Prince','Princess','St']
+ if names[0] in notNames:
+ firstName = add_quotes(names[1])
+ else:
+ firstName = add_quotes(names[0])
else:
firstName = ''
thisName = add_quotes(thisline)
yd = findYear.find_year(thisline)
md = findYear.find_month(thisline)
thisDied = add_quotes(thisline)
- finishedRecord = 1
+ finishedRecord=1
+ if lastline == 'URL:':
+ url = add_quotes(thisline)
+ if lastline == 'Picture:':
+ picture = add_quotes(thisline)
if lastline == 'Father:':
a = is_number(thisline)
s = make_insert('parents',[thisID, a])
if finishedRecord ==1:
s = make_insert('people',\
- [thisID,thisName,firstName,thisBorn,yb,thisDied,yd,mb,md])
+ [thisID,thisName,firstName,thisBorn,yb,\
+ thisDied,yd,mb,md,url,picture])
print s
finishedRecord = 0
if lastline == 'Style:':