From 581f7e6b508c43250c4191ad740dd1b31a4ca9af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Tue, 27 Jan 2009 22:00:12 +0100 Subject: Remove the cluttering section names; rename main session section from 'window' to 'gui' --- portato/session.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'portato/session.py') diff --git a/portato/session.py b/portato/session.py index a4b929b..cd4737e 100644 --- a/portato/session.py +++ b/portato/session.py @@ -82,6 +82,8 @@ class Session (object): - a function getting number of option arguments and applying them to the program - a function returning the number of option return values - getting them out of the program """ + + options = map(lambda x: (x, self._name) if not hasattr(x, "__iter__") else x, options) self._handlers.append((options, load_fn, save_fn, default)) def load (self, defaults_only = False): -- cgit v1.2.3