Re: list oder string aus formular checkbox

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gottfried Sascha wrote:
> Hallo,
> 
> ich denke der Zope Built-in Ansatz zur Typkonvertierung von Formular-Feldern ist hier zielführend und das Konzept selbst kannst du in anderen Anwendungsfällen vorteilhaft einsetzen.
> 
> <form action="actionURL">
> 
>   <p>I would prefer not to be disturbed at the following
>   times:</p>
> 
>   <input type="checkbox" name="myselection:list"
>   value="Hallo" /> <br />
> 
>   <input type="checkbox" name="myselection:list"
>   value="Welt" /> <br />
> 
> </form>
> 
> Im Request findest du eine Liste mit dem Namen (tal:define="myselection request/disturb_times") unabhängig von der Anzahl der gewählten Checkboxen.
> Ist alles hier erklärt - das obige Beispiel ist vereinfacht dargestellt:
> http://docs.zope.org/zope2/zope2book/ScriptingZope.html?highlight=records#passing-parameters-to-scripts
> 
> Interessant ist, dass mehrere Typkonverter kombinierbar sind, wie in der Zope Doku aufgezeigt wird. Nur einer von vielen Gründen, um Zope Page Templates dafür zu schätzen.


Das hat mit ZPT nichts zu tun sondern ist eine Funktionalität des
ZPublishers. Die Formulare könntest Du auch so in DTML schreiben - wenn
man wollen würde :-P Aber Deine Ratschlag ist absolut korrekt .

http://docs.zope.org/zope2/zope2book/ScriptingZope.html#passing-parameters-to-scripts

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJNa90vAAoJEADcfz7u4AZjhiELviyfnj47eeRg5RfrIs0qFD9U
MYNuudvRqwRhcs882HFnyJdRwbU3GPbqpYcr+nAXsI/yZg0wcZFzkaz1mBMxtJxr
yr10xgzO/xDOa4/8vAAuE4Z0j1o4tj4zHbadgA6DOEwD3RSbWm+p19TZKIARC/5v
63zm4avPAWK8nwo7xv4znE4OaC95e9FILtxKGvB57pjskwVsM+yLdiHsFucM3V/9
uD6aj70VLkzRh3ujTpoVhXovTGLHaJl8SchT9NlCmJNz0pyfq8bKXdfWGJ4fjvjP
3aE3An4clN94gpdzjlONt9yt/3R9s3OOivixDjJDujFUK9na1ALo1qR9LyeH7Mjk
FZjcwDwJzWeJ+7XuQ6uEHQfOVbVtGhSQ95uAk0k1YkKFBHH9g8OCr+To5zQ/m3f8
X4duHUyZU7nO2s7J7IBrFbCMZXaE1SRmc02T+gLEaRd8pJDPsN4l+xil4Gzui8dL
iyzD84+hyXAjj6SL6s7bEnuEZiGJUXg=
=vtx2
-----END PGP SIGNATURE-----



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 331 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.