If there's a problem with the wizard, you should report an issue<http://code.google.com/p/web2py/issues/list>. I think you'll need to provide a little more detail than you've done below (i.e., exact steps to reproduce the problem). If there's a bug, ideally it will get fixed, but in the meantime, if you're doing lots of models with references and circular references, you're probably better off hand coding rather than using the wizard anyway. The wizard probably isn't robust and tested enough to build an arbitrarily complex app.
Anthony On Wednesday, July 4, 2012 3:59:45 PM UTC-4, François Delpierre wrote: > > Hi, > > I'm getting an invalid circual reference very often with the wizard. It's > seems very buggy. > > Most of the time, this is because I refer to a table that is later in my > definition list. Changing the order fixes this problem. > But sometimes, I have no idea. I already lost a lot of time with this very > strange error message. I think this must absolutely be fixed in the next > Web2Py release. At least display which line, and why. > > An other buggy behaviour is that when I have this circual reference error, > and when I modify one of the field definition, I get the previous > definition I wrote when submiting. And so every 2 clicks on submit, I get > the previous one, and every 2 click the last definition. > > When I restart the wizard, I even get this error on the auth_user table, > so it's not possible to go further without directly clicking on the table > on the left pane of the wizard. > > Really, it's buggy. >

