~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to lib/common/forumutil.py

  • Committer: mattgiuca
  • Date: 2008-07-15 09:18:02 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:877
pulldown_subj/__init__.py: Added "enrol_user" function which pulls down a user
    and also enrols them in the database.
Added script enrolallusers.py which scriptulously performs automatic
enrolments of all users in the system, similar to remakeallusers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    hash = hashlib.md5(hashtext).hexdigest()
46
46
    data = quote(login + ':' + nick + ':' + email + ':' + role + ':' + hash)
47
47
 
48
 
    return Cookie.Cookie(cookie_name,data,path='/')
 
48
    return Cookie.Cookie(cookie_name,data,expires=time.time()+86400,path='/')
 
49
 
 
50
def invalidated_forum_cookie():
 
51
    return Cookie.Cookie(cookie_name,'NONE',expires=time.time()+86400,path='/')