Changeset 2937
- Timestamp:
- 02/21/07 14:58:17 (2 years ago)
- Files:
-
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/controllers/transactions.py (modified) (2 diffs)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/lib/app_globals.py (modified) (1 diff)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/transactions (added)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/transactions/__init__.py (added)
- sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/transactions/show.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/transactions.py
r2936 r2937 1 1 from schevopylonsnav.lib.base import * 2 2 3 3 4 class TransactionsController(BaseController): … … 43 44 """GET /id: Show a specific item.""" 44 45 # url_for('transaction', id=ID) 45 pass 46 c.tx = g.tx_cache[id] 47 c.tx_id = id 48 return render_response('/transactions/show.html') 46 49 47 50 def edit(self, id, format='html'): sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/lib/app_globals.py
r2936 r2937 1 1 from random import randint 2 import sys 2 3 3 4 from lrucache import LRUCache 4 5 5 6 7 maxint = sys.maxint 8 9 6 10 def random_token(): 7 return randint(0, 9999999)11 return '%x' % randint(0, maxint) 8 12 9 13 sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/tests/functional/test_extent_transactions.py
r2936 r2937 20 20 id='create')) 21 21 assert response.status == 302 22 #response = response.follow()22 response = response.follow()
