本文整理匯總了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