Hi,
It took me a LONG time to check the update, but I just did. I've updated to
Web2Py 2.9.12 (this version contains the fix), and copied the appadmin.py
to my project.
When I call cacke.disk.clear() I still get an error :( To be exact this one:
Traceback (most recent call last):
File "/home/eric/Projects/Web2Py/web/gluon/restricted.py", line 224, in
restricted
exec ccode in environment
File
"/home/eric/Projects/Web2Py/web/applications/cms/controllers/maintenance.py",
line 415, in <module>
File "/home/eric/Projects/Web2Py/web/gluon/globals.py", line 393, in
<lambda>
self._caller = lambda f: f()
File "/home/eric/Projects/Web2Py/web/gluon/tools.py", line 3444, in f
return action(*a, **b)
File
"/home/eric/Projects/Web2Py/web/applications/cms/controllers/maintenance.py",
line 396, in edit
flush_cache()
File "/home/eric/Projects/Web2Py/web/gluon/tools.py", line 3444, in f
return action(*a, **b)
File
"/home/eric/Projects/Web2Py/web/applications/cms/controllers/maintenance.py",
line 406, in flush_cache
cache.disk.clear(None)
File "/home/eric/Projects/Web2Py/web/gluon/cache.py", line 427, in clear
storage.clear()
File "/home/eric/Projects/Web2Py/web/gluon/cache.py", line 365, in clear
del self[key]
File "/home/eric/Projects/Web2Py/web/gluon/cache.py", line 343, in
__delitem__
recfile.remove(key, path=self.folder)
File "/home/eric/Projects/Web2Py/web/gluon/recfile.py", line 36, in remove
raise IOError
IOError
Yes, I've cleared the cache folder :)
When I go to cache page in the appadmin.py in the admin folder I get the
following error (even when the cache folder is empty and I did a fresh
restart of Web2Py):
<type 'exceptions.KeyError'>
Traceback (most recent call last):
File "/home/eric/Projects/Web2Py/web/gluon/restricted.py", line 224, in
restricted
exec ccode in environment
File
"/home/eric/Projects/Web2Py/web/applications/cms/controllers/appadmin.py",
line 700, in <module>
File "/home/eric/Projects/Web2Py/web/gluon/globals.py", line 393, in
<lambda>
self._caller = lambda f: f()
File
"/home/eric/Projects/Web2Py/web/applications/cms/controllers/appadmin.py",
line 466, in ccache
value = cache.disk.storage[key]
File "/home/eric/Projects/Web2Py/web/gluon/cache.py", line 333, in
__getitem__
raise KeyError
KeyError
Any ideas?
2015-03-02 16:26 GMT+01:00 Leonel Câmara <[email protected]>:
> Hey Robin,
>
> If the code is just that you probably have stuff in your cache folder from
> the previous way of using it that shouldn't be there anymore. If you
> manually delete all files and folders in your cache folder you should stop
> seeing this error in the future.
>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/3usaQxAFY0k/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit 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.