Package qm :: Package external :: Package DocumentTemplate :: Module DT_HTML :: Class HTML
[hide private]
[frames] | no frames]

Class HTML
source code

DT_String.String --+
                   |
                  HTML
Known Subclasses:
HTMLDefault, HTMLFile

HTML Document Templates

HTML Document templates use HTML server-side-include syntax,
rather than Python format-string syntax.  Here's a simple example:

  <!--#in results-->
    <!--#var name-->
  <!--#/in-->

HTML document templates quote HTML tags in source when the
template is converted to a string.  This is handy when templates
are inserted into HTML editing forms.



Instance Methods [hide private]
  tagre(self)
  parseTag(self, match_ob, command=None, sargs='')
Parse a tag using an already matched re Return: tag, args, command, coname where: tag is the tag, args is the tag's argument string, command is a corresponding command info structure if the tag is a start tag, or None otherwise, and coname is the name of a continue tag (e.g.
  SubTemplate(self, name)
  varExtra(self, match_ob)
  manage_edit(self, data, REQUEST=None)
edit a template
  quotedHTML(self, text=None, character_entities=((('&'),'&amp;'), (("<"),'&lt;'), ((">"),'&gt;'), (('"'),'&quot;')))
  errQuote(self, text=None, character_entities=((('&'),'&amp;'), (("<"),'&lt;'), ((">"),'&gt;'), (('"'),'&quot;')))
  __str__(self)
  management_interface(self)
Hook to allow public execution of management interface with everything else private.
  manage_editForm(self, URL1, REQUEST)
Display doc template editing form
  manage(self, URL1, REQUEST)
Display doc template editing form
  manage_editDocument(self, URL1, REQUEST)
Display doc template editing form

Inherited from DT_String.String: ZDocumentTemplate_afterRender, ZDocumentTemplate_beforeRender, __call__, __getstate__, __init__, cook, default, id, initvars, munge, name, parse, parse_block, parse_close, parse_error, read, read_raw, setName, skip_eol, var

Inherited from DT_String.String (private): _parseTag


Class Variables [hide private]
tagre__roles__  
parseTag__roles__  
SubTemplate__roles__  
varExtra__roles__  
manage_edit__roles__  
quotedHTML__roles__  
errQuote__roles__  
management_interface__roles__  
manage_editForm__roles__  
manage_editDocument__roles__  
manage__roles__  
_manage_editForm  
document_template_edit_footer  
document_template_edit_header  
document_template_edit_width  
document_template_form_header  
editConfirmation  

Inherited from DT_String.String: ZDocumentTemplate_afterRender__roles__, ZDocumentTemplate_beforeRender__roles__, _parseTag__roles__, commands, commands__roles__, cook__roles__, default__roles__, func_code, func_defaults, func_defaults__roles__, initvars__roles__, isDocTemp, munge__roles__, parse__roles__, parse_block__roles__, parse_close__roles__, parse_error__roles__, read__roles__, read_raw__roles__, setName__roles__, shared_globals, shared_globals__roles__, skip_eol__roles__, validate, validate__roles__, var__roles__


Method Details [hide private]

tagre(self)

source code 
Overrides: DT_String.String.tagre

parseTag(self, match_ob, command=None, sargs='')

source code 
Parse a tag using an already matched re

Return: tag, args, command, coname

where: tag is the tag,
       args is the tag's argument string,
       command is a corresponding command info structure if the
          tag is a start tag, or None otherwise, and
       coname is the name of a continue tag (e.g. else)
         or None otherwise

Overrides: DT_String.String.parseTag

SubTemplate(self, name)

source code 
Overrides: DT_String.String.SubTemplate

varExtra(self, match_ob)

source code 
Overrides: DT_String.String.varExtra

manage_edit(self, data, REQUEST=None)

source code 
edit a template
Overrides: DT_String.String.manage_edit

quotedHTML(self, text=None, character_entities=((('&'),'&amp;'), (("<"),'&lt;'), ((">"),'&gt;'), (('"'),'&quot;')))

source code 

errQuote(self, text=None, character_entities=((('&'),'&amp;'), (("<"),'&lt;'), ((">"),'&gt;'), (('"'),'&quot;')))

source code 
Overrides: DT_String.String.errQuote

__str__(self)
(Informal representation operator)

source code 
Overrides: DT_String.String.__str__

management_interface(self)

source code 
Hook to allow public execution of management interface with everything else private.

manage_editForm(self, URL1, REQUEST)

source code 
Display doc template editing form

manage(self, URL1, REQUEST)

source code 
Display doc template editing form

manage_editDocument(self, URL1, REQUEST)

source code 
Display doc template editing form

Class Variable Details [hide private]

tagre__roles__

Value:
()                                                                     
      

parseTag__roles__

Value:
()                                                                     
      

SubTemplate__roles__

Value:
()                                                                     
      

varExtra__roles__

Value:
()                                                                     
      

manage_edit__roles__

Value:
()                                                                     
      

quotedHTML__roles__

Value:
()                                                                     
      

errQuote__roles__

Value:
()                                                                     
      

management_interface__roles__

Value:
()                                                                     
      

manage_editForm__roles__

Value:
()                                                                     
      

manage_editDocument__roles__

Value:
()                                                                     
      

manage__roles__

Value:
()                                                                     
      

_manage_editForm

Value:
<qm.external.DocumentTemplate.DT_HTML.HTML instance at 0xb746534c>     
      

document_template_edit_footer

Value:
'''<FONT SIZE="-1">
    <I><A HREF="http://www.digicool.com/products/copyright.html">
    &copy; 1997 Digital Creations, L.L.C.</A></I></FONT>'''            
      

document_template_edit_header

Value:
'<h2>Edit Document</h2>'                                               
      

document_template_edit_width

Value:
58                                                                    
      

document_template_form_header

Value:
''                                                                     
      

editConfirmation

Value:
<qm.external.DocumentTemplate.DT_HTML.HTML instance at 0xb746542c>