|
8 | 8 | <td valign=bottom> <br> |
9 | 9 | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="apiclient.html"><font color="#ffffff">apiclient</font></a>.<a href="apiclient.ext.html"><font color="#ffffff">ext</font></a>.appengine</strong></big></big></font></td |
10 | 10 | ><td align=right valign=bottom |
11 | | -><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/local/google/home/jcgregorio/projects/apiclient-release/apiclient/ext/appengine.py">/usr/local/google/home/jcgregorio/projects/apiclient-release/apiclient/ext/appengine.py</a></font></td></tr></table> |
| 11 | +><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/apiclient/apiclient/ext/appengine.py">/home/jcgregorio/projects/apiclient/apiclient/ext/appengine.py</a></font></td></tr></table> |
12 | 12 | <p><tt>Utilities for Google App Engine<br> |
13 | 13 | <br> |
14 | 14 | Utilities for making it easier to use the<br> |
|
116 | 116 | Returns:<br> |
117 | 117 | Default value as provided by <a href="#FlowThreeLeggedProperty-__init__">__init__</a>(default).</tt></dd></dl> |
118 | 118 |
|
| 119 | +<dl><dt><a name="FlowThreeLeggedProperty-get_updated_value_for_datastore"><strong>get_updated_value_for_datastore</strong></a>(self, model_instance)</dt><dd><tt>Determine new value for auto-updated property.<br> |
| 120 | + <br> |
| 121 | +Some properies (e.g. DateTimeProperty, UserProperty) optionally update their<br> |
| 122 | +value on every put(). This call must return the new desired value for such<br> |
| 123 | +properties. For all other properties, this call must return<br> |
| 124 | +AUTO_UPDATE_UNCHANGED.<br> |
| 125 | + <br> |
| 126 | +Args:<br> |
| 127 | + model_instance: Instance to get new value for.<br> |
| 128 | + <br> |
| 129 | +Returns:<br> |
| 130 | + Datastore representation of the new model value in a form that is<br> |
| 131 | + appropriate for storing in the datastore, or AUTO_UPDATE_UNCHANGED.</tt></dd></dl> |
| 132 | + |
119 | 133 | <hr> |
120 | 134 | Data descriptors inherited from <a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>:<br> |
121 | 135 | <dl><dt><strong>__dict__</strong></dt> |
|
200 | 214 | Returns:<br> |
201 | 215 | Default value as provided by <a href="#OAuthCredentialsProperty-__init__">__init__</a>(default).</tt></dd></dl> |
202 | 216 |
|
| 217 | +<dl><dt><a name="OAuthCredentialsProperty-get_updated_value_for_datastore"><strong>get_updated_value_for_datastore</strong></a>(self, model_instance)</dt><dd><tt>Determine new value for auto-updated property.<br> |
| 218 | + <br> |
| 219 | +Some properies (e.g. DateTimeProperty, UserProperty) optionally update their<br> |
| 220 | +value on every put(). This call must return the new desired value for such<br> |
| 221 | +properties. For all other properties, this call must return<br> |
| 222 | +AUTO_UPDATE_UNCHANGED.<br> |
| 223 | + <br> |
| 224 | +Args:<br> |
| 225 | + model_instance: Instance to get new value for.<br> |
| 226 | + <br> |
| 227 | +Returns:<br> |
| 228 | + Datastore representation of the new model value in a form that is<br> |
| 229 | + appropriate for storing in the datastore, or AUTO_UPDATE_UNCHANGED.</tt></dd></dl> |
| 230 | + |
203 | 231 | <hr> |
204 | 232 | Data descriptors inherited from <a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>:<br> |
205 | 233 | <dl><dt><strong>__dict__</strong></dt> |
|
0 commit comments