Commit Graph

50 Commits

Author SHA1 Message Date
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
819245762a Fix for typo 2016-03-04 15:46:39 +01:00
874f107948 PEP8-formatted setup.py 2016-03-02 10:21:07 +01:00
675daf9ef6 Use setuptools instead of distutils 2016-03-02 10:17:51 +01:00
083c8216f0 Strip embedded files form Project on update 2016-02-09 17:15:49 +01:00
9f939e9319 Minor tweak to node_type_has_method 2016-01-28 12:59:38 +01:00
a8225cf5a3 Introducing node_type_has_method
Utility method that checks if a given node_type has the requested
method.
2016-01-26 18:27:00 +01:00
a8c7b8b37b Merge branch 'projects' 2016-01-25 16:19:55 +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
928e6d06f8 Allow use of internal file variations 2015-11-25 16:15:07 +01:00
c2db3eb4cd Fixes for mixing exception call 2015-11-05 00:23:20 +01:00
227d13c45f Added function to rebuild Resource from a dictionary 2015-11-04 12:54:55 +01:00
84e94a29c1 Now the thumbnail function support multiple backends 2015-11-04 12:54:24 +01:00
49685cfcb2 Fix for typo 2015-11-01 22:54:59 +01:00
bdeaae71b4 Tweak to debug prints for http response 2015-10-30 23:35:50 +01:00
1afc0a2716 Organization import was missing for use in pillarsdk 2015-10-28 20:34:36 +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
3d392b3b13 Added find_one as a resource class method 2015-10-19 19:09:48 +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
33b34110a1 Fix for thumbnail extension generation 2015-10-08 14:17:22 +02:00
394bc2a44c Updated entry point for file storage 2015-09-25 10:46:47 +02:00
1989a8edbf New thumbnail function based only on filename parsing 2015-09-11 15:38:48 +02:00
f72cbd77f4 Added call to retrieve thumbnails for file nodes of type image 2015-09-11 15:04:49 +02:00
b12699a714 Removed debug prints 2015-09-10 20:44:57 +02:00
680195c7b4 Added children function
Allows to retrieve children of a file record.
2015-09-08 15:09:05 +02:00
991cc27e30 Renaming to Pillar SDK. 2015-08-31 19:25:01 +02:00
d2eaca15a7 Added groups and organizations 2015-08-31 19:16:38 +02:00
Eibriel
fa1f720123 Added "build_previews" call 2015-05-08 11:30:28 -03:00
Eibriel
3069a45c24 Adding Token resource 2015-04-29 07:43:05 -03:00
Eibriel
d00676ce4e Adding support for File Storage on Attract Server 2015-04-23 16:01:55 -03:00
Eibriel
9fc01b219c WIP support fs.files 2015-04-21 17:30:22 -03:00
Eibriel
8c97922bb9 Added File collection 2015-04-20 08:46:54 -03:00
Eibriel
d335a6fab2 Mergin node properties on Creation
(to be able to get the _id right after creation)
2015-04-17 09:08:01 -03:00
06140c36bd Support for replace statement
Also added a replace_picture for Node Resource.
2015-04-15 16:07:27 +02:00
Eibriel
b6de87bc0e Added User resource, catching errors on requests
small fix
2015-04-15 09:52:06 -03:00
ddb7089d74 Initial support for file upload on post requests 2015-04-13 01:39:40 +02:00
8c910e7508 Updated create function to support dynamic api 2015-04-11 19:03:24 +02:00
b2e37d3b1d Allow Api singleton attributes update 2015-04-11 19:03:10 +02:00
Eibriel
8612492743 The SDK is not in charge of aut user&pass 2015-04-08 12:19:50 -03:00
Eibriel
d6706264b9 Fixing warnings 2015-04-08 09:36:45 -03:00
5e93946cf3 Fix for token request
Now we simply request the token and not a dictionary with a key called
token.
2015-04-08 14:27:25 +02:00
cbd5ee6e1a Update to .gitignore 2015-04-08 12:48:17 +02:00
fe70136b25 Fix for relative imports 2015-04-08 12:47:20 +02:00
Eibriel
8ef26e4152 Non global configuration SDK 2015-04-07 13:02:33 -03:00
Eibriel
59dda5777e Small changes to make it work with the Server 2015-03-27 15:34:35 +01:00
8deaed5fee Initial commit 2015-03-26 12:52:47 +01:00