Package and example directory
parent
932578b876
commit
af55f69af6
|
@ -2,7 +2,7 @@
|
|||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="jdk" jdkName="Python 2.7.11 (C:\tools\python2\python.exe)" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
<component name="TestRunnerService">
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -0,0 +1 @@
|
|||
from cakecms import CakeCMS
|
|
@ -0,0 +1,14 @@
|
|||
import cakecms
|
||||
|
||||
HOST = 'https://dcms.cs.uni-saarland.de'
|
||||
|
||||
# create an (unauthenticated) instance
|
||||
cms = cakecms.CakeCMS(HOST)
|
||||
# [optional] log queries to console
|
||||
cms.debug = True
|
||||
# get a course list (dictionary)
|
||||
courses = cms.courses_list()
|
||||
print courses
|
||||
for id, course in courses.items():
|
||||
print '- #{}: {} ( at {}/{} )'.format(id, course, HOST, course)
|
||||
|
Loading…
Reference in New Issue