deleting the cache directory has no effekt.
any other ideas?
On Tuesday, May 28, 2013 12:32:18 PM UTC+2, Niphlod wrote:
>
> cache.client was experimental. it was renamed to cache.action
>
> As for the second error, try to delete the cache/ directory
>
> Il giorno martedì 28 maggio 2013 11:58:35 UTC+2, BlueShadow ha scritto:
>>
>> Hi,
>> I updated to the newest version of web2py and I got at least to problems:
>> there is no client cache funktion anymore.
>> the second one:
>> I get an error when I create a cached version of a page:
>> @auth.requires_membership('VIP')
>> @cache("Ertrag", time_expire=86400, cache_model=cache.disk)
>> def Ertrag():
>> Liste=getvaluesfromDB(db)
>> Liste=Sortvalues(Liste)
>> return response.render(Liste=Liste)
>>
>> returns this error
>> <type 'exceptions.RuntimeError'> unable to create/re-create cache file
>> F:\Website\web2py\applications\Prolog\cache\cache.shelve Version web2py™
>> Version
>> 2.4.7-stable+timestamp.2013.05.24.17.48.47 Python Python 2.7.4:
>> C:\Python27\python.exe (prefix: C:\Python27) Traceback
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>> 10.
>> 11.
>> 12.
>> 13.
>> 14.
>> 15.
>> 16.
>>
>> Traceback (most recent call last):
>> File "F:\Website\web2py\gluon\restricted.py", line 212, in restricted
>> exec ccode in environment
>> File "F:/Website/web2py/applications/Prolog/controllers/default.py"
>> <http://127.0.0.1:8000/admin/default/edit/Prolog/controllers/default.py>,
>> line 188, in <module>
>> File "F:\Website\web2py\gluon\globals.py", line 194, in <lambda>
>> self._caller = lambda f: f()
>> File "F:\Website\web2py\gluon\tools.py", line 3021, in f
>> return action(*a, **b)
>> File "F:\Website\web2py\gluon\cache.py", line 402, in __call__
>> self.time_expire)
>> File "F:\Website\web2py\gluon\cache.py", line 347, in __call__
>> storage = self._open_shelve_and_lock()
>> File "F:\Website\web2py\gluon\cache.py", line 299, in _open_shelve_and_lock
>> 'unable to create/re-create cache file %s' % self.shelve_name)
>> RuntimeError: unable to create/re-create cache file
>> F:\Website\web2py\applications\Prolog\cache\cache.shelve
>>
>> Error snapshot [image: help]
>> <http://127.0.0.1:8000/admin/default/ticket/Prolog/127.0.0.1.2013-05-28.11-51-13.e9da1018-313c-4c70-b945-35a6194e7ecc#>
>>
>>
>> <type 'exceptions.RuntimeError'>(unable to create/re-create cache file
>> F:\Website\web2py\applications\Prolog\cache\cache.shelve)
>>
>> inspect attributes
>> Atribute der Ausnahmeinstanz args (r'unable to create/re-create cache
>> file F:\Website\web2py\applications\Prolog\cache\cache.shelve',)
>> __setattr__ <method-wrapper '__setattr__' of exceptions.RuntimeError
>> object> __reduce_ex__ <built-in method __reduce_ex__ of
>> exceptions.RuntimeError object> __getslice__ <method-wrapper
>> '__getslice__' of exceptions.RuntimeError object> __getitem__
>> <method-wrapper
>> '__getitem__' of exceptions.RuntimeError object> __setstate__ <built-in
>> method __setstate__ of exceptions.RuntimeError object> __getattribute__
>> <method-wrapper
>> '__getattribute__' of exceptions.RuntimeError object> __str__
>> <method-wrapper
>> '__str__' of exceptions.RuntimeError object> __format__ <built-in
>> method __format__ of exceptions.RuntimeError object> __reduce__ <built-in
>> method __reduce__ of exceptions.RuntimeError object> __class__ <type
>> 'exceptions.RuntimeError'> __dict__ {} __delattr__ <method-wrapper
>> '__delattr__' of exceptions.RuntimeError object> __subclasshook__ <built-in
>> method __subclasshook__ of type object> __repr__ <method-wrapper
>> '__repr__' of exceptions.RuntimeError object> __init__ <method-wrapper
>> '__init__' of exceptions.RuntimeError object> __hash__ <method-wrapper
>> '__hash__' of exceptions.RuntimeError object> __sizeof__ <built-in
>> method __sizeof__ of exceptions.RuntimeError object> __doc__ 'Unspecified
>> run-time error.' __unicode__ <built-in method __unicode__ of
>> exceptions.RuntimeError object> __new__ <built-in method __new__ of
>> type object>
>>
>> ...default.py
>>
>> http://..../[app]/default/data/update/[table]/[id]
>> http://..../[app]/default/data/delete/[table]/[id]
>> http://..../[app]/default/data/select/[table]
>> http://..../[app]/default/data/search/[table]
>> but URLs must be signed, i.e. linked with
>> A('table',_href=URL('data/tables',user_signature=True))
>> or with the signed load operator
>> LOAD('default','data.load',args='tables',ajax=True,user_signature=True)
>> """
>> return dict(form=crud(),nsb=1)
>>
>>
>>
--
---
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/groups/opt_out.