Package gnue :: Package reports :: Package adapters :: Package filters :: Package MailMerge :: Package merge_rtf :: Module Adapter :: Class TransformAdapter
[show private | hide private]

Class TransformAdapter

_BaseAdapter --+        
               |        
TransformAdapter --+    
                   |    
  ContentHandler --+    
                   |    
    TransformAdapter --+
                       |
                      TransformAdapter


Method Summary
  escape(self, s)
    Inherited from TransformAdapter
  __init__(self, *args, **params)
  as_barcode(self, name, extras)
  as_text(self, name, extras)
  characters(self, text)
  close(self)
  endElement(self, name)
Signals the end of an element in non-namespace mode.
  getFieldValue(self, matchObject)
  merge(self, data, template, output)
  open(self)
  printComment(self, out, comment)
  startElement(self, name, attrs)
Signals the start of an element in non-namespace mode.
    Inherited from _BaseAdapter
  createTempFile(self, extension)
  deleteTempFile(self, name)
    Inherited from ContentHandler
  endDocument(self)
Receive notification of the end of a document.
  endElementNS(self, name, qname)
Signals the end of an element in namespace mode.
  endPrefixMapping(self, prefix)
End the scope of a prefix-URI mapping.
  ignorableWhitespace(self, whitespace)
Receive notification of ignorable whitespace in element content.
  processingInstruction(self, target, data)
Receive notification of a processing instruction.
  setDocumentLocator(self, locator)
Called by the parser to give the application a locator for locating the origin of document events.
  skippedEntity(self, name)
Receive notification of a skipped entity.
  startDocument(self)
Receive notification of the beginning of a document.
  startElementNS(self, name, qname, attrs)
Signals the start of an element in namespace mode.
  startPrefixMapping(self, prefix, uri)
Begin the scope of a prefix-URI Namespace mapping.

Class Variable Summary
int COMMENTABLE = 0                                                                     
str MIMETYPE = 'text/rtf'
str NAME = 'RTF'
str NEWLINE = ' '
str NEWRECORD = '\\page\r\n'
str REGEX = '\\A(.*?)(\\\\pard?.+)(}\\s*)\\Z'
    Inherited from TransformAdapter
str COMMENT_BEGIN = '#'
str COMMENT_END = '\n'
str FIELD_ENCLOSURE = '::'
str HEAD_DELIMITER = '^'
int MULTILINE_COMMENTS = 0                                                                     
str NEWPAGE = '\\p'
str TAIL_DELIMITER = '$'

Method Details

escape(self, s)

Overrides:
gnue.reports.adapters.filters.MailMerge._merge.MergeBase.TransformAdapter.escape

Class Variable Details

COMMENTABLE

Type:
int
Value:
0                                                                     

MIMETYPE

Type:
str
Value:
'text/rtf'                                                             

NAME

Type:
str
Value:
'RTF'                                                                  

NEWLINE

Type:
str
Value:
' '                                                                    

NEWRECORD

Type:
str
Value:
'''\\page\r
'''                                                                    

REGEX

Type:
str
Value:
'\\A(.*?)(\\\\pard?.+)(}\\s*)\\Z'                                      


GNUe Home

Private API

Developer's Corner