Changeset 2919

Show
Ignore:
Timestamp:
02/20/07 18:14:56 (2 years ago)
Author:
mscott
Message:

Use more labels and urls

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/controllers/extents.py

    r2916 r2919  
    1 from schevo.label import plural 
     1from schevo.label import label, plural 
    22 
    33from schevopylonsnav.lib.base import * 
     
    1414        # url_for('extents') 
    1515        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) 
    1718        c.extents = extents = [] 
    1819        for extent in db.extents(): 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/index.html

    r2918 r2919  
    55<xi:include href="../master.html"></xi:include> 
    66    <head> 
    7         <title>Extents -- ${c.db_id} -- Navigator</title> 
     7        <title>Extents in ${c.db_label} -- Navigator</title> 
    88    </head> 
    99    <body> 
    10                 <h1>Extents in database ${c.db_id}</h1> 
     10                <h1>Extents in <a href="${c.db_url}">${c.db_label}</a></h1> 
    1111                 
    1212                <ul> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/tests/functional/test_databases.py

    r2918 r2919  
    11from schevopylonsnav.tests import * 
    22 
     3 
    34class TestDatabasesController(TestController): 
     5 
    46    def test_index(self): 
    57        response = self.app.get(url_for('databases'))