Sugar Network/Resources: Difference between revisions

No edit summary
No edit summary
Line 10: Line 10:
A list of authors working on the corresponding resource. List items are dictionaries with the following keys:
A list of authors working on the corresponding resource. List items are dictionaries with the following keys:


* ''guid''<br>Author's guid in the Sugar Network; might be omitted if particular author is not registered in the Sugar Network;
* ''guid''<br>Author's guid in the Sugar Network; might be omitted if a particular author is not registered in the Sugar Network;


* ''name''<br>Full author's name;
* ''name''<br>Full author's name;
Line 20: Line 20:
'''Resource.layers'''
'''Resource.layers'''


: This is an attempt to generalize the idea of [http://groups.google.com/group/sugar-network/browse_thread/thread/4cad05ec801f364c user/resource levels] with idea that objects should not be removed from the Network immediately (only hidden, and permanently removed by Network administrators). So, every resource is associated with a layer, i.e., it might be visible for observers only if they requested this layer and have permissions to see it.
: This is an attempt to generalize the idea of [http://groups.google.com/group/sugar-network/browse_thread/thread/4cad05ec801f364c user/resource levels] with the idea that objects should not be removed from the Network immediately (only hidden, and permanently removed by Network administrators). So, every resource is associated with a layer, i.e., it might be visible for observers only if they requested this layer and have permissions to see it.


: For now, implemented only the following list of layers, but it might be reused for [http://groups.google.com/group/sugar-network/msg/f5a1b4d78494a5d3 teachers related workflows] later:
: For now, only the following list of layers are implemented, but the layer concept might be reused for [http://groups.google.com/group/sugar-network/msg/f5a1b4d78494a5d3 teachers related workflows] later:


:* ''public'', object is visible for everyone;
:* ''public'', object is visible for everyone;