[ZPT] RE: DreamWeaver files -> ZPTs: How?

Tino Wildenhain tino at wildenhain.de
Tue May 24 02:48:08 EDT 2005


Am Montag, den 23.05.2005, 21:30 -0400 schrieb Ken Winter:
...
> Yessss!  For the record, the final version is:
> 
> d = [{'person_id':p.person_id,\
>       'first_name':p.first_name,\
>       'middle_names':p.middle_names,\
>       'last_name':p.last_name}\
>      for p in context.read_all_people()]
> return getattr(context, 'studentlist.htm')(data=d)

For the records: 

you can skip the \ in each line. Python does not need it :-)
Even more you can use the free space for # comments

Regards
Tino



More information about the ZPT mailing list