Sugar Network/Resources: Difference between revisions
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 26: | Line 26: | ||
* ''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); | ** ''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. | ** ''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; | ||
* ''avatar''<br>An url to author's avatar. | |||
<div id="resource-status"></div> | <div id="resource-status"></div> | ||
| Line 51: | Line 52: | ||
'''Context.type''' | '''Context.type''' | ||
* ''activity'', Sugar | * ''activity'', Sugar application; | ||
* ''book'', books in various forms; | * ''book'', books in various forms; | ||
* '' | * ''group'', a social group of related activities; | ||
* '' | * ''talks'', sub-type to mix-in offline discussion forum; | ||
* '' | * ''project'', sub-type to mix-in issue tracker and polling functionality. | ||
Context type specifies how context, and all related resources, can be used. For example, ''activity'' type assumes activity bundles uploaded to the ''Context.releases'' property, or, [[#post-type|Post.type]] depends on Context type it was created for. | Context type specifies how context, and all related resources, can be used. For example, ''activity'' type assumes activity bundles uploaded to the ''Context.releases'' property, or, [[#post-type|Post.type]] depends on Context type it was created for. | ||
| Line 72: | Line 73: | ||
* ''topic'', general purpose discussion; ''talks'' Contexts; | * ''topic'', general purpose discussion; ''talks'' Contexts; | ||
* ''artefact'', object generated by Context application; ''activity'' Contexts; | * ''artefact'', object generated by Context application; ''activity'' Contexts; | ||
* ''issue'', problem with the Context; ''project'' Contexts; | * ''issue'', problem with the Context; ''project'' Contexts; | ||
* ''poll'', a poll within the Context; ''project'' Contexts; | * ''poll'', a poll within the Context; ''project'' Contexts; | ||
* ''post'', a comment for a parent Post object; Context type independent. | * ''post'', a comment for a parent Post object; Context type independent. | ||