This method allows for assignment of 'random' cookies.... so folks don't have to fill in forms just to shop around...
00545 : """ This method allows for assignment of 'random' cookies.... so folks don't have to fill in forms just to shop around... """ # errs = StringIO.StringIO() if REQUEST.cookies.has_key('clientCookie'): id = REQUEST.cookies['clientCookie'] else: id = 'temp' + `time.time()` try: if RESPONSE is not None: newShopper = self.shopperFolder.newShopper(id,passwd='',email='') result = self.set_cookie( REQUEST=REQUEST, RESPONSE=RESPONSE, path=PATH_INFO, parents=PARENTS, clientCookie=id) return 0,"Successfully created user and set cookie...." + result else: raise RuntimeError, "Hello? This needs a RESPONSE!" except: traceback.print_exc(file=errs) errs.seek(0) return 1, "failed to create new shopper. \n" + errs.read() def addShopper(self, id, passwd, passwd2, email, REQUEST=None ):