That’d do the trick nicely. Thanks Niphlod!
> Le 10 mars 2015 à 17:10, Niphlod <[email protected]> a écrit : > > code an _after_insert callback. > > On Tuesday, March 10, 2015 at 4:21:26 PM UTC+1, Louis Amon wrote: > I'm trying to hard-code URLs for SEO purposes so I have a function > ("make_url(row)") that builds the paths based on other fields. > > I was thinking of using "compute=make_url", but it seems that update > operations also call the compute. > > > Is there a way to use compute only on INSERT operations, and not on UPDATE ? > > -- > Resources: > - http://web2py.com <http://web2py.com/> > - http://web2py.com/book <http://web2py.com/book> (Documentation) > - http://github.com/web2py/web2py <http://github.com/web2py/web2py> (Source > code) > - https://code.google.com/p/web2py/issues/list > <https://code.google.com/p/web2py/issues/list> (Report Issues) > --- > You received this message because you are subscribed to a topic in the Google > Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/I1acweQhAEY/unsubscribe > <https://groups.google.com/d/topic/web2py/I1acweQhAEY/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

