pymove3d.py
changeset 217 2c7c55d66ec1
parent 214 7dda7406a677
child 222 fe169c748b0c
equal deleted inserted replaced
216:6d1dda68ec4c 217:2c7c55d66ec1
       
     1 # -*- coding: utf-8 -*-
       
     2 
     1 import os
     3 import os
     2 import codecs
     4 import codecs
     3 
     5 
     4 from docutils.core import publish_parts
     6 from docutils.core import publish_parts
     5 from flask import Flask
     7 from flask import Flask
   127     return render_template("/content.html",
   129     return render_template("/content.html",
   128                            act="dates", content=content)
   130                            act="dates", content=content)
   129 
   131 
   130 @app.route("/competition/2013")
   132 @app.route("/competition/2013")
   131 def competition_2013():
   133 def competition_2013():
       
   134     competition = _(u'Competition 2013')
       
   135     introduction = _(u'The winners of the programming competition, '
       
   136                      u'showed at the PyCon.DE 2013 in Cologne their results. '
       
   137                      u'A short presentation inlcuding a movie about their work done.')
       
   138     article = [_(u'Both students presented to the astonished audience of over 250 Python developers their work.'),
       
   139                _(u'A long applause showed up.'
       
   140                  u' Valentin had 9 months ago learned Python and Blender discovered earlier. '
       
   141                  u'His Skatsimulation even includes 3D sound.'),
       
   142                _(u'The preparatory courses were made by volunteers, such as the '
       
   143                  u'employees of the magazine "Time Online" performed. '
       
   144                  u'The following blog entry is a little impression of the success of the courses'),
       
   145               ]
       
   146     game_of_life = _(u'Anne a 15 year old girl showed a 3D-Version of the »Game of life«')
       
   147     skat_simulation = _(u'Valentin (13 years) demomstrates his »Skat-Simulation«')
       
   148     awards = _(u'The award ceremony')
   132     return render_template("/impressions_2013.html",
   149     return render_template("/impressions_2013.html",
   133                            act="competition_2013")
   150                            act="competition_2013",
       
   151                            competition=competition,
       
   152                            introduction=introduction,
       
   153                            article=article,
       
   154                            game_of_life=game_of_life,
       
   155                            skat_simulation=skat_simulation,
       
   156                            awards=awards)
   134 
   157 
   135 
   158 
   136 @app.errorhandler(404)
   159 @app.errorhandler(404)
   137 def page_not_found(e):
   160 def page_not_found(e):
   138     msg = _(u"Url: %(url)s not found", url=request.url)
   161     msg = _(u"Url: %(url)s not found", url=request.url)
Impressum Datenschutzerklärung