summaryrefslogtreecommitdiffstats
path: root/ffi/lang/python/sequoia/glue.py
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-05-15 16:28:11 +0200
committerJustus Winter <justus@sequoia-pgp.org>2019-05-15 16:29:55 +0200
commita25ef6974e0ba3989f6205c19a1f9ccfc81db584 (patch)
tree4ce3b386923515a662051c40f67a135ee15681f6 /ffi/lang/python/sequoia/glue.py
parent36e2d97ac013e023feb27df939c3f6d6e32d8669 (diff)
core, store, tool: Use realm instead of domain.
- Remove the domain parameter from core::Context. - Replace it with a realm to be passed in when opening a store. - For sq, merge store name and realm into the --store parameter. - Fixes #105.
Diffstat (limited to 'ffi/lang/python/sequoia/glue.py')
-rw-r--r--ffi/lang/python/sequoia/glue.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ffi/lang/python/sequoia/glue.py b/ffi/lang/python/sequoia/glue.py
index ea40d20c..cca3a71d 100644
--- a/ffi/lang/python/sequoia/glue.py
+++ b/ffi/lang/python/sequoia/glue.py
@@ -109,6 +109,10 @@ def sq_str(s):
return t
_str = sq_str
+def sq_static_str(s):
+ return ffi.string(s).decode()
+_static_str = sq_static_str
+
def sq_iterator(iterator, next_fn, map=lambda x: x):
while True:
entry = next_fn(iterator)