本文整理汇总了Python中smart.cache.Loader类的典型用法代码示例。如果您正苦于以下问题:Python Loader类的具体用法?Python Loader怎么用?Python Loader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Loader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, filename, filelistsname, baseurl):
Loader.__init__(self)
self._filename = filename
self._filelistsname = filelistsname
self._baseurl = baseurl
self._fileprovides = {}
self._pkgids = {}
示例2: __init__
def __init__(self, filename, baseurl, listfile, infofile=None):
Loader.__init__(self)
self._filename = filename
self._baseurl = baseurl
self._prefix = {}
self._infofile = infofile
self._flagdict = None
示例3: __init__
def __init__(self, filename, baseurl, listfile):
Loader.__init__(self)
self._filename = filename
self._baseurl = baseurl
self._prefix = {}
if listfile:
for entry in open(listfile):
if entry[:2] == "./":
entry = entry[2:]
dirname, basename = os.path.split(entry.rstrip())
self._prefix[basename] = dirname
示例4: buildPackage
def buildPackage(self, pkgargs, prvargs, reqargs, upgargs, cnfargs):
pkg = Loader.buildPackage(self, pkgargs, prvargs, reqargs, upgargs, cnfargs)
name = pkgargs[1]
if hasattr(self, '_flagdict') and self._flagdict and name in self._flagdict:
if not sysconf.getReadOnly():
pkgconf.setFlag(self._flagdict[name], name, "=", pkgargs[2])
return pkg
示例5: __init__
def __init__(self, baseurl, datadir, pkginfofile, pkgdescfile=None):
Loader.__init__(self)
self._baseurl = baseurl
self._datadir = datadir
self._pkginfofile = pkginfofile
self._pkgdescfile = pkgdescfile
示例6: __init__
def __init__(self, baseurl=None):
Loader.__init__(self)
self._baseurl = baseurl
示例8: __init__
def __init__(self, baseurl=None):
Loader.__init__(self)
self._baseurl = baseurl
self._sections = {}
示例9: __init__
def __init__(self, filename, baseurl, filelistname):
Loader.__init__(self)
self._filename = filename
self._baseurl = baseurl
self._filelistname = filelistname
示例10: reset
def reset(self):
Loader.reset(self)
self._fileprovides.clear()
self._parsedflist = False
self._pkgids.clear()
示例11: reset
def reset(self):
Loader.reset(self)
self._fileprovides.clear()
示例12: reset
def reset(self):
Loader.reset(self)
self._offsets.clear()
self._groups.clear()
示例13: __init__
def __init__(self):
Loader.__init__(self)
self._infoorder = 0
self._offsets = {}
self._groups = {}
示例14: __init__
def __init__(self):
Loader.__init__(self)
示例15: __init__
def __init__(self, baseurl=None):
Loader.__init__(self)
self._md5sums = {}
self._baseurl = baseurl