def _makeOne(self, param=None):
     from pyramid.static import QueryStringConstantCacheBuster as cls
     if param:
         inst = cls('foo', param)
     else:
         inst = cls('foo')
     return inst
Esempio n. 2
0
 def _makeOne(self, param=None):
     from pyramid.static import QueryStringConstantCacheBuster as cls
     if param:
         inst = cls('foo', param)
     else:
         inst = cls('foo')
     return inst
Esempio n. 3
0
 def _makeOne(self, param=None):
     from pyramid.static import QueryStringMd5CacheBuster as cls
     if param:
         inst = cls(param)
     else:
         inst = cls()
     inst.token = lambda pathspec: 'foo'
     return inst
Esempio n. 4
0
 def _makeOne(self, param=None):
     from pyramid.static import QueryStringMd5CacheBuster as cls
     if param:
         inst = cls(param)
     else:
         inst = cls()
     inst.tokenize = lambda pathspec: 'foo'
     return inst
Esempio n. 5
0
    def _makeOne(self, path, **kw):
        from pyramid.static import ManifestCacheBuster as cls

        return cls(path, **kw)
Esempio n. 6
0
 def _makeOne(self):
     from pyramid.static import PathSegmentMd5CacheBuster as cls
     inst = cls()
     inst.token = lambda pathspec: 'foo'
     return inst
Esempio n. 7
0
 def _makeOne(self):
     from pyramid.static import Md5AssetTokenGenerator as cls
     return cls()
Esempio n. 8
0
 def _makeOne(self, path, **kw):
     from pyramid.static import ManifestCacheBuster as cls
     return cls(path, **kw)
Esempio n. 9
0
 def _makeOne(self):
     from pyramid.static import PathSegmentMd5CacheBuster as cls
     inst = cls()
     inst.tokenize = lambda pathspec: 'foo'
     return inst
Esempio n. 10
0
 def _makeOne(self):
     from pyramid.static import Md5AssetTokenGenerator as cls
     return cls()