Logo Search packages:      
Sourcecode: ajaxterm version File versions  Download package

qweb::QWebHtml Class Reference

Inheritance diagram for qweb::QWebHtml:

qweb::QWebXml

List of all members.


Detailed Description

QWebHtml
QWebURL:
QWebField:
QWebForm:
QWebHtml:
    an extended template engine, with a few utility class to easily produce
    HTML, handle URLs and process forms, it adds the following magic attributes:

    t-href t-action t-form-text t-form-password t-form-textarea t-form-radio
    t-form-checkbox t-form-select t-option t-selected t-checked t-pager

# explication URL:
# v['tableurl']=QWebUrl({p=afdmin,saar=,orderby=,des=,mlink;meta_active=})
# t-href="tableurl?desc=1"
#
# explication FORM: t-if="form.valid()"
# Foreach i
#   email: <input type="text" t-esc-name="i" t-esc-value="form[i].value" t-esc-class="form[i].css"/>
#   <input type="radio" name="spamtype" t-esc-value="i" t-selected="i==form.f.spamtype.value"/>
#   <option t-esc-value="cc" t-selected="cc==form.f.country.value"><t t-esc="cname"></option>
# Simple forms:
#   <input t-form-text="form.email" t-check="email"/>
#   <input t-form-password="form.email" t-check="email"/>
#   <input t-form-radio="form.email" />
#   <input t-form-checkbox="form.email" />
#   <textarea t-form-textarea="form.email" t-check="email"/>
#   <select t-form-select="form.email"/>
#       <option t-value="1">
#   <input t-form-radio="form.spamtype" t-value="1"/> Cars
#   <input t-form-radio="form.spamtype" t-value="2"/> Sprt

Definition at line 564 of file qweb.py.


Public Member Functions

def __init__
def add_template
def eval_bool
def eval_format
def eval_object
def eval_str
def eval_url
def form
def get_template
def register_tag
def render
def render_att_att
def render_att_checked
def render_att_href
def render_att_selected
def render_att_url_
def render_element
def render_node
def render_tag_action
def render_tag_call
def render_tag_esc
def render_tag_escf
def render_tag_escurl
def render_tag_foreach
def render_tag_form_checkbox
def render_tag_form_password
def render_tag_form_radio
def render_tag_form_select
def render_tag_form_text
def render_tag_form_textarea
def render_tag_if
def render_tag_option
def render_tag_pager
def render_tag_raw
def render_tag_rawf
def render_tag_rawurl
def render_tag_set

Public Attributes

 node

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

Generated by  Doxygen 1.6.0   Back to index