help for conf

--HG--
branch : pmacs2
This commit is contained in:
moculus 2007-10-18 16:05:21 +00:00
parent b174d5cf99
commit b0f40259d6
1 changed files with 11 additions and 0 deletions

View File

@ -239,6 +239,17 @@ class Application(object):
curses.noecho()
curses.nonl()
def setmode(self, name, cls, paths=[], basenames=[], extensions=[], detection=[]):
self.modes[name] = cls
for p in paths:
self.mode_paths[p] = name
for b in basenames:
self.mode_basenames[b] = name
for e in extensions:
self.mode_extensions[e] = name
for d in detection:
self.mode_detection[d] = name
def globals(self):
return globals()
def locals(self):