Skip to content
Browse files

updated interface

now close_connection mongodb instead of close

Therefore 0.1 is added to the Version number
  • Loading branch information...
1 parent 115232e commit e68b136915a7e98d6bea2f73bb24804a97c882e0 Felix Richter committed Jan 31, 2011
Showing with 4 additions and 5 deletions.
  1. +1 −1 VERSION
  2. +2 −3 genericore/auto_amqp.py
  3. +1 −1 genericore/mongo_connect.py
View
2 VERSION
@@ -1,2 +1,2 @@
#Brainfuck
-+++++++[>++++++++>+++++++>+++++++<<<-]>--.>---.>-.
++++++++[>++++++++>+++++++>+++++++<<<-]>--.>---.>.
View
5 genericore/auto_amqp.py
@@ -31,9 +31,8 @@ def __init__(self,MODULE_NAME='auto_amqp',config=None):
""" constructor if auto_amqp
MODULE_NAME is important to distinguish the namespaces for the
different Objects"""
- newConfig = {}
- newConfig[MODULE_NAME] = DEFAULT_CONFIG
- Configurable.__init__(self)
+ newConfig = { MODULE_NAME : DEFAULT_CONFIG}
+ Configurable.__init__(self,newConfig)
self.load_conf(config)
self.MODULE_NAME = MODULE_NAME
View
2 genericore/mongo_connect.py
@@ -58,7 +58,7 @@ def __init__(self,MODULE_NAME='mongo_connect',conf=None):
Configurable.__init__(self,newConfig)
self.load_conf(conf)
- def close(self):
+ def close_connection(self):
self.conn.close()
def populate_parser(self,parser):

0 comments on commit e68b136

Please sign in to comment.
Something went wrong with that request. Please try again.