From 94b8736622de9d9879e508fc7e085adb69210b48 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 7 Aug 2010 12:36:14 +0100 Subject: [PATCH] Removed a few debug print statements that are no longer needed --- api/handlers.py | 1 - hr/views.py | 1 - reddit/cron.py | 1 - sso/forms.py | 2 -- sso/models.py | 4 +--- 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/api/handlers.py b/api/handlers.py index 71eb04b..999d5e7 100755 --- a/api/handlers.py +++ b/api/handlers.py @@ -111,7 +111,6 @@ class EveAPIProxyHandler(BaseHandler): obj = get_object_or_404(EVEAccount, pk=params['userid']) params['apikey'] = obj.api_key - print params cached_doc = CachedDocument.objects.api_query(url_path, params, exceptions=False) return HttpResponse(cached_doc.body) diff --git a/hr/views.py b/hr/views.py index 698f8cb..ba468d0 100644 --- a/hr/views.py +++ b/hr/views.py @@ -157,7 +157,6 @@ def admin_applications(request): limit = request.get['l'] else: limit = 10 - print query, limit apps = Application.objects.filter(character__name__icontains=query)[:limit] else: view_status = [APPLICATION_STATUS_AWAITINGREVIEW, APPLICATION_STATUS_ACCEPTED, APPLICATION_STATUS_QUERY] diff --git a/reddit/cron.py b/reddit/cron.py index a8c42c2..ec888f1 100644 --- a/reddit/cron.py +++ b/reddit/cron.py @@ -21,7 +21,6 @@ class UpdateAPIs(): def job(self): delta = datetime.timedelta(seconds=self.last_update_delay) - print delta self._logger.debug("Updating accounts older than %s" % (datetime.datetime.now() - delta)) for acc in RedditAccount.objects.filter(last_update__lt=(datetime.datetime.now() - delta)): diff --git a/sso/forms.py b/sso/forms.py index b784b08..b1b597a 100644 --- a/sso/forms.py +++ b/sso/forms.py @@ -36,8 +36,6 @@ def UserServiceAccountForm(user): services = Service.objects.filter(groups__in=user.groups.all(),active=1).exclude(id__in=ServiceAccount.objects.filter(user=user).values('service')).distinct() chars = EVEPlayerCharacter.objects.filter(eveaccount__user=user) - print len(services) - class ServiceAccountForm(forms.Form): """ Service Account Form """ diff --git a/sso/models.py b/sso/models.py index b738ea9..13f2704 100644 --- a/sso/models.py +++ b/sso/models.py @@ -68,9 +68,7 @@ class SSOUser(models.Model): # Generate the list of groups to add/remove delgroups = set(set(self.user.groups.all()) & set(corpgroups)) - set(chargroups) addgroups = set(chargroups) - set(set(self.user.groups.all()) & set(corpgroups)) - - print "Add: ", addgroups, "Del:", delgroups, "Current:", self.user.groups.all() - + for g in delgroups: self.user.groups.remove(g)