Field(..) work db.Field(..) not work пятница, 9 января 2015 г., 23:54:58 UTC+3 пользователь Dmitry Ermolaev написал: > > I use _src.zip > >> <type 'exceptions.AttributeError'> 'DAL' object has no attribute 'Field' >> Versionweb2py™Version 2.9.12-beta+timestamp.2015.01.07.16.40.02PythonPython >> 2.7.8: C:\Python27\python.exe (prefix: C:\Python27)Traceback >> >> 1. >> 2. >> 3. >> 4. >> 5. >> 6. >> 7. >> 8. >> 9. >> >> Traceback (most recent call last): >> File "C:\web2py-9-12\gluon\restricted.py", line 224, in restricted >> exec ccode in environment >> File "C:/web2py-9-12/applications/bs3b/models/db.py" >> <http://127.0.0.1:8000/admin/default/edit/bs3b/models/db.py>, line 11, in >> <module> >> db.Field('is_enabled', 'boolean', required=False, default=True), >> File "C:\web2py-9-12\gluon\dal\base.py", line 893, in __getattr__ >> return ogetattr(self, key) >> AttributeError: 'DAL' object has no attribute 'Field' >> >>
-- 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.