Re: [Zope] creating a generic field gadget
Well, I've finished my first pass at this. http://www.zope.org/Members/gchiu/fieldProduct It creates a data entry field that can be plugged into a form. Since the appearance of the gadget is defined by a method, the gadget is skinnable in that one could plug in a number of rendering methods to change the appearance of any data entry form throughout a web site. Comments please. -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] creating a generic field gadget
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In article <[EMAIL PROTECTED]> , R. David Murray <[EMAIL PROTECTED]> writes >Here's a clue : > > > value="" > Worked straight away. Thanks, - -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope -BEGIN PGP SIGNATURE- Version: PGPsdk version 1.7.1 iQA/AwUBOSqvM7TRdIWzaLpMEQJ7uQCgnfUZ6EI4Tjr0bhulRnOMO4YgZzwAoKuN Q+ieEnfiTQF/T/Qk8KId+dKb =nQxO -END PGP SIGNATURE- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] creating a generic field gadget
On Wed, 24 May 2000, Graham Chiu wrote: > >But I now want this dtml-document when rendered to read the values of > >fieldname, and fieldname-error, and then generate the dtml equivalent to > >this ... > > > > > > value="" > >> > > > > > > Here's a clue : value="" This checks for the existence of the contents of fieldname as a valid name in the name space, which may or may not be what you are looking for, but at least it is a clue. Other clues might be 'this()' and 'hasattr()'. --RDM ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] creating a generic field gadget
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 In article <[EMAIL PROTECTED]>, Graham Chiu <[EMAIL PROTECTED]> writes > >To help me with the tedious business of creating forms, I would like to >make a generic field gadget. > >I thus have a dtml-document which has a number of attributes: > Eg: fieldname = 'userid' > fieldname-error = 'userid-error' > > >But I now want this dtml-document when rendered to read the values of >fieldname, and fieldname-error, and then generate the dtml equivalent to >this ... > > > value="" >> > > > > >Clues? > >I presume the MetaPublisher product does this in rendering the dtml to >another final dtml-document. > Does anyone have any leads for me on this one? ( How come the easy questions get 5 answers in row :-) ?) - -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope -BEGIN PGP SIGNATURE- Version: PGPsdk version 1.7.1 iQA/AwUBOSpkDbTRdIWzaLpMEQLJtACbBNK2nHGdfZffF2QowmsG+jmhn7oAoOjP id684BKh5Zsy91GY8qptmcQH =wDb8 -END PGP SIGNATURE- ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] creating a generic field gadget
To help me with the tedious business of creating forms, I would like to make a generic field gadget. I thus have a dtml-document which has a number of attributes: Eg: fieldname = 'userid' fieldname-error = 'userid-error' But I now want this dtml-document when rendered to read the values of fieldname, and fieldname-error, and then generate the dtml equivalent to this ... value="" > Clues? I presume the MetaPublisher product does this in rendering the dtml to another final dtml-document. -- Regards, Graham Chiu gchiucompkarori.co.nz http://www.compkarori.co.nz/index.php Powered by Interbase and Zope. ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )