Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
PortalTransforms.transforms.word_to_html.word_to_html Class Reference
Collaboration diagram for PortalTransforms.transforms.word_to_html.word_to_html:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def name
def convert

Static Public Attributes

tuple inputs = ('application/msword',)
string output = 'text/html'
string output_encoding = 'utf-8'
 tranform_engine = document.__module__

Static Private Attributes

 __implements__ = itransform
string __name__ = "word_to_html"

Detailed Description

Definition at line 32 of file word_to_html.py.


Member Function Documentation

def PortalTransforms.transforms.word_to_html.word_to_html.convert (   self,
  data,
  cache,
  kwargs 
)

Definition at line 45 of file word_to_html.py.

00045 
00046     def convert(self, data, cache, **kwargs):
00047         orig_file = 'unknown.doc'
00048 
00049         doc = document(orig_file, data)
00050         doc.convert()
00051         html = doc.html()
00052 
00053         path, images = doc.subObjects(doc.tmpdir)
00054         objects = {}
00055         if images:
00056             doc.fixImages(path, images, objects)
00057         doc.cleanDir(doc.tmpdir)
00058 
00059         cache.setData(html)
00060         cache.setSubObjects(objects)
00061         return cache

Definition at line 42 of file word_to_html.py.

00042 
00043     def name(self):
00044         return self.__name__

Here is the caller graph for this function:


Member Data Documentation

Definition at line 33 of file word_to_html.py.

string PortalTransforms.transforms.word_to_html.word_to_html.__name__ = "word_to_html" [static, private]

Definition at line 35 of file word_to_html.py.

tuple PortalTransforms.transforms.word_to_html.word_to_html.inputs = ('application/msword',) [static]

Definition at line 36 of file word_to_html.py.

Definition at line 37 of file word_to_html.py.

Definition at line 38 of file word_to_html.py.

Definition at line 40 of file word_to_html.py.


The documentation for this class was generated from the following file: