diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2014-04-27 14:52:25 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2014-04-27 14:52:25 (GMT) |
commit | 2dbc9b554f322ea23b224d923d9a6475e33ad6e9 (patch) | |
tree | 55df42ddf7a0ec8d4ca6ef007218b1056409dc0b /sugar_network/model/context.py | |
parent | 046073b04229021ec53833a353ffd069d0a5b561 (diff) |
Implementation polishing
* http.request does not load posting stream before sending;
* one-sigment packets;
* move node related code to node module;
* Principal capabilities;
* batch posting while pushing client offline updates.
Diffstat (limited to 'sugar_network/model/context.py')
-rw-r--r-- | sugar_network/model/context.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sugar_network/model/context.py b/sugar_network/model/context.py index 9153552..cf24650 100644 --- a/sugar_network/model/context.py +++ b/sugar_network/model/context.py @@ -95,17 +95,17 @@ class Context(db.Resource): def previews(self, value): return value - @db.stored_property(db.Aggregated, subtype=model.Release(), - acl=ACL.READ | ACL.INSERT | ACL.REMOVE | ACL.REPLACE) + @db.stored_property(db.Aggregated, subtype=db.Dict(), + acl=ACL.READ | ACL.LOCAL) def releases(self, value): return value @db.indexed_property(db.Numeric, slot=2, default=0, - acl=ACL.READ | ACL.CALC) + acl=ACL.READ | ACL.LOCAL) def downloads(self, value): return value - @db.indexed_property(model.Rating, slot=3, acl=ACL.READ | ACL.CALC) + @db.indexed_property(model.Rating, slot=3, acl=ACL.READ | ACL.LOCAL) def rating(self, value): return value |