def _makeOne(self, param=None):
     from pyramid.static import QueryStringConstantCacheBuster as cls
     if param:
         inst = cls('foo', param)
     else:
         inst = cls('foo')
     return inst
Exemple #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
Exemple #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
Exemple #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
Exemple #5
0
    def _makeOne(self, path, **kw):
        from pyramid.static import ManifestCacheBuster as cls

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