Too late. It exists since 1.48. ;-) lbl=LABEL('labelx',_for='fieldx',_id='x__label') inp=INPUT(_type='text',_id='fieldx',_name='fieldx') somecode=TAG[''](lbl,inp,BR())
Massimo On Nov 11, 4:16 pm, DenesL <[EMAIL PROTECTED]> wrote: > I came across the need for an HTML helper object that could contain a > list of HTML helpers (ala DIV) but without generating any tags itself. > Since I could not find one already made I defined it as: > > class NOTAG(DIV): > tag=' ' # one blank > def xml(self): > return self._xml()[1] > > Sample usage: > lbl=LABEL('labelx',_for='fieldx',_id='x__label') > inp=INPUT(_type='text',_id='fieldx',_name='fieldx') > somecode=NOTAG(lbl,inp,BR()) > > somecode.xml() is now equivalent to lbl.xml()+inp.xml()+BR().xml() > > It might come in handy for someone else. > Suggestions? Comments? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---