def __init__(self, file): INIConfigFile.__init__(self, file) if os.name == 'nt': endofline = 'dos' else: endofline = 'unix' name = file.dir.basename if hasattr(file, 'dir') else file.parent( ).basename # HACK zim.fs and zim.newfs compat self['Notebook'].define(( ('version', String('.'.join(map(str, DATA_FORMAT_VERSION)))), ('name', String(name)), ('interwiki', String(None)), ('home', ConfigDefinitionByClass(Path('Home'))), ('icon', String(None)), # XXX should be file, but resolves relative ('document_root', String(None)), # XXX should be dir, but resolves relative ('short_links', Boolean(False)), ('shared', Boolean(True)), ('endofline', Choice(endofline, {'dos', 'unix'})), ('disable_trash', Boolean(False)), ('default_file_format', String('zim-wiki')), ('default_file_extension', String('.txt')), ('notebook_layout', String('files')), ))
def __init__(self, file): INIConfigFile.__init__(self, file) if os.name == 'nt': endofline = 'dos' else: endofline = 'unix' self['Notebook'].define(( ('version', String('.'.join(map(str, DATA_FORMAT_VERSION)))), ('name', String(file.dir.basename)), ('interwiki', String(None)), ('home', ConfigDefinitionByClass(Path('Home'))), ('icon', String(None)), # XXX should be file, but resolves relative ('document_root', String(None)), # XXX should be dir, but resolves relative ('shared', Boolean(True)), ('endofline', Choice(endofline, set(('dos', 'unix')))), ('disable_trash', Boolean(False)), ('profile', String(None)), ))
def __init__(self, file): DesktopEntryDict.__init__(self) INIConfigFile.__init__(self, file)
def __init__(self, file): CustomToolDict.__init__(self) INIConfigFile.__init__(self, file)