Am 16.03.2010, 20:12 Uhr, schrieb Adam Hutton <b...@bugs.repoze.org>:

> In this example, c.facility_housing is a list of objects  
> (SQLAlchemy-created)
> which have an attribute '.housing' that is a string.
> @@ PYTHON
>>>> ', '.join([housing_type.housing for housing_type in  
>>>> c.facility_housing])
> u'Assisted Living, Independent Living'
> @@ Chameleon Page Template
> <dd tal:content = "', '.join([housing_type.housing for housing_type in
> c.facility_housing])" />

Do list comprehensions count as statements? In any case I wouldn't like to  
see this amount of Python code in a template.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to