Changeset - a5941ab6ea3b
[Not reviewed]
default
0 8 0
Branko Majic (branko) - 11 years ago 2013-06-30 20:18:36
branko@majic.rs
Style fixes (PEP8).
8 files changed with 1 insertions and 9 deletions:
0 comments (0 inline, 0 general)
conntrackt/models.py
Show inline comments
 
@@ -265,4 +265,3 @@ class Communication(models.Model):
 
        """
 

	
 
        return "Edit"
 

	
conntrackt/templatetags/conntrackt_tags.py
Show inline comments
 
@@ -124,4 +124,3 @@ def current_url_equals(context, url_name
 
                return False
 

	
 
    return matches
 

	
conntrackt/tests/test_models.py
Show inline comments
 
@@ -140,4 +140,3 @@ class CommunicationTest(TestCase):
 
        expected = "Test Entity 2 -> Test Entity 1 (TCP:22)"
 

	
 
        self.assertEqual(expected, str(comm))
 

	
conntrackt/tests/test_utils.py
Show inline comments
 
@@ -47,4 +47,3 @@ COMMIT
 
COMMIT
 
"""
 
        self.assertEqual(generated, expected)
 

	
conntrackt/tests/test_views.py
Show inline comments
 
@@ -278,7 +278,6 @@ class ProjectIptablesTest(ViewTest):
 
        response = self.client.get(reverse("project_location_iptables", args=(200,1)))
 
        self.assertEqual(response.status_code, 404)
 

	
 

	
 
    def test_invalid_location(self):
 
        """
 
        Tests if a 404 is returned if invalid location is specified.
 
@@ -366,4 +365,3 @@ class ProjectIptablesTest(ViewTest):
 
            self.assertIn(":FORWARD", iptables_file)
 

	
 
        zipped_iptables.close()
 

	
conntrackt/urls.py
Show inline comments
 
@@ -26,4 +26,3 @@ urlpatterns = patterns(
 
    url(r'^login/$', login, {'template_name': 'conntrackt/login.html'}, name="login"),
 
    url(r'^logout/$', logout, name="logout"),
 
)
 

	
conntrackt/utils.py
Show inline comments
 
@@ -52,4 +52,3 @@ def generate_entity_iptables(entity):
 
    content = "%s%s" % (filter, nat)
 

	
 
    return content
 

	
conntrackt/views.py
Show inline comments
 
@@ -15,6 +15,7 @@ from braces.views import MultiplePermiss
 
from .models import Project, Entity, Location
 
from .utils import generate_entity_iptables
 

	
 

	
 
class IndexView(MultiplePermissionsRequiredMixin, TemplateView):
 
    """
 
    Custom view used for rendering the index page.
 
@@ -228,4 +229,3 @@ def project_iptables(request, project_id
 

	
 
    # Finally return the response object.
 
    return response
 

	
0 comments (0 inline, 0 general)