This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test code fro creating test user and adding user membership
- Loading branch information
Anusha Ranganathan
committed
Apr 14, 2012
1 parent
76a039a
commit 8c8a74c
Showing
10 changed files
with
1,492 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from rdfdatabank.lib.auth_entry import add_user, add_user_groups | ||
import sys | ||
|
||
if __name__ == "__main__": | ||
username = sys.argv[1] | ||
password = sys.argv[2] | ||
email = sys.argv[3] | ||
user_details = { | ||
'username':u'%s'%username, | ||
'password':u"%s"%password, | ||
'name':u'Databank Administrator', | ||
'email':u"%s"%email | ||
} | ||
add_user(user_details) | ||
|
||
groups = [] | ||
groups.append(('*', 'administrator')) | ||
add_user_groups(groups) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
from sss.pylons_sword_controller import SwordController | ||
__controller__ = "SwordController" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
<%inherit file="/base.html" /> | ||
<%def name="head_tags()"> | ||
<title> Error </title> | ||
</%def> | ||
<div class="httperrortitle"> | ||
<p>Oops!</p> | ||
</div> | ||
<div class="httperrorcode"> | ||
<h1>${c.code}</h1> | ||
</div> | ||
<div class="httperror"> | ||
<h3>${c.status}</h3> | ||
<p>${c.message}</p> | ||
</div> |
Oops, something went wrong.