← Back to team overview

beeseek-devs team mailing list archive

[Branch ~beeseek-devs/beeseek/trunk] Rev 185: Show more information in the log and fix some warnings raised by pychecker.

 

------------------------------------------------------------
revno: 185
committer: Andrea Corbellini <andrea.corbellini@xxxxxxxxxxx>
branch nick: trunk
timestamp: Sat 2008-11-15 18:34:58 +0100
message:
  Show more information in the log and fix some warnings raised by pychecker.
modified:
  beeseek/config.py
  beeseek/honeybee/session.py
  beeseek/session.py
  beeseek/version.py

=== modified file 'beeseek/config.py'
--- a/beeseek/config.py	2008-11-13 13:42:08 +0000
+++ b/beeseek/config.py	2008-11-15 17:34:58 +0000
@@ -26,7 +26,7 @@
 __all__ = ['ConfigParser']
 
 
-class ConfigParser(optparse.OptionParser):
+class ConfigParser(optparse.OptionParser, object):
 
     _populated = False
     _argsparsed = False

=== modified file 'beeseek/honeybee/session.py'
--- a/beeseek/honeybee/session.py	2008-11-13 13:42:08 +0000
+++ b/beeseek/honeybee/session.py	2008-11-15 17:34:58 +0000
@@ -16,6 +16,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+from beeseek import log
 from beeseek.honeybee import version_info, handler
 from beeseek.database import nested
 from beeseek.session import ISession, BaseSession
@@ -46,6 +47,7 @@
                 break
         if not bound:
             raise
+        log.info('Bound address %s:%i' % address)
         self.server.listen(5)
 
     def make_databases(self):

=== modified file 'beeseek/session.py'
--- a/beeseek/session.py	2008-11-13 13:42:08 +0000
+++ b/beeseek/session.py	2008-11-15 17:34:58 +0000
@@ -156,7 +156,7 @@
             try:
                 self._run_daemonic()
             except Exception, exc:
-                log.warning('Cannot run as daemon: %s' % exc)
+                log.warning('Cannot run as user `daemon`: %s' % exc)
                 del exc
 
         self.setup()
@@ -167,6 +167,8 @@
                 peer = server.accept()
                 log.debug('Accepted new connection')
                 thread.start_new_thread(peer.start_loop, ())
+        except KeyboardInterrupt:
+            log.debug('Caught interrupt signal')
         finally:
             del self.pidfile
 

=== modified file 'beeseek/version.py'
--- a/beeseek/version.py	2008-11-13 13:42:08 +0000
+++ b/beeseek/version.py	2008-11-15 17:34:58 +0000
@@ -151,12 +151,6 @@
         return self._status
 
 
-    def __tuple__(self):
-        return self._tuple
-
-    def __list__(self):
-        return list(self._tuple)
-
     def __iter__(self):
         return iter(self._tuple)
 



--
BeeSeek mainline
https://code.launchpad.net/~beeseek-devs/beeseek/trunk

You are receiving this branch notification because you are subscribed to it.