<%inherit file="pydotorg.tmpl"/> <%def name="content()"> <% def get_success_story(): # XXX we could get this from an RSS feed L = [ ("NASA uses Python...", "/about/success/usa/", "/images/success/nasa.jpg"), ("ForecastWatch uses Python...", "/about/success/forecastwatch/", "/images/success/forecastwatch.png"), ("U. of St Andrews uses Python...", "/about/success/st-andrews/", "/images/success/standrews.jpg"), ("Tribon uses Python...", "/about/success/tribon/", "/images/success/tribon.jpg"), ("Visualize data with Python...", "/about/success/mayavi/", "/images/success/mayavi.jpg"), ("Simulate biomolecules with Python...", "/about/success/mmtk/", "/images/success/mmtk.jpg"), ("AFNIC.fr uses Python...", "/about/success/suzanne/", "/images/success/afnic.fr.png"), ("Carmanah lights the way with Python", "/about/success/carmanah/", "/images/success/Carmanah.png"), ("Build documentation with Python...", "/about/success/honeywell/", "/images/success/Honeywell.png"), ] return random(L) %> ## XXX should set breadcrumbs to empty here

${title}

<%doc> [PSF participating in Google Summer of Code 2010]

Support the Python Community

Help the Python community by becoming an associate member or making a one-time donation.

<% (success_title, success_link, success_graphic) = get_success_story() %>

${success_title|h}

success story photo

... joining users such as Rackspace, Industrial Light and Magic, AstraZeneca, Honeywell, and many others.

<% quotes = rss('quotes') %> %if quotes:
<% quote = random(quotes) %>

What they are saying...

${quote['title']}:
${quote['description']}
more...
%endif

Using Python For...

more...
${parent.content()}
<% news_items = read_news() %> %for item in news_items[:7]:

${item['title']}

${item['description']}
Published: ${item['pubDate']}
%endfor [ RSS ]
${title} %for js_url in javascript: %endfor

skip to navigation
skip to content
%for link_1, level2_links in quicklinks:

${link_1.as_html()}

%if level2_links: %endif %endfor

${title}

<% quotes = rss('quotes') %> %if quotes:
<% quote = random(quotes) %>

What they are saying...

${quote['title']}:
${quote['description']}
more...
%endif

Using Python For...

    %for link, sublinks in using:
  • ${link.as_html()}
  • %if sublinks:
  • %for sublink, children in sublinks[:-1]: ${sublink.as_html()}, %endfor <% sublink, children = sublinks[-1] %> ${sublink.as_html()}
  • %endif %endfor
more...
${text}
<% news_items = read_news() %> %for item in news_items[:5]:

${item['title']}

${item['description']}
Published: ${item['pubDate']}
%endfor [ RSS ]