Updated to CVS head
1 parent 72a7230 commit c71dc07eeea0761dd3a46667427b1b592854d045
@Alex Tucker Alex Tucker authored on 17 Dec 2003
Showing 3 changed files
View
23
src/DocumentLibrary/FileConverters/wpd.py 0 → 100644
"""wpd to text file converter for Document Library"""
 
from os import popen, remove, path
from Globals import package_home
 
content_type = 'application/wordperfect'
 
content_description = """WordPerfect [<a href="http://www.wordperfect.com" target="_blank">WordPerfect</a>]"""
 
catwpd_file = path.join(package_home(globals()), 'catwpd')
# Uses catwpd, found in the wpConverter directory. See wpConverter/README for
# information on installing catwpd
# Requires write access to /tmp
 
def convert(documentFile):
"""Convert WordPerfect data to raw text"""
tmp_name = documentFile._writeToTempFile()
text = popen('%s %s ' % (catwpd_file, tmp_name)).read()
remove(tmp_name)
return text
View
src/DocumentLibrary/document_icons/wordperfect_large.gif 0 → 100644
View
src/DocumentLibrary/document_icons/wordperfect_small.gif 0 → 100644