[ZDP] RFD: "Zope Snippets"
Tom Deprez
tom.deprez@uz.kuleuven.ac.be
Thu, 04 Nov 1999 10:25:06 +0100
>I was just looking around, and I can't see anything on the Zope
>site for storing those little snippets of code that are just a little
>big for a tip, but a lot smaller than a how-to. Something like:
>
> If you hijack a form (e.g. to gather auth info) you can
> pass through the values that were passed using the following:
>
> <form action="blah">
> <!-- blah blah blah... -->
>
> <!--#in "REQUEST.form.keys()"-->
> <input type="hidden" name="<!--#var sequence-item-->"
> value="<!--#var "REQUEST.form[_['sequence-item']]" html_quote-->">
> <!--#/in-->
>
> <!-- blah blah blah... -->
> </form>
>
> It won't preserve the types of the objects, unfortunately.
>
>
>Is it worth considering something in ZDP for storing these useful little
>nuggets of code? They're not _really_ a pattern in the strictest sense
>of the word, more just a little "way to do something".
>
Certainly! This would be great for everybody! If you would like to make a
certain mechanism to easy post these 'snipperts' and to easy search for
them. Perhaps a ZClass?