Changeset 2922
- Timestamp:
- 02/20/07 18:52:42 (2 years ago)
- Files:
-
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/controllers/extents.py (modified) (1 diff)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/show.html (modified) (1 diff)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/tests/functional/test_extents.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/controllers/extents.py
r2921 r2922 69 69 tx_label = label(tx_method) 70 70 transactions.append((tx_label, tx_url)) 71 c.queries = queries = [] 72 for q_name in list(extent.q): 73 q_url = '#' # XXX: make real 74 q_method = extent.q[q_name] 75 q_label = label(q_method) 76 queries.append((q_label, q_url)) 71 77 return render_response('extents.show') 72 78 sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/show.html
r2921 r2922 25 25 </dl> 26 26 27 <h2>Query Methods</h2> 28 29 <ul> 30 <li py:for="q_label, q_url in c.queries"> 31 <a href="${q_url}">${q_label}</a> 32 </li> 33 </ul> 34 27 35 <h2>Transaction Methods</h2> 28 36 sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/tests/functional/test_extents.py
r2921 r2922 14 14 assert 'Foos' in response # plural label 15 15 assert '0' in response # length 16 assert 'Query Methods' in response 17 assert 'By Example' in response 18 assert 'Exact Matches' in response 16 19 assert 'Transaction Methods' in response 17 20 assert 'Create' in response 18 # XXX: test transaction URL21 # XXX: test transaction and query URLs
