mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52: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):
|
def error_handler(self, e, request, meth, em_format):
|
||||||
|
|
||||||
print e
|
|
||||||
|
|
||||||
logger = logging.getLogger('piston')
|
logger = logging.getLogger('piston')
|
||||||
logger.addHandler(SentryHandler())
|
logger.addHandler(SentryHandler())
|
||||||
|
|
||||||
|
|||||||
@@ -322,7 +322,6 @@ def blacklist_user(request, userid):
|
|||||||
expiry = form.cleaned_data['expiry_date']
|
expiry = form.cleaned_data['expiry_date']
|
||||||
|
|
||||||
level = form.cleaned_data.get('level', 0)
|
level = form.cleaned_data.get('level', 0)
|
||||||
print level
|
|
||||||
|
|
||||||
def blacklist_item(type, value):
|
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'])
|
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)
|
url = '%s?%s' % (url, data)
|
||||||
data = None
|
data = None
|
||||||
|
|
||||||
print url
|
|
||||||
resp = self._opener.open(urllib2.Request(url, data))
|
resp = self._opener.open(urllib2.Request(url, data))
|
||||||
resptxt = resp.read()
|
resptxt = resp.read()
|
||||||
if resp.info()['Content-Type'] == 'text/plain':
|
if resp.info()['Content-Type'] == 'text/plain':
|
||||||
|
|||||||
@@ -62,7 +62,6 @@ def update_user_access(user, **kwargs):
|
|||||||
# Check that user's groups fufil requirements
|
# Check that user's groups fufil requirements
|
||||||
if installed('groups'):
|
if installed('groups'):
|
||||||
for g in user.groups.filter(groupinformation__parent__isnull=False):
|
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():
|
if not g in delgroups and not g.groupinformation.parent in user.groups.all():
|
||||||
delgroups.add(g)
|
delgroups.add(g)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user