[pod+gen] Added POD rendering based on ODS templates. Integrated with gen.
This commit is contained in:
parent
d5d99b67eb
commit
43261fde60
8 changed files with 144 additions and 92 deletions
|
@ -4,20 +4,23 @@ import os.path
|
|||
|
||||
# ------------------------------------------------------------------------------
|
||||
appyPath = os.path.realpath(os.path.dirname(appy.__file__))
|
||||
mimeTypes = {'odt': 'application/vnd.oasis.opendocument.text',
|
||||
od = 'application/vnd.oasis.opendocument'
|
||||
mimeTypes = {'odt': '%s.text' % od,
|
||||
'ods': '%s.spreadsheet' % od,
|
||||
'doc': 'application/msword',
|
||||
'rtf': 'text/rtf',
|
||||
'pdf': 'application/pdf'
|
||||
}
|
||||
mimeTypesExts = {
|
||||
'application/vnd.oasis.opendocument.text': 'odt',
|
||||
'application/msword' : 'doc',
|
||||
'text/rtf' : 'rtf',
|
||||
'application/pdf' : 'pdf',
|
||||
'image/png' : 'png',
|
||||
'image/jpeg' : 'jpg',
|
||||
'image/pjpeg' : 'jpg',
|
||||
'image/gif' : 'gif'
|
||||
'%s.text' % od: 'odt',
|
||||
'%s.spreadsheet' % od: 'ods',
|
||||
'application/msword': 'doc',
|
||||
'text/rtf': 'rtf',
|
||||
'application/pdf': 'pdf',
|
||||
'image/png': 'png',
|
||||
'image/jpeg': 'jpg',
|
||||
'image/pjpeg': 'jpg',
|
||||
'image/gif': 'gif'
|
||||
}
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue