Hi,
uploads with sqlite doesn't work anymore in my apps. I recognized this
after installing ver. 2.23.0. Maybe it's just a coincidence. Here is the
code:
127.0.0.1.2022-12-29.16-19-26.abbdc90d-cd14-467e-bd96-12f360bf1d4d
<type 'exceptions.AttributeError'> 'Field' object has no attribute '__dir__'
Version
web2py™ Version 2.23.0-stable+timestamp.2022.12.27.07.14.15
Python Python 2.7.16:
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
(prefix: /System/Library/Frameworks/Python.framework/Versions/2.7)
Nachverfolgung
Traceback (most recent call last):
File "/Users/user/Sites/web2py/gluon/restricted.py", line 219, in
restricted
exec(ccode, environment)
File "/Users/user/Sites/web2py/applications/init/controllers/default.py",
line 426, in <module>
File "/Users/user/Sites/web2py/gluon/globals.py", line 430, in <lambda>
self._caller = lambda f: f()
File "/Users/user/Sites/web2py/gluon/tools.py", line 3927, in f
return action(*a, **b)
File "/Users/user/Sites/web2py/applications/init/controllers/default.py",
line 301, in manage
grid = SQLFORM.smartgrid(db.contents,
orderby=dict(contents=~db.contents.id, einfuegen=db.einfuegen.projekt),
onvalidation=check_unique, paginate=30)
File "/Users/user/Sites/web2py/gluon/sqlhtml.py", line 3356, in smartgrid
user_signature=user_signature, **kwargs)
File "/Users/user/Sites/web2py/gluon/sqlhtml.py", line 2566, in grid
onsuccess=oncreate)
File "/Users/user/Sites/web2py/gluon/html.py", line 2343, in process
self.validate(**kwargs)
File "/Users/user/Sites/web2py/gluon/html.py", line 2281, in validate
if self.accepts(**kwargs):
File "/Users/user/Sites/web2py/gluon/sqlhtml.py", line 1923, in accepts
field.uploadfolder)
File "/Users/user/Sites/web2py/gluon/packages/dal/pydal/objects.py", line
2075, in store
self._tablename if '_tablename' in self.__dir__() and self._tablename
else 'no_table',
AttributeError: 'Field' object has no attribute '__dir__'
Fehler-Schnappschuss help
<type 'exceptions.AttributeError'>('Field' object has no attribute
'__dir__')
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/574f8456-478b-4da5-ac65-1f2d1f108bf0n%40googlegroups.com.