"""
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2010-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2010-2023 PhiloSoft Design"
__license__ = "GNU GPL"
__all__ = ['storage_json']
date = int(float(date) * 10**6)
return date
+
def convert_date_from_json(date):
if date:
date = float(date)
date /= 10.0**6
return date
+
def encode_title(title):
if title:
return title.encode("UTF-8", "xmlcharrefreplace")
return title
+
def get_str(record, name):
if name in record:
return record[name].encode('utf-8')
return ''
+
def get_comment(annos):
if not annos:
return ''
return ''
+
def make_annos(value, name="bookmarkProperties/description"):
return [{
"expires": 4,