blob: 6fd13c1dd2c352e55b1c48d47e610282c1c37faa [file] [log] [blame]
Joe Gregorioafc45f22011-02-20 16:11:28 -05001
2<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3<html><head><title>Python: class Resource</title>
4</head><body bgcolor="#f0f0f8">
5<p>
6<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
7<tr bgcolor="#ffc8d8">
8<td colspan=3 valign=bottom>&nbsp;<br>
9<font color="#000000" face="helvetica, arial"><a name="Resource">class <strong>Resource</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
10
11<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
12<td colspan=2><tt>A&nbsp;class&nbsp;for&nbsp;interacting&nbsp;with&nbsp;a&nbsp;resource.<br>&nbsp;</tt></td></tr>
13<tr><td>&nbsp;</td>
14<td width="100%">Methods defined here:<br>
15<dl><dt><a name="Resource-__init__"><strong>__init__</strong></a>(self)</dt></dl>
16
Joe Gregorio93841702011-03-02 16:12:05 -080017<dl><dt><a name="Resource-get"><strong>get</strong></a> = method(self, **kwargs)</dt><dd><tt>Returns&nbsp;the&nbsp;specified&nbsp;submission&nbsp;within&nbsp;the&nbsp;specified&nbsp;series.<br>
Joe Gregorioafc45f22011-02-20 16:11:28 -050018&nbsp;<br>
19Args:<br>
Joe Gregorioad258e22011-02-22 22:53:30 -050020&nbsp;&nbsp;lang:&nbsp;string,&nbsp;The&nbsp;language&nbsp;code&nbsp;for&nbsp;the&nbsp;language&nbsp;the&nbsp;client&nbsp;prefers&nbsp;resuls&nbsp;in.<br>
21&nbsp;&nbsp;seriesId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;Series.&nbsp;(required)<br>
Joe Gregorio20a5aa92011-04-01 17:44:25 -040022&nbsp;&nbsp;includeVotes:&nbsp;boolean,&nbsp;Specifies&nbsp;whether&nbsp;to&nbsp;include&nbsp;the&nbsp;current&nbsp;user's&nbsp;vote<br>
Joe Gregorioad258e22011-02-22 22:53:30 -050023&nbsp;&nbsp;submissionId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;Submission&nbsp;within&nbsp;the&nbsp;Series.&nbsp;(required)</tt></dd></dl>
Joe Gregorioafc45f22011-02-20 16:11:28 -050024
Joe Gregorio93841702011-03-02 16:12:05 -080025<dl><dt><a name="Resource-insert"><strong>insert</strong></a> = method(self, **kwargs)</dt><dd><tt>Inserts&nbsp;a&nbsp;new&nbsp;submission&nbsp;in&nbsp;the&nbsp;specified&nbsp;topic&nbsp;within&nbsp;the&nbsp;specified&nbsp;series.<br>
Joe Gregorioafc45f22011-02-20 16:11:28 -050026&nbsp;<br>
27Args:<br>
Joe Gregorioad258e22011-02-22 22:53:30 -050028&nbsp;&nbsp;seriesId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;Series.&nbsp;(required)<br>
29&nbsp;&nbsp;topicId:&nbsp;integer,&nbsp;The&nbsp;decimal&nbsp;ID&nbsp;of&nbsp;the&nbsp;Topic&nbsp;within&nbsp;the&nbsp;Series.&nbsp;(required)<br>
Joe Gregorio761c4562011-10-28 14:36:24 -040030&nbsp;&nbsp;unauthToken:&nbsp;string,&nbsp;User&nbsp;identifier&nbsp;for&nbsp;unauthenticated&nbsp;usage&nbsp;mode<br>
Joe Gregorio93841702011-03-02 16:12:05 -080031&nbsp;&nbsp;body:&nbsp;object,&nbsp;The&nbsp;request&nbsp;body.&nbsp;(required)<br>
Joe Gregorioad258e22011-02-22 22:53:30 -050032&nbsp;&nbsp;anonymous:&nbsp;boolean,&nbsp;Set&nbsp;to&nbsp;true&nbsp;to&nbsp;mark&nbsp;the&nbsp;new&nbsp;submission&nbsp;as&nbsp;anonymous.</tt></dd></dl>
Joe Gregorioafc45f22011-02-20 16:11:28 -050033
34<hr>
35Data descriptors defined here:<br>
36<dl><dt><strong>__dict__</strong></dt>
37<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
38</dl>
39<dl><dt><strong>__weakref__</strong></dt>
40<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
41</dl>
42</td></tr></table>
43</body></html>