def activate(self): IPeppyPlugin.activate(self) vfs.register_file_system('shell', ShellFS)
return fh @staticmethod def get_names(reference): path = str(reference.path) #dprint(path) if path != ".": raise OSError("[Errno 20] Not a directory '%s'" % path) return findAboutNames() import urlparse urlparse.uses_fragment.append('about') urlparse.uses_query.append('about') vfs.register_file_system('about', AboutFS) def getNewUntitled(): """Get a unique filename for a new blank document""" root = "untitled" name = root count = 1 while name in aboutfiles: count += 1 name = "%s-%d" % (root, count) SetAbout(name,'') return "about:%s" % name SetAbout('blank','') SetAbout('scratch','-*- Fundamental -*-')
def activateHook(self): vfs.register_file_system('macro', MacroFS)