(Magical Zope form variables)

Description

Zope provides some magical HTTP POST variable names which are automatically converted to native Python primivites by ZPublisher.

Quick explanation

If you have HTML:

<INPUT TYPE="text" NAME="member.age:int"></P><BR>

Then:

request.form["member.age"]

will return integer 30 instead of string “30”.

ノート

This behavior is hard-coded to ZPublisher and cannot be extended or disabled. The recommendation is not to use it, but do the conversion of data-types yourself or use a more high-level form framework like z3c.form.

目次

前のトピックへ

(Archetypes のウィジェット)

次のトピックへ

(イベントとルール)

このページ