Ejemplo n.º 1
0
 def testNonASCIIPath(self):
     # http://dev.plone.org/plone/ticket/7086
     context = self.folder
     renderer = MockRenderer(context, context.REQUEST)
     renderer.data_brains = [
         MockBrain("Pr\xc5\xafvodce"), MockBrain("p\xc5\x99i")]
     render_cachekey(None, renderer)
Ejemplo n.º 2
0
    def testAnonymousFlag(self):
        context = self.folder
        renderer = MockRenderer(context, context.REQUEST)

        key1 = render_cachekey(None, renderer)
        self.logout()
        key2 = render_cachekey(None, renderer)

        self.assertNotEqual(key1, key2)
Ejemplo n.º 3
0
 def testNonASCIIPath(self):
     # http://dev.plone.org/plone/ticket/7086
     context = self.folder
     renderer = MockRenderer(context, context.REQUEST)
     renderer.data_brains = [
         MockBrain("Pr\xc5\xafvodce"),
         MockBrain("p\xc5\x99i")
     ]
     render_cachekey(None, renderer)
Ejemplo n.º 4
0
    def testRenderCachekey(self):
        context = self.folder
        renderer = MockRenderer(context, context.REQUEST)

        key1 = render_cachekey(None, renderer)
        renderer.manager.__name__ += '__changed__'
        key2 = render_cachekey(None, renderer)

        self.failUnless(key1 != key2)
Ejemplo n.º 5
0
    def testAnonymousFlag(self):
        context = self.folder
        renderer = MockRenderer(context, context.REQUEST)

        key1 = render_cachekey(None, renderer)
        self.logout()
        key2 = render_cachekey(None, renderer)

        self.assertNotEqual(key1, key2)
Ejemplo n.º 6
0
    def testRenderCachekey(self):
        context = self.folder
        renderer = MockRenderer(context, context.REQUEST)

        key1 = render_cachekey(None, renderer)
        renderer.manager.__name__ += '__changed__'
        key2 = render_cachekey(None, renderer)

        self.assertTrue(key1 != key2)
Ejemplo n.º 7
0
def _render_cachekey(fun, self):
    raise ram.DontCache()
    if self.anonymous:
        raise ram.DontCache()
    return render_cachekey(fun, self)
Ejemplo n.º 8
0
def _render_cachekey(fun, self):
    if self.anonymous:
        raise ram.DontCache()
    return render_cachekey(fun, self)
Ejemplo n.º 9
0
def _render_cachekey(fun, self):
    return render_cachekey(fun, self)
Ejemplo n.º 10
0
def _render_cachekey(fun, self):
    """render the necessary cachekey"""
    return render_cachekey(fun, self)
Ejemplo n.º 11
0
def _render_cachekey(fun, self):
    """render cachekey"""
    return render_cachekey(fun, self)