From e9f837aff105668c13809d91afc16d009396210b Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 9 Feb 2011 20:55:46 +0000 Subject: [PATCH] Now the new table wrsledruncache version 1.4 is used. git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/wradmin@767 7aebc617-e5e2-0310-91dc-80fb5f6d2477 --- wradmin/setup.py | 2 +- wradmin/wradmin/controllers/rodelbahn.py | 2 +- wradmin/wradmin/model/__init__.py | 5 ++--- wradmin/wradmin/templates/rodelbahn_list.html | 2 ++ wradmin/wradmin/templates/rodelbahn_view.html | 4 ++++ 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/wradmin/setup.py b/wradmin/setup.py index 61de7b0..6d0afef 100644 --- a/wradmin/setup.py +++ b/wradmin/setup.py @@ -7,7 +7,7 @@ except ImportError: setup( name='wradmin', - version='1.4.1', + version='1.4.2', description='Administrative Interface for Winterrodeln', author='Philipp Spitzer', author_email='philipp.spitzer@winterrodeln.org', diff --git a/wradmin/wradmin/controllers/rodelbahn.py b/wradmin/wradmin/controllers/rodelbahn.py index 8f571a0..4cc8a06 100644 --- a/wradmin/wradmin/controllers/rodelbahn.py +++ b/wradmin/wradmin/controllers/rodelbahn.py @@ -46,7 +46,7 @@ class RodelbahnController(BaseController): def update(self): "Updates the wrsledruncache table from the wiki" - from wradmin.model import page_table as page, wrsleddingcache_table1_3 as wrsledruncache, categorylinks_table as categorylinks, revision_table as revision, text_table as text + from wradmin.model import page_table as page, wrsledruncache_table as wrsledruncache, categorylinks_table as categorylinks, revision_table as revision, text_table as text from sqlalchemy.sql import select c = model.meta.Session.connection() diff --git a/wradmin/wradmin/model/__init__.py b/wradmin/wradmin/model/__init__.py index 2cf9f5f..936dbc9 100644 --- a/wradmin/wradmin/model/__init__.py +++ b/wradmin/wradmin/model/__init__.py @@ -62,8 +62,7 @@ wrsleddingcache_table1_2 = sa.Table("wrsleddingcache1_2", meta.metadata, # Old table definition # - version 1.3 (changes made from version 1.2) -# wrsleddingcache_table1_3 = sa.Table("wrsleddingcache1_3", meta.metadata, -wrsleddingcache_table1_3 = sa.Table("wrsleddingcache", meta.metadata, +wrsleddingcache_table1_3 = sa.Table("wrsleddingcache1_3", meta.metadata, sa.Column("page_id", types.Integer, primary_key=True), sa.Column("page_title", types.Unicode(255)), sa.Column("position_latitude", types.Float), @@ -260,6 +259,6 @@ class Page(object): orm.mapper(WrReport, wrreport_table) # We could add a relation but we don't need it yet: # orm.mapper(WrSledrunCache, wrsledruncache_table, properties = {'reports': orm.relation(WrReport, backref='sledding')}) -orm.mapper(WrSledrunCache, wrsleddingcache_table1_3) # TODO: Change to wrsledruncache_table +orm.mapper(WrSledrunCache, wrsledruncache_table) orm.mapper(WrInnCache, wrinncache_table) diff --git a/wradmin/wradmin/templates/rodelbahn_list.html b/wradmin/wradmin/templates/rodelbahn_list.html index 51f6147..864fe62 100644 --- a/wradmin/wradmin/templates/rodelbahn_list.html +++ b/wradmin/wradmin/templates/rodelbahn_list.html @@ -27,6 +27,7 @@ Gehzeit Höhe (oben) Höhe (unten) + Aufstieg möglich Aufstieg getrennt Lift Licht @@ -47,6 +48,7 @@ ${s.walkup_time} ${s.top_elevation} ${s.bottom_elevation} + ${h.bool(s.walkup_possible)} ${h.tristate_float(s.walkup_separate)} ${h.bool(s.lift)} ${h.tristate_float(s.night_light)} diff --git a/wradmin/wradmin/templates/rodelbahn_view.html b/wradmin/wradmin/templates/rodelbahn_view.html index 55b7fb7..c7f5856 100644 --- a/wradmin/wradmin/templates/rodelbahn_view.html +++ b/wradmin/wradmin/templates/rodelbahn_view.html @@ -39,6 +39,10 @@ Höhe (unten) ${c.sledding.bottom_elevation} + + Aufstieg möglich + ${h.bool(c.sledding.walkup_possible)} + Aufstieg getrennt ${h.tristate_float(c.sledding.walkup_separate)} -- 2.39.5