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

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