What is fun.zipdip.insert(inform=result), and how does the other code you have shown come into play?
On Friday, May 19, 2017 at 5:59:06 PM UTC-4, R U wrote: > > I would like to add a list of dates into my data base when the user signs > up. > > from datetime import date, datetime, timedelta > import random > from random import randint > dog = randint(3,25) > def perdelta(start, end, delta): > curr = start > while curr < end: > yield curr > curr += delta > > for result in perdelta(date(2017, 11, 11), date(2018, 12, 12), > timedelta(days=dog)): > print str(result) > > ##I have tried this but it does not make it contingent on registering. > > auth.settings.register_onaccept.append(fun.zipdip.insert(infom=result)) > > Rob > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.