On Jun 15, 9:25 pm, mdipierro <[email protected]> wrote:
> oops.sorry. check if fixed in trunk

r926 breaks my app:
Traceback (most recent call last):
  File "C:\Bin\web2py\gluon\restricted.py", line 107, in restricted
    exec ccode in environment
  File "C:/Bin/web2py/applications/sahana/models/00_db.py", line 36,
in <module>
    auth.define_tables()
  File "C:\Bin\web2py\gluon\tools.py", line 504, in define_tables
    migrate=self.__get_migrate(self.settings.table_user_name,
migrate))
  File "C:\Bin\web2py\gluon\sql.py", line 994, in define_table
    query = t._create(migrate=migrate)
  File "C:\Bin\web2py\gluon\sql.py", line 1301, in _create
    % (md5_hash(self._db._uri), self._tablename))
  File "C:\Bin\web2py\gluon\sql.py", line 1214, in __setattr__
    raise SyntaxError, 'Object exists and cannot be redefined'
SyntaxError: Object exists and cannot be redefined

Maybe because I'm doing this in my model:
migrate = True
db.define_table(table,
                db.Field('admin_name'),
                migrate=migrate)

So that I can easily disable migration when going into production.

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to