Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/unistra/django-sifac
Sifac client implementation for Django
https://github.com/unistra/django-sifac
Last synced: 7 days ago
JSON representation
Sifac client implementation for Django
- Host: GitHub
- URL: https://github.com/unistra/django-sifac
- Owner: unistra
- Created: 2012-07-17T20:50:08.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-08-27T08:16:13.000Z (about 9 years ago)
- Last Synced: 2024-10-20T11:39:15.689Z (28 days ago)
- Language: Python
- Size: 170 KB
- Stars: 2
- Watchers: 16
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
============
Django-SIFAC
============.. image:: https://landscape.io/github/unistra/django-sifac/master/landscape.svg?style=flat
:target: https://landscape.io/github/unistra/django-sifac/master
:alt: Code HealthDjango-SIFAC is a API to interact with the financial repository called SIFAC
and deployed in many french universities. It is not really a django specific
app for SIFAC but it's easy to use with Django. For the moment, only data on
cost centers, eotp, funds and functional domains are available for reading, but
not for writing.Installation
------------To install the saprfc library, please refer to this `documentation
`_.
If you place the rcfsdk headers in the right place, you can run this command ::pip install django-sifac
Integrate with your django app
------------------------------You need to add this lines to the settings file of your django project ::
SIFAC = {
'HOST': '' # Hostname to connect (i.e sap.host.com)
'SYSNR': '' # System number to connect to (i.e '00')
'CLIENT': '' # Client number logged in (i.e '500')
'USER': '' # Username
'PASSWORD': '' # Password
}If you want to use the SAP models filter application, you must activate the
administration interface in the settings file of your project and add the sifac
application in your INSTALLED_APPS setting ::INSTALLED_APPS = (
...,
django.contrib.admin,
...,
sifac
)To create tables needed by the sifac application, syncing your database is
necessary ::
$> python manage.py syncdbBasic usage
-----------If you're using filters and pattern for your SAP Models (or not), it is really
easy to use the library to retrieve filtered data. Filters and patterns for
each SAP models can be created or updated in the admnistration interface ::from sifac import service
sifac_service = SifacService()
cost_centers = sifac_service.get_filtered_cost_center_list()Launching tests
---------------To launch tests, you should install django, saprfc and packages in file requirements-test.txt ::
$> python run_tests.py sifac