Hi all!

I noticed that IE outputs a traceback with this code, Firefox is happy
with it.

# ========== Session DEBUG ==========
session['logged_in'] = False
session.save()
g.logged_in = session['logged_in']

# ========== END DEBUG ==========

class MainController(BaseController):

    def testpage(self):

        c.links        = g.menu_list

        if session['logged_in']  == False:
            c.content     = "register.html"
            c.sublinks    = getSubLinks('info')
        else:
            c.content     = "mypage.html"
            c.sublinks    = getSubLinks('mypage')

        print session['logged_in']
        return render_response('/base.tmpl')

This is the traceback emitted using IE:

File 'c:\\python24\\lib\\site-packages\\Beaker-0.6.3-py2.4.egg\\beaker\
\api.py', line 134 in __getitem__
  return self.dict.__getitem__(key)
KeyError: 'logged_in'

Can someone tell me why IE is having problems with it? Also, could
someone tell me what other the advantages there are to use REMOTE_USER
for authentication instead of just setting a variable in a session? I
read that Web servers use this REMOTE_USER(CGI Env) too, but thats
when other external apps also would want to authenticate on the server
where the pylons app is running..

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to