Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    moodle 0.0.1

    Download button

    No screenshots available
    Downloads: 59  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Zikzakmedia SL | More programs
    AGPL v3 / FREE
    September 20th, 2012, 03:11 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    moodle description

    Moodle web services connection library

    moodle is a Python module that provides web service functions to Moodle.

    Installation

    sudo python setup.py install

    Example of Use

    Create a new course:

        from moodle import MDL
        mdl = MDL()

        # Connect to moodle data
        server = {
            'protocol': 'xmlrpc', # xmlrpc, rest
            'uri': 'http://www.mymoodle.org',
            'token': 'yourtokenkeymoodle',
        }

        # Create new courses
        courses = [{
            'shortname': 'New Course', # shortname must be unique
            'fullname': 'New Course Zikzakmedia',
            'categoryid': 1,
            #'visible': 1,
            'id': 2,
            #'maxbytes': 2097152,
            #'showreports': 0,
            #'startdate': 1314396000,
            #'defaultgroupingid': 0,
            #'summaryformat': 1,
            #'completionstartonenrol': 0,
            #'groupmode': 0,
            #'numsections': 10,
            #'showgrades': 1,
            #'enablecompletion': 0,
            #'hiddensections': 0,
            #'format': 'topics',
            #'completionnotify': 0,
            #'lang': '',
            #'categorysortorder': 10001,
            #'timecreated': 1314367091,
            #'groupmodeforce': 0,
            #'forcetheme': '',
            #'summary': u'

    \ufeff

    ',
            #'idnumber': '',
            #'newsitems': 5,
            #'timemodified': 1314367091
        }]
        mdl.create_courses(server, courses)


    The implemented methods and APIs are:

        * create_courses(server, courses)
        * get_courses(server)
        * create_users(server, users)
        * update_users(server, users)
        * get_users(server, user_ids)
        * enrol_users(server, enrols)


    More examples can be found in the examples folder.


    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Rest protocol connection
    · XML-RPC protocol connection
    · Webserices available
    · create_courses(server, courses)
    · get_courses(server)
    · create_users(server, users)
    · update_users(server, users)
    · get_users(server, user_ids)
    · enrol_users(server, enrols)

      


    TAGS:

    Moodle connection | web services | Python library | Python | Moodle | connection

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM