Logo Search packages:      
Sourcecode: zope-emarket version File versions

def EMarket::ShopperManager::ShopperManager::loginAsUser (   self,
  shopperID,
  REQUEST = None,
  RESPONSE = None,
  PARENTS = None,
  PATH_INFO = None 
)

set the browser cookie to user id for this user...

Definition at line 136 of file ShopperManager.py.

00136                                                                                                :
        """ set the browser cookie to user id for this user..."""

        result = self.set_cookie(RESPONSE = RESPONSE, REQUEST=REQUEST,
                                 path=PATH_INFO, parents=PARENTS, clientCookie=shopperID)

        if REQUEST is not None:
            result = MessageDialog(
                title='Logged In',
                message='You are logged in as <strong>%s</strong><br> %s.' % (self.id, result),
                action = "./manage_main")
        else:
            result = "OK"

        return result



Generated by  Doxygen 1.6.0   Back to index