Skip to content

Commit 3e0c75d

Browse files
committed
first commit
0 parents  commit 3e0c75d

22 files changed

+6051
-0
lines changed

DCHRWDA-02.jpg

1.53 MB
Loading

README

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Mobile web application for DCHR Workforce Development Administration.
2+
3+
App provides access to WDA Course Catalog and allows search for training, check schedule/availability of sessions, and request training.

api/api.py

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
import cgi
2+
3+
from google.appengine.api import users
4+
from google.appengine.ext import webapp
5+
from google.appengine.ext.webapp.util import run_wsgi_app
6+
7+
from google.appengine.ext import db
8+
import models
9+
10+
class FlushAPI(webapp.RequestHandler):
11+
def get(self):
12+
s=models.Session.all()
13+
db.delete(s)
14+
15+
p=models.Prerequisite.all()
16+
db.delete(p)
17+
18+
c=models.Course.all()
19+
db.delete(c)
20+
21+
22+
23+
class CourseAPI(webapp.RequestHandler):
24+
def post(self):
25+
course=models.Course()
26+
course.course_id=self.request.get('course_id')
27+
course.course_type=self.request.get('course_type')
28+
#course.effective_date=self.request.get('effective_date')
29+
course.name=self.request.get('name')
30+
course.description=self.request.get('description')
31+
#course.status=self.request.get('status')
32+
course.min_students=int(self.request.get('min_students'))
33+
course.max_students=int(self.request.get('max_students'))
34+
#course.duration=self.request.get('duration')
35+
#course.education_units=self.request.get('education_units')
36+
course.put()
37+
38+
class PrerequisiteAPI(webapp.RequestHandler):
39+
def post(self):
40+
pr=models.Prerequisite()
41+
course=db.GqlQuery("SELECT * FROM Course WHERE course_id = :1", self.request.get('course')).fetch(1)[0]
42+
prerequisite=db.GqlQuery("SELECT * FROM Course WHERE course_id = :1", self.request.get('prerequisite')).fetch(1)[0]
43+
44+
pr.course=course
45+
pr.prerequisite=prerequisite
46+
47+
pr.put()
48+
49+
class SessionAPI(webapp.RequestHandler):
50+
def post(self):
51+
session=models.Session()
52+
session.course=self.request.get('course')
53+
session.session_number=self.request.get('session_number')
54+
session.start_date=self.request.get('start_date')
55+
session.end_date=self.request.get('end_date')
56+
session.start_time=self.request.get('start_time')
57+
session.end_time=self.request.get('end_time')
58+
session.min_students=self.request.get('min_students')
59+
session.max_students=self.request.get('max_students')
60+
session.duration=self.request.get('duration')
61+
session.address=self.request.get('address')
62+
session.address2=self.request.get('address2')
63+
session.city=self.request.get('city')
64+
session.state=self.request.get('state')
65+
session.put()
66+
67+
application = webapp.WSGIApplication(
68+
[('/api/flush', FlushAPI),
69+
('/api/course', CourseAPI),
70+
('/api/prerequisite', PrerequisiteAPI),
71+
('/api/session', SessionAPI)],
72+
debug=True)
73+
74+
def main():
75+
run_wsgi_app(application)
76+
77+
if __name__ == "__main__":
78+
main()

app.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
application: wda-mobile
2+
version: 1
3+
runtime: python
4+
api_version: 1
5+
6+
handlers:
7+
- url: /favicon.ico
8+
static_files: static/img/favicon.ico
9+
upload: static/img/favicon.ico
10+
11+
12+
- url: /static
13+
static_dir: static
14+
15+
- url: /remote_api
16+
script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
17+
login: admin
18+
19+
- url: /api/.*
20+
script: api/api.py
21+
22+
- url: /.*
23+
script: main.py

data/course-detail-description.csv

+1
Large diffs are not rendered by default.

data/course-details.csv

+1
Large diffs are not rendered by default.

data/courses-prerequisites.csv

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
"2003","230"
2+
"2004","2001"
3+
"2005","2002"
4+
"2006","2007"
5+
"2007","2003"
6+
"2008","2004"
7+
"2016","2131"
8+
"2017","2131"
9+
"202","201"
10+
"2023","2022"
11+
"203","202"
12+
"2038","2037"
13+
"205","204"
14+
"2050","230"
15+
"206","205"
16+
"2063","2153"
17+
"2113","2029"
18+
"2123","230"
19+
"213","212"
20+
"2130","2131"
21+
"2153","2156"
22+
"2188","2022"
23+
"2202","2131"
24+
"232","230"
25+
"303","301"

