Skip to main content

Jmbo Neo Web Services integration app.

Project description

jmbo-neo
========

jmbo-neo provides integration with Neo Web Services for jmbo and jmbo-foundry. It syncs jmbo-foundry's Member objects with consumers
in the Neo data hubs. Syncing refers to the creation, modification and deactivation of Neo consumers as Member objects are created, modified
and deactivated.

Authentication-related actions are also performed via Neo Web Services. These include logging in and out and changing passwords. jmbo-neo also
supports a number of other Neo API calls. These, in addition to the above mentioned, can be invoked as necessary in other jmbo apps.

Requirements
------------

System libraries
****************
- libxml2-dev
- libxslt-dev

Python packages
***************
- python-lxml
- requests

*jmbo-neo uses generateDS.py (http://cutter.rexx.com/~dkuhlman/generateDS.html) to generate Python classes from Neo XML schemas.*

Usage
-----

`neo.api` contains functions for all the supported Neo API calls. Consumer calls require either a consumer ID or consumer object (or both).
If a consumer has been created for a particular Member, a corresponding NeoProfile object will be stored in the database. So to obtain the
consumer ID, use `neo.models.NeoProfile(user=member.id).consumer_id`.

A consumer object is an instance of `neo.xml.Consumer`. Consumer should not be instantiated directly. Internally, jmbo-neo uses `neo.xml.parseString(response.content)`
to create a consumer object from the XML return by Neo Web Services. This object will be returned when calling, for instance, `neo.api.get_consumer`.
To access this consumer object, you should use the wrapper class `neo.utils.ConsumerWrapper`. It has all the necessary getter and setter methods to correctly
manipulate the consumer object, ensuring the resulting XML is valid.

**When using jmbo-neo, all non-required Member fields will be null, or set to their default values. Queries on Member objects
will return incorrect results.**

Settings
********
The following settings must be added to settings.py:
::
NEO = {
'URL': 'neowebservices.com/service/'
'APP_ID': '1',
'VERSION_ID': '1.3',
'PROMO_CODE': 'testPromo', # if there is a single promo code for the website
'BRAND_ID': 35, # if there is a single brand for the website
'PASSWORD': 'password', # http basic auth password
}

AUTHENTICATION_BACKENDS = ('neo.backends.NeoBackend',)Authors
=======

Praekelt Foundation
-------------------

* Rizmari VersfeldChangelog
=========

0.1 (18-10-2012)
----------------
#. Initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jmbo-neo-0.1.tar.gz (43.0 kB view details)

Uploaded Source

Built Distributions

jmbo_neo-0.1-py2.7.egg (107.1 kB view details)

Uploaded Source

jmbo_neo-0.1-py2.6.egg (106.6 kB view details)

Uploaded Source

File details

Details for the file jmbo-neo-0.1.tar.gz.

File metadata

  • Download URL: jmbo-neo-0.1.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jmbo-neo-0.1.tar.gz
Algorithm Hash digest
SHA256 4f24049f5005ccd620ffd0b48af67b98c7a89e58ed4b22852830030cfc08828a
MD5 dfca420f1dd902349b5dfd74b34fddc6
BLAKE2b-256 9f0dc7bb7bd13381f04acf6ce25da1fb667e9fe30e7c6cbde54ba7085895bab3

See more details on using hashes here.

File details

Details for the file jmbo_neo-0.1-py2.7.egg.

File metadata

  • Download URL: jmbo_neo-0.1-py2.7.egg
  • Upload date:
  • Size: 107.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jmbo_neo-0.1-py2.7.egg
Algorithm Hash digest
SHA256 f946c0fbed61834cf52de838c67ee4308c3731375a8853f7cd307cd7c8ee0ae1
MD5 9b8ccd392e955d456518c22110274f10
BLAKE2b-256 0970e80931c8d6f8b2ded3dd58962090336370ed350e196d9f8af05789607b57

See more details on using hashes here.

File details

Details for the file jmbo_neo-0.1-py2.6.egg.

File metadata

  • Download URL: jmbo_neo-0.1-py2.6.egg
  • Upload date:
  • Size: 106.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jmbo_neo-0.1-py2.6.egg
Algorithm Hash digest
SHA256 385a64d34b0c8933aacda94b5f9f040c39ca0236513d1b64038e5d1a72039c8e
MD5 4d45fd822be2bce7964f3e0eaf023207
BLAKE2b-256 4adf99a196dd92df6b176699d4ebd948bd2149e6fdd888a76ba35e2a75ae6873

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page