Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(21)  |  Call(12)  |  Derive(0)  |  Import(9)
<comment-ja>
Karesansui?UUID???????????????
</comment-ja>
<comment-en>
TODO: English Comment
</comment-en>

        def is_uuid(uuid=None):
    """
    Karesansui?UUID???????????????
    
    
    TODO: English Comment
    
    """
    uuid_regex = re.compile(r"""^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$""")
    if uuid != None and uuid_regex.match(uuid):
        return True

    return False
        


src/k/a/karesansui-HEAD/karesansui/lib/virt/virt.py   karesansui(Download)
from karesansui.lib.utils import copy_file            as CopyFile
from karesansui.lib.net.http import wget              as DownloadFile
from karesansui.lib.utils import is_uuid, get_ifconfig_info, r_chgrp, r_chmod, \
  getfilesize_str, get_filesize_MB, get_disk_img_info, available_virt_uris, \
  is_iso9660_filesystem_format, is_windows_bootable_iso, is_darwin_bootable_iso, \
        guests = []
 
        if is_uuid(name):
            name = self.uuid_to_domname(name)
 
        """
 
        if is_uuid(name):
            name = self.uuid_to_domname(name)
 
        """
 
        if is_uuid(name):
            name = self.uuid_to_domname(name)
 
        """
 
        if is_uuid(name):
            name = self.uuid_to_domname(name)
 

src/k/a/karesansui-HEAD/tools/initialize_database.py   karesansui(Download)
    import karesansui
    from karesansui import __version__
    from karesansui.lib.utils import is_uuid, is_int
    from karesansui.lib.utils import generate_phrase, generate_uuid, string_from_uuid
    from karesansui.lib.file.k2v import K2V
def chkopts(opts):
    from karesansui.lib.utils import generate_phrase, generate_uuid, string_from_uuid, is_uuid
    from karesansui.lib.const import DEFAULT_LANGS
 
    reg_email = re.compile("^[a-zA-Z0-9\./_-]{1,}@[a-zA-Z0-9\./-]{4,}$")
 
    if opts.uuid:
        if is_uuid(opts.uuid) is False:
            raise Exception('ERROR: Illigal option value. option=%s value=%s' % ('-u or --uuid', opts.uuid))
    else:

src/k/a/karesansui-HEAD/karesansui/lib/checker.py   karesansui(Download)
from karesansui.lib.const import XEN_KEYMAP_DIR, KVM_KEYMAP_DIR
 
from karesansui.lib.utils import str2datetime, is_int, is_ascii, is_uuid, \
     get_ifconfig_info
from karesansui.lib.networkaddress import NetworkAddress
        if ret_val:
            if check & CHECK_VALID: 
                if not is_uuid(value):
                    ret_val = False
                    self.add_error(_('%s is invalid format.') % (name,))

src/k/a/karesansui-HEAD/bin/delete_export_data.py   karesansui(Download)
    from karesansui import __version__
    from karesansui.lib.virt.virt import KaresansuiVirtConnection, KaresansuiVirtException
    from karesansui.lib.utils import load_locale, is_uuid
    from karesansui.lib.virt.config_export import ExportConfigParam
    from karesansui.lib.virt.config import ConfigParam
def chkopts(opts):
    if opts.uuid:
        if not is_uuid(opts.uuid):
            raise KssCommandOptException('ERROR: Illigal UUID. uuid=%s' % (opts.uuid))
    else:
        pool_dir = os.path.dirname(export['dir'])
 
        if not is_uuid(export['uuid']):
            raise KssCommandException(_("Failed to delete export data. - %s") % (_("'%s' is not valid export data directory.") % (export['dir'])))
 

src/k/a/karesansui-HEAD/bin/create_guest.py   karesansui(Download)
    from karesansui import __version__
    from karesansui.lib.virt.virt import KaresansuiVirtConnection
    from karesansui.lib.utils import load_locale, is_uuid, is_iso9660_filesystem_format
    from karesansui.lib.const import DEFAULT_KEYMAP, GRAPHICS_PORT_MIN_NUMBER, GRAPHICS_PORT_MAX_NUMBER
 
 
    if opts.uuid:
        if not is_uuid(opts.uuid):
            raise KssCommandOptException('ERROR: Illigal UUID. uuid=%s' % (opts.uuid))
 

src/k/a/karesansui-HEAD/karesansui/prep.py   karesansui(Download)
    import __init__ as karesansui
 
from karesansui.lib.utils import is_uuid, is_int
from lib.file.k2v import K2V 
 
        check = False
 
    if check and is_uuid(config["application.uniqkey"]) is False:
        print >>sys.stderr, 'UUID format is not set. - application.uniqkey'
        check = False

src/k/a/karesansui-HEAD/bin/replicate_guest.py   karesansui(Download)
    from karesansui import __version__
    from karesansui.lib.virt.virt import KaresansuiVirtConnection
    from karesansui.lib.utils import load_locale, is_uuid
    from karesansui.lib.const import PORT_MIN_NUMBER, PORT_MAX_NUMBER
 
 
    if opts.uuid:
        if not is_uuid(opts.uuid):
            raise KssCommandOptException('ERROR: Illigal UUID. uuid=%s' % (opts.uuid))
 

src/k/a/karesansui-HEAD/karesansui/gadget/init.py   karesansui(Download)
from karesansui.lib.rest import Rest, auth
 
from karesansui.lib.utils import is_uuid, is_int, karesansui_database_exists
from karesansui.lib.utils import generate_phrase, generate_uuid, string_from_uuid