This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mattias@mattias:~/review_repos/globusonline-graph$ git checkout JIRA-GRAPH-1437 | |
Switched to branch 'JIRA-GRAPH-1437' | |
Your branch is behind 'origin/JIRA-GRAPH-1437' by 50 commits, and can be fast-forwarded. | |
(use "git pull" to update your local branch) | |
mattias@mattias:~/review_repos/globusonline-graph$ git pull | |
Password for 'https://[email protected]': | |
Updating b6d2194..3e2b5d8 | |
Fast-forward | |
_gb/gbtemplate/globusonline.yml.mustache | 4 ++ | |
globusonline/graph/admin/admin | 6 +- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a7cb44ef870f81fc16b83585baa82bc8647672c201032ee06927bfb4b9f4494e13e07564e727db97c2e37b') | |
2014-10-29_21:00:27.70408 Traceback (most recent call last): | |
2014-10-29_21:00:27.70420 File "/usr/share/gearbox/nexus/current/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/app.py", line 393, in __call__ | |
2014-10-29_21:00:27.70433 return self.application(environ, start_response) | |
2014-10-29_21:00:27.70445 File "/usr/share/gearbox/nexus/current/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/request_id_middleware.py", line 24, in __call__ | |
2014-10-29_21:00:27.70454 return self.application(environ, custom_start_response) | |
2014-10-29_21:00:27.70462 File "/usr/share/gearbox/nexus/current/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/app.py", line 424, in __call__ | |
2014-10-29_21:00:27.70470 return self.application(environ, start_response) | |
2014-10-29_21:00:27.70477 File " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d7a0daae (Mattias Lidman 2013-09-10 17:54:06 -0500)| 3 def ssh_pubkeys(self): | |
d7a0daae (Mattias Lidman 2013-09-10 17:54:06 -0500)| 2 creds = self.credentials.get_all_credentials_of_type('ssh2') | |
d7a0daae (Mattias Lidman 2013-09-10 17:54:06 -0500)| 1 creds_dict = [] | |
d7a0daae (Mattias Lidman 2013-09-10 17:54:06 -0500)|493 # TODO: We're already getting type=ssh2, is this necessary? | |
d7a0daae (Mattias Lidman 2013-09-10 17:54:06 -0500)| 1 for cred in creds: | |
d7a0daae (Mattias Lidman 2013-09-10 17:54:06 -0500)| 2 if cred.attributes['credential_type'] == 'ssh2': | |
d7a0daae (Mattias Lidman 2013-09-10 17:54:06 -0500)| 3 creds_dict.append({'credential_type' : 'ssh2', 'ssh_key' : cred.attributes['ssh_key']}) | |
d7a0daae (Mattias Lidman 2013- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> ( x for x in [1,2,3] ) | |
<generator object <genexpr> at 0x7f7de8dc6cd0> | |
>>> x | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'x' is not defined | |
>>> # OK, seems legit | |
>>> { x:x for x in [1,2,3] } | |
{1: 1, 2: 2, 3: 3} | |
>>> x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> ( x for x in [1,2,3] ) | |
<generator object <genexpr> at 0x7fcf3ed0ccd0> | |
>>> x | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'x' is not defined | |
>>> # OK, seems legit | |
... { x:x for x in [1,2,3] } | |
{1: 1, 2: 2, 3: 3} | |
>>> x |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from globusonline.graph.policies.resources import PolicyOption | |
import uuid | |
def testfoo(): | |
group = gm.create_group(name="Testing policy race condition", description="Delete me") | |
policy_options_factory = group._node.policy_options | |
for option_type in ['approval', 'group_member_visibility', 'group_visibility', 'join', | |
'invites', 'sign_up_fields', 'group_creation']: | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2014-05-05_15:31:31.57105 2014-05-05 15:31:31,570 ERROR [root][MainThread] "2861f2c0-0774-4914-a333-643419231d02" "/authenticate/" "192.170.227.202" Internal server error: Could not authenticate user | |
2014-05-05_15:31:31.57107 Traceback (most recent call last): | |
2014-05-05_15:31:31.57107 File "/usr/share/gearbox/nexus/current/graph/lib/python2.7/site-packages/globusonline-RELEASE_2011_06_06-py2.7.egg/globusonline/graph/auth/authentication.py", line 86, in authenticate_username_password_json | |
2014-05-05_15:31:31.57108 params = json.loads(request.body) | |
2014-05-05_15:31:31.57109 File "/usr/lib/python2.7/json/__init__.py", line 326, in loads | |
2014-05-05_15:31:31.57110 return _default_decoder.decode(s) | |
2014-05-05_15:31:31.57110 File "/usr/lib/python2.7/json/decoder.py", line 366, in decode | |
2014-05-05_15:31:31.57111 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) | |
2014-05-05_15:31:31.57112 File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode | |
2014-05-05_15:31:31.57112 obj, end = se |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 handler = logging.root.handlers[0] | |
64 assert(handler.get_name() == 'console') | |
65 loggers = logging.Logger.manager.loggerDict | |
66 for logger in loggers: | |
67 if (logger.startswith('globusonline.graph') and | |
68 str(type(loggers[logger])) == "<class 'celery.utils.log.SigSafeLogger'>" and | |
69 loggers[logger].handlers == []): | |
70 loggers[logger].addHandler(handler) | |
71 loggers[logger].disabled = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from globusonline.graph.auth.goauth.storage import CassandraKeyStorage | |
import time | |
import json | |
from datetime import datetime | |
ks = CassandraKeyStorage(request) | |
ks.get_current_key() | |
keys = [ json.loads(key) for key in ks.cf.get('keys').values() ] | |
[ int(time.mktime(datetime.utcnow().timetuple())) > key['expiry'] for key in keys ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Copyright (c) 2009 Corey Goldberg ([email protected]) | |
# | |
# Multi-Process, Multi-Thread, HTTP Load Generator | |
# | |
# requires Python 2.6+ | |
import multiprocessing | |
import os |