コード例 #1
0
ファイル: helpers.py プロジェクト: toikarin/py-keepassx
def create_metaentry(group):
    now = utils.now()

    e = Entry()
    e.uuid = utils.generate_uuid()
    e.group_id = group.group_id
    e.image = 0
    e.title = "Meta-Info"
    e.url = "$"
    e.username = "******"
    e.password = ""
    e.comment = "KPX_CUSTOM_ICONS_4"
    e.creation = now + datetime.timedelta(minutes=10)
    e.last_mod = now + datetime.timedelta(minutes=20)
    e.last_access = now + datetime.timedelta(minutes=30)
    e.expire = now + datetime.timedelta(minutes=40)
    e.binary_desc = "bin-stream"
    e.binary = bytearray(b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00")

    return e
コード例 #2
0
def create_metaentry(group):
    now = utils.now()

    e = Entry()
    e.uuid = utils.generate_uuid()
    e.group_id = group.group_id
    e.image = 0
    e.title = "Meta-Info"
    e.url = "$"
    e.username = "******"
    e.password = ""
    e.comment = "KPX_CUSTOM_ICONS_4"
    e.creation = now + datetime.timedelta(minutes=10)
    e.last_mod = now + datetime.timedelta(minutes=20)
    e.last_access = now + datetime.timedelta(minutes=30)
    e.expire = now + datetime.timedelta(minutes=40)
    e.binary_desc = "bin-stream"
    e.binary = bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00')

    return e
コード例 #3
0
ファイル: helpers.py プロジェクト: toikarin/py-keepassx
def create_entry(group):
    now = utils.now()

    e = Entry()
    e.uuid = utils.generate_uuid()
    e.group_id = group.group_id
    e.image = 1
    e.title = "test title"
    e.url = "http://www.example.com"
    e.username = "******"
    e.password = "******"
    e.comment = "test comment"
    e.creation = now + datetime.timedelta(minutes=10)
    e.last_mod = now + datetime.timedelta(minutes=20)
    e.last_access = now + datetime.timedelta(minutes=30)
    e.expire = now + datetime.timedelta(minutes=40)
    e.binary_desc = "test binary desc"
    e.binary = bytearray("test binary\x00")

    return e
コード例 #4
0
def create_entry(group):
    now = utils.now()

    e = Entry()
    e.uuid = utils.generate_uuid()
    e.group_id = group.group_id
    e.image = 1
    e.title = "test title"
    e.url = "http://www.example.com"
    e.username = "******"
    e.password = "******"
    e.comment = "test comment"
    e.creation = now + datetime.timedelta(minutes=10)
    e.last_mod = now + datetime.timedelta(minutes=20)
    e.last_access = now + datetime.timedelta(minutes=30)
    e.expire = now + datetime.timedelta(minutes=40)
    e.binary_desc = "test binary desc"
    e.binary = bytearray('test binary\x00')

    return e