data/courses-session.csv

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
"204","0035",9/21/2010,9/21/2010,9/21/2010 1:00:00 PM,9/21/2010 8:00:00 PM,8,20
2+
"204","0034",9/17/2010,9/17/2010,9/17/2010 1:00:00 PM,9/17/2010 8:00:00 PM,8,20
3+
"402","0516",9/15/2010,9/15/2010,9/15/2010 1:00:00 PM,9/15/2010 4:00:00 PM,8,20
4+
"602","1107",9/15/2010,9/15/2010,9/15/2010 1:00:00 PM,9/15/2010 8:00:00 PM,8,20
5+
"603","1205",9/15/2010,9/15/2010,9/15/2010 5:00:00 PM,9/15/2010 8:00:00 PM,8,20
6+
"232","0213",9/14/2010,9/16/2010,9/14/2010 1:00:00 PM,9/16/2010 8:00:00 PM,8,20
7+
"204","0033",9/9/2010,9/9/2010,9/9/2010 1:00:00 PM,9/9/2010 8:00:00 PM,8,20
8+
"203","0029",9/8/2010,9/8/2010,9/8/2010 1:00:00 PM,9/8/2010 8:00:00 PM,8,20
9+
"234","0246",9/8/2010,9/8/2010,9/8/2010 1:00:00 PM,9/8/2010 8:00:00 PM,8,20
10+
"302","0369",9/8/2010,9/8/2010,9/8/2010 1:00:00 PM,9/8/2010 8:00:00 PM,8,20
11+
"204","0032",9/3/2010,9/3/2010,9/3/2010 1:00:00 PM,9/3/2010 8:00:00 PM,8,20
12+
"208","0091",9/3/2010,9/3/2010,9/3/2010 1:00:00 PM,9/3/2010 8:00:00 PM,8,20
13+
"200","0001",9/2/2010,9/2/2010,9/2/2010 1:00:00 PM,9/2/2010 4:00:00 PM,8,20
14+
"207","0073",9/2/2010,9/2/2010,9/2/2010 5:00:00 PM,9/2/2010 8:00:00 PM,8,20
15+
"230","0161",9/1/2010,9/1/2010,9/1/2010 1:00:00 PM,9/1/2010 8:00:00 PM,8,20
16+
"504","0757",9/1/2010,9/1/2010,9/1/2010 1:00:00 PM,9/1/2010 4:00:00 PM,8,20
17+
"506","0834",9/1/2010,9/1/2010,9/1/2010 5:00:00 PM,9/1/2010 8:00:00 PM,8,20
18+
"206","0068",8/31/2010,8/31/2010,8/31/2010 1:00:00 PM,8/31/2010 8:00:00 PM,8,20
19+
"300","0263",8/30/2010,8/30/2010,8/30/2010 1:00:00 PM,8/30/2010 8:00:00 PM,8,20
20+
"403","0522",8/30/2010,8/30/2010,8/30/2010 5:00:00 PM,8/30/2010 8:00:00 PM,8,20
21+
"505","0769",8/30/2010,8/30/2010,8/30/2010 1:00:00 PM,8/30/2010 8:00:00 PM,8,20
22+
"204","0037",8/27/2010,8/27/2010,8/27/2010 1:00:00 PM,8/27/2010 8:00:00 PM,8,20
23+
"214","0157",8/27/2010,8/27/2010,8/27/2010 1:00:00 PM,8/27/2010 8:00:00 PM,8,20
24+
"301","0320",8/27/2010,8/27/2010,8/27/2010 1:00:00 PM,8/27/2010 8:00:00 PM,8,20
25+
"505","0768",8/27/2010,8/27/2010,8/27/2010 1:00:00 PM,8/27/2010 8:00:00 PM,8,20
26+
"507","0845",8/27/2010,8/27/2010,8/27/2010 1:00:00 PM,8/27/2010 8:00:00 PM,8,20
27+
"211","0132",8/26/2010,8/26/2010,8/26/2010 1:00:00 PM,8/26/2010 8:00:00 PM,8,20
28+
"508","0892",8/26/2010,8/26/2010,8/26/2010 1:00:00 PM,8/26/2010 8:00:00 PM,8,20
213 KB
Binary file not shown.

data/other/course-details (2).xls

51 KB
Binary file not shown.

