Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ui #48

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Ui #48

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8,148 changes: 8,148 additions & 0 deletions css/materialize.css

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions css/materialize.min.css

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* Custom Stylesheet */
/**
* Use this file to override Materialize files so you can update
* the core Materialize files in the future
*
* Made By MaterializeCSS.com
*/

.icon-block {
padding: 0 15px;
}
.icon-block .material-icons {
font-size: inherit;
}
428 changes: 428 additions & 0 deletions font/material-design-icons/LICENSE.txt

Large diffs are not rendered by default.

Binary file not shown.
769 changes: 769 additions & 0 deletions font/material-design-icons/Material-Design-Icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added font/roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Bold.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Bold.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Light.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Light.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Light.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Medium.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Regular.woff2
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.ttf
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.woff
Binary file not shown.
Binary file added font/roboto/Roboto-Thin.woff2
Binary file not shown.
7 changes: 7 additions & 0 deletions js/init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(function($){
$(function(){

$('.button-collapse').sideNav();

}); // end of document ready
})(jQuery); // end of jQuery name space
6,159 changes: 6,159 additions & 0 deletions js/materialize.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions js/materialize.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ requests==2.2.1
rfc3987==1.3.3
wsgiref==0.1.2
supervisor==3.0
gunicorn==18.0
gunicorn==18.0
Empty file modified xci/__init__.py
100644 → 100755
Empty file.
Empty file modified xci/badgebakery.py
100644 → 100755
Empty file.
Empty file modified xci/commoncore.py
100644 → 100755
Empty file.
Empty file modified xci/competency/MBCompetency.py
100644 → 100755
Empty file.
Empty file modified xci/competency/__init__.py
100644 → 100755
Empty file.
12 changes: 9 additions & 3 deletions xci/competency/evaluation.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ class Evaluate(object):
def __init__(self, user):
super(Evaluate, self).__init__()
self.user = user
self.xapi = XAPIWrapper(user.profile.get('lrsprofiles', None))
foo = user.profile.get('lrsprofiles', None)
print foo
self.xapi = XAPIWrapper(foo)

def check_all(self):
comps = self.user.getCompArray()
Expand All @@ -31,7 +33,8 @@ def check_comp(self, uri, force=False, update=False):

results = self.xapi.getstatements(
agent=self.user.email,
verb='http://adlnet.gov/expapi/verbs/passed',
verb='http://adlnet.gov/xapi/verbs/passed(to_go_beyond)',
# verb='http://adlnet.gov/expapi/verbs/passed',
activity=uri, related_activities=True)

completed = False
Expand Down Expand Up @@ -89,11 +92,14 @@ def getstatements(self, lrsprofile=None, agent=None, verb=None,
since=None, until=None, limit=0):
profile = lrsprofile if lrsprofile else self.getdefaultprofile()
url = '%s%s' % (profile['endpoint'], 'statements')
print (agent)
payload = self.getParams(agent, verb, activity, registration,
related_activities, related_agents,
since, until, limit)

print (payload)
r = requests.get(url, params=payload, headers=self.getheaders(profile), verify=False)
print r
print r.json()
if r.status_code == requests.codes.ok:
return (True, r.json())
return (False, r.text)
Expand Down
Loading