Sugar Network/Resources: Difference between revisions
No edit summary |
No edit summary |
||
| Line 21: | Line 21: | ||
'''Resource.author''' | '''Resource.author''' | ||
A | A dictionary of authors working on the corresponding resource. Keys are Sugar Network ''User'' guids, or, if particular author is not registered in the Sugar Network, full user names. Values are dictionaries with the following keys: | ||
* ''name''<br>Full author's name; | * ''name''<br>Full author's name; | ||
* ''role''<br>An integer which is a bit-wise ORed value of the following constants: | * ''role''<br>An integer which is a bit-wise ORed value of the following constants: | ||
** '' | ** ''0x1'', author is registered in the Sugar Network (and ''guid'' key is set); | ||
** '' | ** ''0x10000'', author is the original author of the corresponding resource; if it is not set, user is only a maintainer, e.g., an uploader of a book which has its original authors. | ||
<div id="resource-status"></div> | <div id="resource-status"></div> | ||