Back to index

plone3  3.1.7
userid.py
Go to the documentation of this file.
00001 from zope.interface import implements
00002 from plone.session.interfaces import ISessionSource
00003 from plone.session.sources.base import BaseSource
00004 
00005 class UserIdSession(BaseSource):
00006     implements(ISessionSource)
00007 
00008     def createIdentifier(self, userid):
00009         return userid
00010 
00011 
00012     def verifyIdentifier(self, identifier):
00013         return isinstance(identifier, str)
00014 
00015 
00016     def extractUserId(self, identifier):
00017         return identifier