当前位置: 首页>>代码示例>>Python>>正文


Python FreeNAS_GroupCache.keys方法代码示例

本文整理汇总了Python中freenasUI.common.freenascache.FreeNAS_GroupCache.keys方法的典型用法代码示例。如果您正苦于以下问题:Python FreeNAS_GroupCache.keys方法的具体用法?Python FreeNAS_GroupCache.keys怎么用?Python FreeNAS_GroupCache.keys使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在freenasUI.common.freenascache.FreeNAS_GroupCache的用法示例。


在下文中一共展示了FreeNAS_GroupCache.keys方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _cache_rawdump_NT4

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_rawdump_NT4(**kwargs):
    nt4 = FreeNAS_NT4()
    domains = nt4.get_domains()
    for d in domains:
        workgroup = d 

        print "w: %s" % workgroup 

        ucache = FreeNAS_UserCache(dir=workgroup)
        if ucache:
            for key in ucache.keys():
                print "u: %s=%s" % (key, ucache[key])

        gcache = FreeNAS_GroupCache(dir=workgroup)
        if gcache:
            for key in gcache.keys():
                print "g: %s=%s" % (key, gcache[key])

        ducache = FreeNAS_Directory_UserCache(dir=workgroup)
        if ducache:
            for key in ducache.keys():
                print "du: %s=%s" % (key, ducache[key])

        dgcache = FreeNAS_Directory_GroupCache(dir=workgroup)
        if dgcache:
            for key in dgcache.keys():
                print "dg: %s=%s" % (key, dgcache[key])
开发者ID:PatriQ7,项目名称:freenas,代码行数:29,代码来源:cachetool.py

示例2: _cache_keys_ActiveDirectory

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_keys_ActiveDirectory(**kwargs):
    ad = FreeNAS_ActiveDirectory(flags=FLAGS_DBINIT)
    domains = ad.get_domains()
    for d in domains:
        workgroup = d['nETBIOSName']

        print "w: %s" % workgroup 

        ucache = FreeNAS_UserCache(dir=workgroup)
        if ucache: 
            for key in ucache.keys():
                print "u key: %s" % key

        gcache = FreeNAS_GroupCache(dir=workgroup)
        if gcache:
            for key in gcache.keys():
                print "g key: %s" % key

        ducache = FreeNAS_Directory_UserCache(dir=workgroup)
        if ducache:
            for key in ducache.keys():
                print "du key: %s" % key

        dgcache = FreeNAS_Directory_GroupCache(dir=workgroup)
        if dgcache:
            for key in dgcache.keys():
                print "dg key: %s" % key
开发者ID:PatriQ7,项目名称:freenas,代码行数:29,代码来源:cachetool.py

示例3: _cache_rawdump_ActiveDirectory

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_rawdump_ActiveDirectory(**kwargs):
    ad = FreeNAS_ActiveDirectory(flags=FLAGS_DBINIT)
    domains = ad.get_domains()
    for d in domains:
        workgroup = d['nETBIOSName']

        print "w: %s" % workgroup 

        ucache = FreeNAS_UserCache(dir=workgroup)
        if ucache:
            for key in ucache.keys():
                print "u: %s=%s" % (key, ucache[key])

        gcache = FreeNAS_GroupCache(dir=workgroup)
        if gcache:
            for key in gcache.keys():
                print "g: %s=%s" % (key, gcache[key])

        ducache = FreeNAS_Directory_UserCache(dir=workgroup)
        if ducache:
            for key in ducache.keys():
                print "du: %s=%s" % (key, ducache[key])

        dgcache = FreeNAS_Directory_GroupCache(dir=workgroup)
        if dgcache:
            for key in dgcache.keys():
                print "dg: %s=%s" % (key, dgcache[key])
开发者ID:PatriQ7,项目名称:freenas,代码行数:29,代码来源:cachetool.py

示例4: _cache_keys_NT4

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_keys_NT4(**kwargs):
    nt4 = FreeNAS_NT4()
    domains = nt4.get_domains()
    for d in domains:
        workgroup = d

        print "w: %s" % workgroup 

        ucache = FreeNAS_UserCache(dir=workgroup)
        if ucache:
            for key in ucache.keys():
                print "u key: %s" % key

        gcache = FreeNAS_GroupCache(dir=workgroup)
        if gcache:
            for key in gcache.keys():
                print "g key: %s" % key

        ducache = FreeNAS_Directory_UserCache(dir=workgroup)
        if ducache:
            for key in ducache.keys():
                print "du key: %s" % key

        dgcache = FreeNAS_Directory_GroupCache(dir=workgroup)
        if dgcache:
            for key in dgcache.keys():
                print "dg key: %s" % key
开发者ID:PatriQ7,项目名称:freenas,代码行数:29,代码来源:cachetool.py

示例5: _cache_rawdump_NIS

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_rawdump_NIS(**kwargs):
    nis = FreeNAS_NIS(flags=FLAGS_DBINIT)
    domains = nis.get_domains()
    for d in domains:
        print "d: %s" % d

        ucache = FreeNAS_UserCache(dir=d)
        if ucache:
            for key in ucache.keys():
                print "u: %s=%s" % (key, ucache[key])

        gcache = FreeNAS_GroupCache(dir=d)
        if gcache:
            for key in gcache.keys():
                print "g: %s=%s" % (key, gcache[key])

        ducache = FreeNAS_Directory_UserCache(dir=d)
        if ducache:
            for key in ducache.keys():
                print "du: %s=%s" % (key, ducache[key])

        dgcache = FreeNAS_Directory_GroupCache(dir=d)
        if dgcache:
            for key in dgcache.keys():
                print "dg: %s=%s" % (key, dgcache[key])
