Display and search courses from an XCRI feed and book them if a provider is able to do so.
- Solr 4
- pip (
easy_install pip
)
Installation
python setup.py development
Configuration from moxie (example):
blueprints:
courses:
url_prefix: /courses
factory: moxie_courses.create_blueprint
services:
courses:
CourseService: {}
OAuth1Service:
oauth_endpoint: 'OAUTH_ENDPOINT'
client_identifier: 'OAUTH_IDENTIFIER'
client_secret: 'OAUTH_SECRET'
SearchService:
backend_uri: 'solr+http://127.0.0.1:8080/solr/courses'
Running the application
celery worker --app moxie.worker
python runserver.py
(you can also run it with a profiler:python runserver.py --profiler
)
Periodically, and the first time, you have to run importers to import data into the search index. You can do this via a Python shell:
>>> from moxie-courses.tasks import import_xcri_ox
>>> import_xcri_ox.delay()