You can make your own class MYSQLTABLE(SQLTABLE): def xml(self): return .... # ****
**** look into the code for SQLTABLE and write your own representation for it. On 21 Apr, 12:42, Hans <johann.scheibelho...@easytouch-edv.com> wrote: > Thanks Fran for your good hint. > Unfortunately in my case I need different field.represents within one > select, that's why I use the aliases. > Looks like I need to alter the SQLTABLE columns content before passing > it on. > > Hans > > On Apr 20, 9:46 pm, Fran <francisb...@googlemail.com> wrote: > > > On Apr 20, 6:38 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > > It cannot be done. because the same fiels in aliased tables is the > > > same field. > > > It kind-of can though, surely? > > i.e. do the default .represent in the model, so that it is always > > available. > > A transient .represent can then be done within the context of a > > specific controller function to over-ride this. > > > Not /quite/ what was asked, but may be useful. > > (I do this) > > > F --~--~---------~--~----~------------~-------~--~----~ 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 web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---