Changeset 2931
- Timestamp:
- 02/21/07 13:11:50 (2 years ago)
- Files:
-
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/controllers/extent_transactions.py (modified) (1 diff)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_queries/index.html (modified) (1 diff)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions (added)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions/__init__.py (added)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions/index.html (added)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/tests/functional/test_extent_transactions.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/controllers/extent_transactions.py
r2930 r2931 8 8 # map.resource('extent_transaction', 'extent_transactions') 9 9 10 def index(self, format='html'):10 def index(self, db_id, extent_id, format='html'): 11 11 """GET /: All items in the collection.""" 12 # url_for('extent_transactions') 13 pass 12 c.dbs = dbs = self.dbs 13 c.db_id = db_id 14 c.db = db = dbs[db_id] 15 c.extent = db.extent(extent_id) 16 return render_response('/extent_transactions/index.html') 14 17 15 18 def create(self): sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_queries/index.html
r2930 r2931 25 25 >${h.plural(c.extent)}</a> 26 26 → 27 <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}">Queries</a> 27 <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 28 >Queries</a> 28 29 </div> 29 30 sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/tests/functional/test_extent_transactions.py
r2926 r2931 1 1 from schevopylonsnav.tests import * 2 2 3 3 4 class TestExtentTransactionsController(TestController): 5 4 6 def test_index(self): 5 pass6 # response = self.app.get(url_for(controller='extent_transactions'))7 # Test response...7 response = self.app.get( 8 url_for('extent_transactions', db_id='db', extent_id='Foo')) 9 assert 'Create' in response