开发者ID:HySoaKa,项目名称:freenas,代码行数:27,代码来源:cachetool.py

示例6: _cache_keys_NIS

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_keys_NIS(**kwargs):
    nis = FreeNAS_NIS(flags=FLAGS_DBINIT)
    domains = nis.get_domains()
    for d in domains:
        print "d: %s" % d

        ucache = FreeNAS_UserCache(dir=d)
        if ucache: 
            for key in ucache.keys():
                print "u key: %s" % key

        gcache = FreeNAS_GroupCache(dir=d)
        if gcache:
            for key in gcache.keys():
                print "g key: %s" % key

        ducache = FreeNAS_Directory_UserCache(dir=d)
        if ducache:
            for key in ducache.keys():
                print "du key: %s" % key

        dgcache = FreeNAS_Directory_GroupCache(dir=d)
        if dgcache:
            for key in dgcache.keys():
                print "dg key: %s" % key
开发者ID:HySoaKa,项目名称:freenas,代码行数:27,代码来源:cachetool.py

示例7: _cache_keys_NIS

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_keys_NIS(**kwargs):
    nis = FreeNAS_NIS(flags=FLAGS_DBINIT)
    domains = nis.get_domains()
    for d in domains:
        print("d: %s" % d)

        ucache = FreeNAS_UserCache(dir=d)
        if ucache:
            for key in list(ucache.keys()):
                print("u key: %s" % key)

        gcache = FreeNAS_GroupCache(dir=d)
        if gcache:
            for key in list(gcache.keys()):
                print("g key: %s" % key)

        ducache = FreeNAS_Directory_UserCache(dir=d)
        if ducache:
            for key in list(ducache.keys()):
                print("du key: %s" % key)

        dgcache = FreeNAS_Directory_GroupCache(dir=d)
        if dgcache:
            for key in list(dgcache.keys()):
                print("dg key: %s" % key)
开发者ID:binzyw,项目名称:freenas,代码行数:27,代码来源:cachetool.py

示例8: _cache_rawdump_default

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_rawdump_default(**kwargs):
    ucache = FreeNAS_UserCache()
    for key in ucache.keys():
        print "u: %s=%s" % (key, ucache[key])

    gcache = FreeNAS_GroupCache()
    if gcache:
        for key in gcache.keys():
            print "g: %s=%s" % (key, gcache[key])

    ducache = FreeNAS_Directory_UserCache()
    if ducache:
        for key in ducache.keys():
            print "du: %s=%s" % (key, ducache[key])

    dgcache = FreeNAS_Directory_GroupCache()
    if dgcache:
        for key in dgcache.keys():
            print "dg: %s=%s" % (key, dgcache[key])
开发者ID:PatriQ7,项目名称:freenas,代码行数:21,代码来源:cachetool.py

示例9: _cache_rawdump_default

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_rawdump_default(**kwargs):
    ucache = FreeNAS_UserCache()
    for key in list(ucache.keys()):
        print("u: %s=%s" % (key, ucache[key]))

    gcache = FreeNAS_GroupCache()
    if gcache:
        for key in list(gcache.keys()):
            print("g: %s=%s" % (key, gcache[key]))

    ducache = FreeNAS_Directory_UserCache()
    if ducache:
        for key in list(ducache.keys()):
            print("du: %s=%s" % (key, ducache[key]))

    dgcache = FreeNAS_Directory_GroupCache()
    if dgcache:
        for key in list(dgcache.keys()):
            print("dg: %s=%s" % (key, dgcache[key]))
开发者ID:binzyw,项目名称:freenas,代码行数:21,代码来源:cachetool.py

示例10: _cache_keys_default

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_keys_default(**kwargs):
    ucache = FreeNAS_UserCache()
    if ucache:
        for key in ucache.keys():
            print "u key: %s" % key

    gcache = FreeNAS_GroupCache()
    if gcache:
        for key in gcache.keys():
            print "g key: %s" % key

    ducache = FreeNAS_Directory_UserCache()
    if ducache:
        for key in ducache.keys():
            print "du key: %s" % key

    dgcache = FreeNAS_Directory_GroupCache()
    if dgcache:
        for key in dgcache.keys():
            print "dg key: %s" % key
开发者ID:PatriQ7,项目名称:freenas,代码行数:22,代码来源:cachetool.py

示例11: _cache_keys_default

# 需要导入模块: from freenasUI.common.freenascache import FreeNAS_GroupCache [as 别名]
# 或者: from freenasUI.common.freenascache.FreeNAS_GroupCache import keys [as 别名]
def _cache_keys_default(**kwargs):
    ucache = FreeNAS_UserCache()
    if ucache:
        for key in list(ucache.keys()):
            print("u key: %s" % key)

    gcache = FreeNAS_GroupCache()
    if gcache:
        for key in list(gcache.keys()):
            print("g key: %s" % key)

    ducache = FreeNAS_Directory_UserCache()
    if ducache:
        for key in list(ducache.keys()):
            print("du key: %s" % key)

    dgcache = FreeNAS_Directory_GroupCache()
    if dgcache:
        for key in list(dgcache.keys()):
            print("dg key: %s" % key)
开发者ID:binzyw,项目名称:freenas,代码行数:22,代码来源:cachetool.py


注:本文中的freenasUI.common.freenascache.FreeNAS_GroupCache.keys方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。