ads = [] if random_ads: for index, url in enumerate(random_ads): ads.append({ 'index': index, 'id': url['id'], 'url': url['url'], 'valid': '', 'suburlcount': '', 'viewcanceled': '', 'timestart': '', 'timeend': '', 'rating': '' }) ads_to_view = cPickle.dumps(ads) #print "Unseen", len(ads) # Create todays ads to view self.db.viewedads.insert(member_id=member, date=date, adsviewed=ads_to_view)
On Sun, Apr 15, 2012 at 5:17 PM, Anthony <abasta...@gmail.com> wrote: > What exactly did you save in the database? > > > On Sunday, April 15, 2012 8:10:50 PM UTC-4, Bruce Wade wrote: >> >> Does web2py automatically save a cPickle in the database as >> gluon.storage? Because I saved ads with the web2py framework, however now >> when trying to load them with the old framework I get an error ImportError: >> No module named gluon.storage when I don't use gluon at all in that old >> framework. >> >> -- >> -- >> Regards, >> Bruce Wade >> http://ca.linkedin.com/in/**brucelwade<http://ca.linkedin.com/in/brucelwade> >> http://www.wadecybertech.com >> http://www.fittraineronline.**com <http://www.fittraineronline.com> - >> Fitness Personal Trainers Online >> http://www.warplydesigned.com >> >> -- -- Regards, Bruce Wade http://ca.linkedin.com/in/brucelwade http://www.wadecybertech.com http://www.fittraineronline.com - Fitness Personal Trainers Online http://www.warplydesigned.com