|
|
@ -77,15 +77,22 @@ for member in memberpages:
|
|
|
|
if key in ['Extra', 'Description', 'Bio'] and workdict[key]:
|
|
|
|
if key in ['Extra', 'Description', 'Bio'] and workdict[key]:
|
|
|
|
workdict[key] = pandoc2html( (workdict[key].decode('utf-8')) )
|
|
|
|
workdict[key] = pandoc2html( (workdict[key].decode('utf-8')) )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print 'EXTRA', type (workdict['Extra']), workdict['Extra']
|
|
|
|
# fill template with dictionary/mw_page values
|
|
|
|
# fill template with dictionary/mw_page values
|
|
|
|
workpage_html = page_template.format(title=(workdict['Title']),
|
|
|
|
pprint.pprint(workdict)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(workdict['Creator'])>1 and len(workdict['Creator'])>1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
workpage_html = page_template.format(title=('Title'),#workdict['Title']),
|
|
|
|
creator=(workdict['Creator']),
|
|
|
|
creator=(workdict['Creator']),
|
|
|
|
date=workdict['Date'],
|
|
|
|
date=workdict['Date'],
|
|
|
|
website=workdict['Website'],
|
|
|
|
website=workdict['Website'],
|
|
|
|
thumbnail=workdict['Thumbnail'],
|
|
|
|
thumbnail=workdict['Thumbnail'],
|
|
|
|
bio=(workdict['Bio']),
|
|
|
|
bio=(workdict['Bio']),
|
|
|
|
description=(workdict['Description']),
|
|
|
|
description=('desc'),#workdict['Description']),
|
|
|
|
extra=( workdict['Extra'] )
|
|
|
|
extra=( 'extra')#workdict['Extra'] )
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
# parse workpage_html # process html: img full url
|
|
|
|
# parse workpage_html # process html: img full url
|
|
|
@ -113,11 +120,13 @@ for member in memberpages:
|
|
|
|
work_file.write(workpage_html)
|
|
|
|
work_file.write(workpage_html)
|
|
|
|
work_file.close()
|
|
|
|
work_file.close()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print 'DICT', type(workdict['Title'])
|
|
|
|
# insert work to index
|
|
|
|
# insert work to index
|
|
|
|
index_addwork( parent=index_container,
|
|
|
|
index_addwork( parent=index_container,
|
|
|
|
workid=key,
|
|
|
|
workid=key,
|
|
|
|
href=work_filename.replace('web/',''),
|
|
|
|
href=work_filename.replace('web/',''),
|
|
|
|
title=(workdict['Title']).decode('utf-8'),
|
|
|
|
title=(workdict['Title']),#.decode('utf-8'),
|
|
|
|
creator=workdict['Creator'].decode('utf-8'),
|
|
|
|
creator=workdict['Creator'].decode('utf-8'),
|
|
|
|
date=workdict['Date'],
|
|
|
|
date=workdict['Date'],
|
|
|
|
thumbnail=workdict['Thumbnail'],
|
|
|
|
thumbnail=workdict['Thumbnail'],
|
|
|
|