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

Martin Sjögren md9ms at mdstud.chalmers.se
Wed Oct 16 02:42:38 MDT 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: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Detta är en digitalt signerad	meddelandedel
URL: </pipermail/twisted-python/attachments/20021016/338a40a3/attachment.sig>


More information about the Twisted-Python mailing list