After class or function definition.
global ftpcache_key
ftpcache_key = (user, host, port, '/'.join(dirs))
+
urllib.ftpwrapper = myftpwrapper
comment = comment.replace("\n", "<BR>\n")
return comment
+
ind_s = " "*4
HTTP._setup(self, conn)
self.set_debuglevel(1)
+
httplib.HTTP = MyHTTP
from bkmk_objects import Bookmark
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2014-2017 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2014-2023 PhiloSoft Design"
__license__ = "GNU GPL"
print(" refresh:", parser.refresh)
print(" icon :", parser.icon)
+
if __name__ == '__main__':
main()
exec("robot = bkmk_r%s.robot_%s" % (robot_name, robot_name))
return robot
+
robot = import_robot(robot_name)
set_params(robot, robot_params)
exec("storage = bkmk_st%s.storage_%s" % (storage_name, storage_name))
return storage
+
storage = import_storage(storage_name)
set_params(storage, storage_params)
exec("writer = bkmk_w%s.writer_%s" % (writer_name, writer_name))
return writer
+
writer = import_writer(writer_name)
set_params(writer, writer_params)