data/other/courses-DATES (1).txt

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
COURSE,SESSION_NBR,SESSN_START_DT,SESSN_START_TIME,SESSN_END_DT,SESSN_END_TIME,DURATION_TIME,DURATION_UNIT_CD,FACILITY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,SESSN_START_TIME_1,SESSN_END_TIME_1
2+
"301","0320",8/27/2010,8/27/2010 1:00:00 PM,8/27/2010,8/27/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",8/27/2010 8:00:00 PM
3+
"234","0246",9/8/2010,9/8/2010 1:00:00 PM,9/8/2010,9/8/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/8/2010 8:00:00 PM
4+
"200","0001",9/2/2010,9/2/2010 1:00:00 PM,9/2/2010,9/2/2010 4:00:00 PM,0,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/2/2010 4:00:00 PM
5+
"203","0029",9/8/2010,9/8/2010 1:00:00 PM,9/8/2010,9/8/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/8/2010 8:00:00 PM
6+
"207","0073",9/2/2010,9/2/2010 5:00:00 PM,9/2/2010,9/2/2010 8:00:00 PM,3,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/2/2010 8:00:00 PM
7+
"204","0034",9/17/2010,9/17/2010 1:00:00 PM,9/17/2010,9/17/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/17/2010 8:00:00 PM
8+
"204","0035",9/21/2010,9/21/2010 1:00:00 PM,9/21/2010,9/21/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/21/2010 8:00:00 PM
9+
"300","0263",8/30/2010,8/30/2010 1:00:00 PM,8/30/2010,8/30/2010 8:00:00 PM,6,"H","Workforce Development Admin.","441 - 4th Street, N.W., Suite "," ","Washington","DC","20001",8/30/2010 8:00:00 PM
10+
"211","0132",8/26/2010,8/26/2010 1:00:00 PM,8/26/2010,8/26/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",8/26/2010 8:00:00 PM
11+
"504","0757",9/1/2010,9/1/2010 1:00:00 PM,9/1/2010,9/1/2010 4:00:00 PM,0,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/1/2010 4:00:00 PM
12+
"302","0369",9/8/2010,9/8/2010 1:00:00 PM,9/8/2010,9/8/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/8/2010 8:00:00 PM
13+
"230","0161",9/1/2010,9/1/2010 1:00:00 PM,9/1/2010,9/1/2010 8:00:00 PM,0,"H","Workforce Development Admin.","441 - 4th Street, N.W., Suite "," ","Washington","DC","20001",9/1/2010 8:00:00 PM
14+
"602","1107",9/15/2010,9/15/2010 1:00:00 PM,9/15/2010,9/15/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/15/2010 8:00:00 PM
15+
"603","1205",9/15/2010,9/15/2010 5:00:00 PM,9/15/2010,9/15/2010 8:00:00 PM,3,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/15/2010 8:00:00 PM
16+
"402","0516",9/15/2010,9/15/2010 1:00:00 PM,9/15/2010,9/15/2010 4:00:00 PM,0,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/15/2010 4:00:00 PM
17+
"403","0522",8/30/2010,8/30/2010 5:00:00 PM,8/30/2010,8/30/2010 8:00:00 PM,0,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",8/30/2010 8:00:00 PM
18+
"204","0033",9/9/2010,9/9/2010 1:00:00 PM,9/9/2010,9/9/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/9/2010 8:00:00 PM
19+
"206","0068",8/31/2010,8/31/2010 1:00:00 PM,8/31/2010,8/31/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",8/31/2010 8:00:00 PM
20+
"505","0768",8/27/2010,8/27/2010 1:00:00 PM,8/27/2010,8/27/2010 8:00:00 PM,6,"H","Workforce Development Admin.","441 - 4th Street, N.W., Suite "," ","Washington","DC","20001",8/27/2010 8:00:00 PM
21+
"505","0769",8/30/2010,8/30/2010 1:00:00 PM,8/30/2010,8/30/2010 8:00:00 PM,6,"H","Workforce Development Admin.","441 - 4th Street, N.W., Suite "," ","Washington","DC","20001",8/30/2010 8:00:00 PM
22+
"232","0213",9/14/2010,9/14/2010 1:00:00 PM,9/16/2010,9/16/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/16/2010 8:00:00 PM
23+
"214","0157",8/27/2010,8/27/2010 1:00:00 PM,8/27/2010,8/27/2010 8:00:00 PM,0,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",8/27/2010 8:00:00 PM
24+
"208","0091",9/3/2010,9/3/2010 1:00:00 PM,9/3/2010,9/3/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/3/2010 8:00:00 PM
25+
"204","0032",9/3/2010,9/3/2010 1:00:00 PM,9/3/2010,9/3/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/3/2010 8:00:00 PM
26+
"204","0037",8/27/2010,8/27/2010 1:00:00 PM,8/27/2010,8/27/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",8/27/2010 8:00:00 PM
27+
"506","0834",9/1/2010,9/1/2010 5:00:00 PM,9/1/2010,9/1/2010 8:00:00 PM,0,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",9/1/2010 8:00:00 PM
28+
"507","0845",8/27/2010,8/27/2010 1:00:00 PM,8/27/2010,8/27/2010 8:00:00 PM,6,"H","Workforce Development Admin.","441 - 4th Street, N.W., Suite "," ","Washington","DC","20001",8/27/2010 8:00:00 PM
29+
"508","0892",8/26/2010,8/26/2010 1:00:00 PM,8/26/2010,8/26/2010 8:00:00 PM,6,"H","441 4th Street, NW, Suite 850 ","One Judiciary Square, 441-4th "," ","Washington","DC","20001",8/26/2010 8:00:00 PM

0 commit comments

Comments
 (0)