>
> I tried this:
>
>         mail_form = DataGrid(fields=[
>             ('Subj', 'p1_mails[0][0]'),
>             ('From', 'p1_mails[0][1]'),
>             ('Date', 'p1_mails[0][2]'),
>             ('Size', 'p1_mails[0][3]'),
>             ('Att',  'p1_mails[0][4]'),
>         ])
>
> but unsuprisingly, it failed.  What is the better way?
>
> TIA!
> Harry

if i'm not wrong,  you must use a getter function

DataGrid(fields=[
            ('Subj', getter = lambda x: x[0]),
            ('From', getter = lambda x: x[1]),
            ('Date', getter = lambda x: x[2]),
            ('Size', getter = lambda x: x[3]),
            ('Att',  getter = lambda x: x[4]),
        ])





Glauco

-- 
+------------------------------------------------------------+
 Glauco Uri  
 glauco(at)sferacarta.com 
                               
          Sfera Carta Software®       info(at)sferacarta.com
  Via Bazzanese,69  Casalecchio di Reno(BO) - Tel. 051591054
+------------------------------------------------------------+



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to