[Twisted-Python] Question about resources (and woven?)

Martin Sjögren md9ms at mdstud.chalmers.se
Wed Oct 16 04:42:38 EDT 2002


I have an xhtml template that has

<textarea model="quote" view="EscapedText" name="quote" id="quote"
cols="60" rows="5"></textarea>
<input model="comment" view="Input" type="text" name="comment"
id="comment" size="30" value="" />
<input model="sentby" view="Input" type="text" name="name" id="name"
size="30" value="" />
<select model="languages" view="List" name="language" id="language">
    <option id="listItem" view="MyOption" />
</select>

This all lives in a submodel called 'editor'. When I submit this form, I
get the following request.args:

{'quote': ['this is a quote'], 'editor/sentby': ['my name'],
'editor/comment': ['this is a comment'], 'language': ['Swedish']}

My question is: Why the 'editor/' part in sentby and comment, but not
quote and language? Why is it using 'sentby' instead of 'name' (which is
the id and name settings of the input)?


Regards,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad
	meddelandedel
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20021016/338a40a3/attachment.pgp 


More information about the Twisted-Python mailing list