Beispiel #1
0
 def activate(self):
     IPeppyPlugin.activate(self)
     vfs.register_file_system('shell', ShellFS)
Beispiel #2
0
 def activate(self):
     IPeppyPlugin.activate(self)
     vfs.register_file_system('shell', ShellFS)
Beispiel #3
0
        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 -*-')
Beispiel #4
0
 def activateHook(self):
     vfs.register_file_system('macro', MacroFS)