From cec0be6b4102a5d874d2043ada82e3fa3da88f67 Mon Sep 17 00:00:00 2001 From: "Brett T. Hannigan" Date: Tue, 27 May 2014 09:30:55 -0700 Subject: [PATCH] Adding a few bug fixes from Gabe. --- installer/install_suns.py | 4 ++-- src/__init__.py | 4 ++-- src/suns_aa_motifs.py | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/installer/install_suns.py b/installer/install_suns.py index e87b124..16ff671 100644 --- a/installer/install_suns.py +++ b/installer/install_suns.py @@ -213,9 +213,9 @@ def connect(port): credentials=credentials, virtual_host='suns-vhost')) try: - connect(5672) + connection = connect(5672) except: - connect(80) + connection = connect(80) try: # Channel Initialization self.channel = connection.channel() diff --git a/src/__init__.py b/src/__init__.py index 4292a36..7277d6b 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -161,9 +161,9 @@ def connect(port): credentials=credentials, virtual_host='suns-vhost')) try: - connect(5672) + connection = connect(5672) except: - connect(80) + connection = connect(80) try: # Channel Initialization self.channel = connection.channel() diff --git a/src/suns_aa_motifs.py b/src/suns_aa_motifs.py index e16da22..c8e2377 100644 --- a/src/suns_aa_motifs.py +++ b/src/suns_aa_motifs.py @@ -44,3 +44,6 @@ def find_suns_atom(obj, selectedAtom): selectionStatement = get_selection_statement(selectedAtom, key, atom_key[1]) return (key, selectionStatement) + +def __init_plugin__(self): + pass