Changeset 2919
- Timestamp:
- 02/20/07 18:14:56 (2 years ago)
- Files:
-
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/controllers/extents.py (modified) (2 diffs)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/index.html (modified) (1 diff)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/tests/functional/test_databases.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/controllers/extents.py
r2916 r2919 1 from schevo.label import plural1 from schevo.label import label, plural 2 2 3 3 from schevopylonsnav.lib.base import * … … 14 14 # url_for('extents') 15 15 db = self.dbs[db_id] 16 c.db_id = db_id 16 c.db_label = label(db) 17 c.db_url = h.url_for('database', id=db_id) 17 18 c.extents = extents = [] 18 19 for extent in db.extents(): sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/index.html
r2918 r2919 5 5 <xi:include href="../master.html"></xi:include> 6 6 <head> 7 <title>Extents -- ${c.db_id} -- Navigator</title>7 <title>Extents in ${c.db_label} -- Navigator</title> 8 8 </head> 9 9 <body> 10 <h1>Extents in database ${c.db_id}</h1>10 <h1>Extents in <a href="${c.db_url}">${c.db_label}</a></h1> 11 11 12 12 <ul> sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/tests/functional/test_databases.py
r2918 r2919 1 1 from schevopylonsnav.tests import * 2 2 3 3 4 class TestDatabasesController(TestController): 5 4 6 def test_index(self): 5 7 response = self.app.get(url_for('databases'))
