diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-11-28 14:52:00 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-11-28 14:52:00 (GMT) |
commit | c1aa731b29d6e8c616b0f3adb58f093b2f7b50d0 (patch) | |
tree | 1d336635239c7cb5a46f19bfdc3ec6e2ff8da824 /sugar_network/model/implementation.py | |
parent | 2ad853ad16d3dce4dacf1313f67e168b0d8213d0 (diff) |
Support Implementation.requires to improve users driven queries
Diffstat (limited to 'sugar_network/model/implementation.py')
-rw-r--r-- | sugar_network/model/implementation.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sugar_network/model/implementation.py b/sugar_network/model/implementation.py index afeda82..53473e3 100644 --- a/sugar_network/model/implementation.py +++ b/sugar_network/model/implementation.py @@ -56,6 +56,11 @@ class Implementation(db.Resource): def notes(self, value): return value + @db.indexed_property(prefix='R', typecast=[], default=[], + acl=ACL.CREATE | ACL.READ) + def requires(self, value): + return value + @db.blob_property() def data(self, value): return value |