Tobias Johansson 37791f4acf Notifications regression: Notifications not created
Notifications for when someone posted a comment on your node
was not created.

Root cause was that default values defined in schema was not set,
resulting in activity subscriptions not being active.
There were 2 bugs preventing them to be set:
* The way the caching of markdown as html was implemented caused
  default values not to be set.
* Eve/Cerberus regression causes nested default values to fail
  https://github.com/pyeve/eve/issues/1174

Also, a 3rd bug caused nodes without a parent not to have a
subscription.

Migration scripts:
How markdown fields is cached has changed, and unused properties
of attachments has been removed.
./manage.py maintenance replace_pillar_node_type_schemas

Set the default values of activities-subscription
./manage.py maintenance fix_missing_activities_subscription_defaults
2019-02-19 14:16:28 +01:00
2018-08-29 14:21:45 +02:00
2017-03-03 12:23:45 +01:00
2018-09-17 18:45:26 +02:00
2015-08-31 19:25:01 +02:00

Pillar Python REST SDK

Integrate this module in your Python app to communicate with a Pillar server.

Supports Python 3.5 and 3.6. Currently also supports Python 2.7, but support will be ending soon.

Caching

Requests-Cache can be used to cache HTTP requests. The Pillar Python REST SDK does not support it directly, but provides the means to plug in different session objects:

import requests_cache
import pillarsdk

req_sess = requests_cache.CachedSession(backend='sqlite',
                                        cache_name='blender_cloud')
pillarsdk.Api.requests_session = req_sess

Any pillarsdk.Api instance will now use the cached session. To temporary disable it, use:

api = pillarsdk.Api.Default(endpoint="https://your.endpoint")
with api.requests_session.cache_disabled():
    node = pillarsdk.Node.find('1234')
Description
Pillar-python-sdk
Readme 225 KiB
Languages
Python 99.4%
Shell 0.6%