__all__ = ['storage_flad']
-import string
from m_lib.flad import fladm
from bkmk_objects import Folder, Bookmark, Ruler, Walker
self.first_object = 1
def root_folder(self, f):
- header = string.replace(f.header, ".", ".\n")
- header = string.replace(header, "<", "\n<", 3)[1:]
+ header = f.header.replace(".", ".\n")
+ header = header.replace("<", "\n<", 3)[1:]
header_file = open("header", 'w')
header_file.write(header + "\n")
header_file.write('<H1>%s</H1>\n\n' % f.name)
header = header_file.read()
header_file.close()
- header = string.split(header, "\n")
- root_folder.header = string.join(header[:5], '')
+ header = header.split("\n")
+ root_folder.header = header[:5].join('')
root_folder.name = header[5][4:-5]
- root_folder.comment = string.join(header[7:], '')[4:]
+ root_folder.comment = header[7:].join('')[4:]
save_level = 0
got_folder = 1 # Start as if we already have one folder