aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmailconf
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-05-26 04:43:06 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-05-26 04:43:06 +0000
commitda2c06aa24d934fbd8bedf914dcf682d6f66fc98 (patch)
tree015d1228942751c4deada2aea926b5fb6d0d2a5d /fetchmailconf
parent97e8f804b145f842f33c13ab5a4ca2bed74297d8 (diff)
downloadfetchmail-da2c06aa24d934fbd8bedf914dcf682d6f66fc98.tar.gz
fetchmail-da2c06aa24d934fbd8bedf914dcf682d6f66fc98.tar.bz2
fetchmail-da2c06aa24d934fbd8bedf914dcf682d6f66fc98.zip
Solved the callback problem.
svn path=/trunk/; revision=1840
Diffstat (limited to 'fetchmailconf')
-rwxr-xr-xfetchmailconf15
1 files changed, 7 insertions, 8 deletions
diff --git a/fetchmailconf b/fetchmailconf
index 4c1ee328..28e35ae2 100755
--- a/fetchmailconf
+++ b/fetchmailconf
@@ -644,7 +644,8 @@ available.
Normally the TCP/IP service port to use is
dictated by the protocol choice. The `Port'
-field lets you set a non-standard port.
+field (only present in expert mode) lets you
+set a non-standard port.
"""}
sechelp = {
@@ -800,7 +801,8 @@ class ServerEdit(Frame):
Label(userwin, text="User entries for " + host).pack(side=TOP)
ListEdit("New user: ",
map(lambda x: x.remote, self.server.users),
- self.edituser, userwin, suserhelp)
+ lambda u, m=mode, s=self.server: UserEdit(m,u,s, Toplevel()),
+ userwin, suserhelp)
userwin.pack(fill=X)
leftwin.pack(side=LEFT, anchor=N, fill=X);
@@ -841,9 +843,6 @@ class ServerEdit(Frame):
rightwin.pack(side=LEFT, anchor=N);
- def edituser(self, user):
- UserEdit(user, self.server, Toplevel())
-
#
# User editing stuff
#
@@ -879,7 +878,7 @@ page section on multidrop mode.
"""}
class UserEdit(Frame):
- def __init__(self, username, server, master=None):
+ def __init__(self, mode, username, server, master=None):
Frame.__init__(self, master)
Pack.config(self)
self.master.title('Fetchmail user ' + username + ' querying ' + server.pollname);
@@ -896,7 +895,7 @@ class UserEdit(Frame):
server.users.append(self.user)
self.post()
- self.makeWidgets()
+ self.makeWidgets(mode)
# self.grab_set()
# self.focus_set()
# self.wait_window()
@@ -931,7 +930,7 @@ class UserEdit(Frame):
self.gather()
Widget.destroy(self.master)
- def makeWidgets(self):
+ def makeWidgets(self, mode):
dispose_window(self,
"User options for " + self.user.remote,
userhelp)