[Checkins] SVN: lovely.viewcache/trunk/src/lovely/viewcache/view.py
With z3c.traversal.viewlet package we can use absoluteURL on
a viewlet
Jürgen Kartnaller
juergen at kartnaller.at
Fri Feb 2 18:07:14 EST 2007
Log message for revision 72340:
With z3c.traversal.viewlet package we can use absoluteURL on a viewlet
and get a valid path containing the manager.
Changed:
U lovely.viewcache/trunk/src/lovely/viewcache/view.py
-=-
Modified: lovely.viewcache/trunk/src/lovely/viewcache/view.py
===================================================================
--- lovely.viewcache/trunk/src/lovely/viewcache/view.py 2007-02-02 22:40:27 UTC (rev 72339)
+++ lovely.viewcache/trunk/src/lovely/viewcache/view.py 2007-02-02 23:07:14 UTC (rev 72340)
@@ -43,11 +43,7 @@
self._cachingOn = value
return property(get, set)
- @property
- def cachingKey(self):
- return getattr(super(CacheMixinBase, self),
- 'cachingKey',
- self.__name__)
+ cachingKey = None
@property
def staticCachingDeps(self):
@@ -122,15 +118,6 @@
class CachedViewletMixin(CacheMixinBase):
- def _getCachePath(self):
- url = absoluteURL(self.__parent__, self.request)
- url = '/'.join(url.split('/')[3:])
- return '%s/%s'% (url,
- '/'.join([self.__parent__.__name__,
- self.manager.__name__,
- self.__name__,])
- )
-
def update(self):
if not self._getCachedResult():
super(CachedViewletMixin, self).update()
More information about the Checkins
mailing list