示例#1
0
文件: shell.py 项目: betsegaw/peppy
 def activate(self):
     IPeppyPlugin.activate(self)
     vfs.register_file_system('shell', ShellFS)
示例#2
0
文件: shell.py 项目: zendbit/peppy
 def activate(self):
     IPeppyPlugin.activate(self)
     vfs.register_file_system('shell', ShellFS)
示例#3
0
文件: about.py 项目: zendbit/peppy
        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 -*-')
示例#4
0
文件: macro.py 项目: zendbit/peppy
 def activateHook(self):
     vfs.register_file_system('macro', MacroFS)