Complete.Org: Mailing Lists: Archives: offlineimap: January 2009:
Re: [PATCH] remove siglistener
Home

Re: [PATCH] remove siglistener

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Christoph Höger <choeger@xxxxxxxxxxxxxxx>
Cc: offlineimap@xxxxxxxxxxxx
Subject: Re: [PATCH] remove siglistener
From: John Goerzen <jgoerzen@xxxxxxxxxxxx>
Date: Thu, 15 Jan 2009 20:09:15 -0600

Thanks.  Applied and pushed both.

-- John

Christoph Höger wrote:
>       * please add to gnomeui branch  
>       * removed the siglistener parameter to sleep
>       to fit GnomeUI to offlineimap 6.0.3
> Signed-off-by: Christoph Höger <choeger@xxxxxxxxxxxxxxx>
> ---
>  offlineimap/ui/Gnome.py |   12 +++++-------
>  1 files changed, 5 insertions(+), 7 deletions(-)
> 
> diff --git a/offlineimap/ui/Gnome.py b/offlineimap/ui/Gnome.py
> index 72996de..ec2a926 100644
> --- a/offlineimap/ui/Gnome.py
> +++ b/offlineimap/ui/Gnome.py
> @@ -618,7 +618,7 @@ class GnomeUI(UIBase):
>               else:
>                       self.ui.add_warning(str(msg))
>  
> -     def sleep(self, secs, siglistener):
> +     def sleep(self, secs):
>               self.ui.debug("GnomeUI.sleep(%i)" % secs)
>               msg = "Sleeping for %d minutes" % (secs / 60)
>               if secs % 60 > 0:
> @@ -626,7 +626,7 @@ class GnomeUI(UIBase):
>               self.ui.add_msg(msg)
>               self.ui.icon.set_state(GnomeUIStatusIcon.STATE_IDLE)
>               self.ui.stopsleep.clear()
> -             UIBase.sleep(self, secs, siglistener)
> +             UIBase.sleep(self, secs)
>  
>       def sleeping(self, secs, remainingsecs):
>               # Return values
> @@ -662,10 +662,8 @@ class GnomeUI(UIBase):
>  
>  if __name__ == '__main__':
>       import time
> -     from offlineimap.accounts import SigListener
>       print "MAIN: Begin tests"
>  
> -     siglistener = SigListener()
>  
>       x = GnomeUI(None)
>       x.init_banner()
> @@ -681,7 +679,7 @@ if __name__ == '__main__':
>       
>       x.warn("Sleeping 999 secs")
>       x.warn("Select \"Start Sync\" from status icon context menu to 
> continue")
> -     x.sleep(999, siglistener)
> +     x.sleep(999)
>  
>       x.warn("Showing log window")
>       x.ui.log.open()
> @@ -691,7 +689,7 @@ if __name__ == '__main__':
>               x.ui.add_msg("Line " + str(i + 1) + " of log text")
>               time.sleep(1)
>       x.warn("Sleeping 10 secs")
> -     x.sleep(10, siglistener)
> +     x.sleep(10)
>  
>       x.warn("Showing about - close to continue")
>       x.ui.about.open()
> @@ -705,7 +703,7 @@ if __name__ == '__main__':
>               x.warn("No password given")
>  
>       x.warn("Sleeping 3 secs")
> -     x.sleep(3, siglistener)
> +     x.sleep(3)
>       x.warn("Trying a password again with error message")
>       password = x.ui.getpass("Test", None, "Error message")
>       if password is not None:




[Prev in Thread] Current Thread [Next in Thread]