mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Remove some debugging statements
This commit is contained in:
@@ -8,8 +8,6 @@ class SentryResource(Resource):
|
||||
|
||||
def error_handler(self, e, request, meth, em_format):
|
||||
|
||||
print e
|
||||
|
||||
logger = logging.getLogger('piston')
|
||||
logger.addHandler(SentryHandler())
|
||||
|
||||
|
||||
@@ -322,7 +322,6 @@ def blacklist_user(request, userid):
|
||||
expiry = form.cleaned_data['expiry_date']
|
||||
|
||||
level = form.cleaned_data.get('level', 0)
|
||||
print level
|
||||
|
||||
def blacklist_item(type, value):
|
||||
o = Blacklist(type=type, value=value, level=level, source=source, expiry_date=expiry, created_by=request.user, reason=form.cleaned_data['reason'])
|
||||
|
||||
@@ -82,7 +82,6 @@ class RedditAPI:
|
||||
url = '%s?%s' % (url, data)
|
||||
data = None
|
||||
|
||||
print url
|
||||
resp = self._opener.open(urllib2.Request(url, data))
|
||||
resptxt = resp.read()
|
||||
if resp.info()['Content-Type'] == 'text/plain':
|
||||
|
||||
@@ -62,7 +62,6 @@ def update_user_access(user, **kwargs):
|
||||
# Check that user's groups fufil requirements
|
||||
if installed('groups'):
|
||||
for g in user.groups.filter(groupinformation__parent__isnull=False):
|
||||
print g
|
||||
if not g in delgroups and not g.groupinformation.parent in user.groups.all():
|
||||
delgroups.add(g)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user