d2a24d4593
Fix crash when node has no allowed_methods property
2016-10-27 09:29:34 +02:00
3c39506014
Allow PATCHing nodes.
2016-07-28 11:28:32 +02:00
67bf7e0df5
Ensure projection of node permissions
2016-07-13 16:51:13 +02:00
d76fcfdeba
Node: removed 'theatre_link'
2016-07-07 16:59:23 +02:00
b34d56d44e
Added Node.share() and Node.get_share_links() methods.
2016-07-07 15:18:26 +02:00
96ece1540d
Removed the obsolete NodeType class.
2016-07-07 15:04:46 +02:00
2e4c5b2663
Split Node.create_asset_from_file and added direct uploading from file obj
...
Node.create_asset_from_file() is split such that the actual file upload is
handled by File.upload_to_project(). This now also supports directly
uploading from a file object, which could be an io.BytesIO() object to
upload from RAM.
2016-07-07 11:08:30 +02:00
2989449b25
Actually use the 'extra_where' option.
2016-07-06 16:18:34 +02:00
d03cf7f73f
create_asset_from_file: added extra_where param to limit updatable nodes.
2016-07-05 17:28:19 +02:00
86b7358717
create_asset_from_file: allow parent_node_id=None
...
Also added more documentation.
2016-07-05 17:27:50 +02:00
8dfb0a193b
Added Node.create_asset_from_file() utility function
...
This also adds some unittests using the Responses library.
2016-07-05 16:47:51 +02:00
6ad9b5f7bd
Ported utils.remove_private_keys() from Pillar
2016-07-05 16:30:34 +02:00
b74053a95b
Support getting /latest node type entry point
2016-05-02 19:05:53 +02:00
e088b56560
Pop more _deleted attributes.
2016-05-02 17:43:06 +02:00
8a652ec455
Nuked the prints
2016-03-11 10:23:12 +01:00
379fee60a8
Added required projections on Node class
2016-03-09 17:32:11 +01:00
6ff7adeb27
Use utils.remove_none_attributes in more methods
2016-03-09 16:56:50 +01:00
8c34f04bc6
Adds generic way of adding extra projections to Pillar queries
2016-03-09 14:00:33 +01:00
1a1c2c51fe
Added parameter support to Resource.find()
...
This makes the overrides in subclasses unnecessary
2016-03-09 12:41:52 +01:00
f034c9b2d2
Introducing pop_none_attributes
...
This function allows cleanup of dicts with None values before they get
sent to the validator (and cause potential validation failures).
2016-03-04 15:47:37 +01:00
61d8cc32ac
Introducing Project object
...
Project are a new collection, used to group node_types on a per-project
basis.
2016-01-25 16:18:51 +01:00
3fd5fdf154
Missing argument for .pop('_links') on Node update
2015-10-20 14:57:16 +02:00
c1ff4ba9bb
Introducing convert_datetime function
...
Starting from an JSON object, find and replace the _create and _updated
keys with actual datetime objects.
2015-10-20 13:03:34 +02:00
9a6af611da
Added has_method to NodeType
2015-10-20 11:38:34 +02:00
92d1dad594
Return ResourceNotFound on find_one if not found
2015-10-15 18:01:25 +02:00
90f8922667
Introducing find_one method for Node resources
2015-10-15 16:11:19 +02:00
5a856c8972
Tweaks to node update method
...
We override the update method so that the allowed_methods property can
be stripped before being sent to the server, avoiding validation issues.
We also introduce a new has_method method, which can be used in the UI
to check if the user can perform a specific method on the node.
2015-10-12 18:24:57 +02:00
991cc27e30
Renaming to Pillar SDK.
2015-08-31 19:25:01 +02:00