Re: @login_required problem

2007-01-10 Thread Collin Grady
I don't know about your issue, but I wanted to offer you a little nifty thing about dicts that might shrink your view a bit :) Instead of an if/else to have a default value, use .get() on the dict, like so: screen = request.GET.get('screen', 'main') If the key "screen" exists, it returns that,

@login_required problem

2007-01-10 Thread [EMAIL PROTECTED]
HI, I am getting the old 'current transaction is aborted' when trying to process @login_required. basically I have a view method: @login_required def index(request): if request.GET.has_key('screen'): screen = request.GET['screen'].lower() else: screen = 'main' if scr