Package and example directory

python2
Markus Bauer 2016-11-24 11:40:06 +01:00
parent 932578b876
commit af55f69af6
4 changed files with 22 additions and 1 deletions

View File

@ -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">

6
.idea/vcs.xml Normal file
View File

@ -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>

1
cakecms/__init__.py Normal file
View File

@ -0,0 +1 @@
from cakecms import CakeCMS

View File

@ -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)