public
Description: A version of the Google App Engine SDK modified to work with AppDrop.com
Homepage: http://appdrop.com
Clone URL: git://github.com/jchris/portable-google-app-engine-sdk.git
Search Repo:
support for nickname from cookie
jchris (author)
Sat Apr 12 15:35:15 -0700 2008
commit  150b4ee625ecd5906080481823b86a6ba9d665eb
tree    8b27be34c0f16133c23a02a72def2375dd6336a1
parent  e09e84477b6ffcf5b3137a1c94ec2b53bfa6b440
...
301
302
303
304
 
305
306
307
...
479
480
481
482
 
483
 
484
485
486
...
301
302
303
 
304
305
306
307
...
479
480
481
 
482
483
484
485
486
487
0
@@ -301,7 +301,7 @@ class MatcherDispatcher(URLDispatcher):
0
     path variable supplied to this method is ignored.
0
     """
0
     cookies = ', '.join(headers.getheaders('cookie'))
0
- email, admin = self._get_user_info(cookies)
0
+ email, nickname, admin = self._get_user_info(cookies)
0
 
0
     for matcher in self._url_matchers:
0
       dispatcher, matched_path, requires_login, admin_only = matcher.Match(relative_url)
0
@@ -479,8 +479,9 @@ def SetupEnvironment(cgi_path,
0
   env['CONTENT_LENGTH'] = headers.getheader('content-length', '')
0
 
0
   cookies = ', '.join(headers.getheaders('cookie'))
0
- email, admin = get_user_info(cookies)
0
+ email, nickname, admin = get_user_info(cookies)
0
   env['USER_EMAIL'] = email
0
+
0
   if admin:
0
     env['USER_IS_ADMIN'] = '1'
0
 

Comments

    No one has commented yet.