Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: module oauth2client.appengine</title> |
| 4 | </head><body bgcolor="#f0f0f8"> |
| 5 | |
| 6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
| 7 | <tr bgcolor="#7799ee"> |
| 8 | <td valign=bottom> <br> |
| 9 | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="oauth2client.html"><font color="#ffffff">oauth2client</font></a>.appengine</strong></big></big></font></td |
| 10 | ><td align=right valign=bottom |
Joe Gregorio | 4939655 | 2011-03-08 10:39:00 -0500 | [diff] [blame] | 11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/usr/local/google/home/jcgregorio/projects/apiclient/oauth2client/appengine.py">/usr/local/google/home/jcgregorio/projects/apiclient/oauth2client/appengine.py</a></font></td></tr></table> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 12 | <p><tt>Utilities for Google App Engine<br> |
| 13 | <br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 14 | Utilities for making it easier to use OAuth 2.0 on Google App Engine.</tt></p> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 15 | <p> |
| 16 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 17 | <tr bgcolor="#aa55cc"> |
| 18 | <td colspan=3 valign=bottom> <br> |
| 19 | <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
| 20 | |
| 21 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 22 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="google.appengine.api.app_identity.app_identity.html">google.appengine.api.app_identity.app_identity</a><br> |
| 23 | <a href="base64.html">base64</a><br> |
| 24 | <a href="google.appengine.ext.db.html">google.appengine.ext.db</a><br> |
| 25 | </td><td width="25%" valign=top><a href="httplib2.html">httplib2</a><br> |
| 26 | <a href="logging.html">logging</a><br> |
| 27 | <a href="google.appengine.api.memcache.html">google.appengine.api.memcache</a><br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 28 | </td><td width="25%" valign=top><a href="pickle.html">pickle</a><br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 29 | <a href="simplejson.html">simplejson</a><br> |
| 30 | <a href="time.html">time</a><br> |
| 31 | </td><td width="25%" valign=top><a href="google.appengine.api.users.html">google.appengine.api.users</a><br> |
| 32 | <a href="google.appengine.ext.webapp.html">google.appengine.ext.webapp</a><br> |
| 33 | </td></tr></table></td></tr></table><p> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 34 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 35 | <tr bgcolor="#ee77aa"> |
| 36 | <td colspan=3 valign=bottom> <br> |
| 37 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
| 38 | |
| 39 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
| 40 | <td width="100%"><dl> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 41 | <dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a> |
| 42 | </font></dt><dd> |
| 43 | <dl> |
| 44 | <dt><font face="helvetica, arial"><a href="oauth2client.appengine.html#OAuth2Decorator">OAuth2Decorator</a> |
| 45 | </font></dt></dl> |
| 46 | </dd> |
| 47 | <dt><font face="helvetica, arial"><a href="google.appengine.ext.db.html#Model">google.appengine.ext.db.Model</a>(<a href="__builtin__.html#object">__builtin__.object</a>) |
| 48 | </font></dt><dd> |
| 49 | <dl> |
| 50 | <dt><font face="helvetica, arial"><a href="oauth2client.appengine.html#CredentialsModel">CredentialsModel</a> |
| 51 | </font></dt></dl> |
| 52 | </dd> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 53 | <dt><font face="helvetica, arial"><a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>(<a href="__builtin__.html#object">__builtin__.object</a>) |
| 54 | </font></dt><dd> |
| 55 | <dl> |
| 56 | <dt><font face="helvetica, arial"><a href="oauth2client.appengine.html#CredentialsProperty">CredentialsProperty</a> |
| 57 | </font></dt><dt><font face="helvetica, arial"><a href="oauth2client.appengine.html#FlowProperty">FlowProperty</a> |
| 58 | </font></dt></dl> |
| 59 | </dd> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 60 | <dt><font face="helvetica, arial"><a href="google.appengine.ext.webapp.html#RequestHandler">google.appengine.ext.webapp.RequestHandler</a>(<a href="__builtin__.html#object">__builtin__.object</a>) |
| 61 | </font></dt><dd> |
| 62 | <dl> |
| 63 | <dt><font face="helvetica, arial"><a href="oauth2client.appengine.html#OAuth2Handler">OAuth2Handler</a> |
| 64 | </font></dt></dl> |
| 65 | </dd> |
| 66 | <dt><font face="helvetica, arial"><a href="oauth2client.client.html#AssertionCredentials">oauth2client.client.AssertionCredentials</a>(<a href="oauth2client.client.html#OAuth2Credentials">oauth2client.client.OAuth2Credentials</a>) |
| 67 | </font></dt><dd> |
| 68 | <dl> |
| 69 | <dt><font face="helvetica, arial"><a href="oauth2client.appengine.html#AppAssertionCredentials">AppAssertionCredentials</a> |
| 70 | </font></dt></dl> |
| 71 | </dd> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 72 | <dt><font face="helvetica, arial"><a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>(<a href="__builtin__.html#object">__builtin__.object</a>) |
| 73 | </font></dt><dd> |
| 74 | <dl> |
| 75 | <dt><font face="helvetica, arial"><a href="oauth2client.appengine.html#StorageByKeyName">StorageByKeyName</a> |
| 76 | </font></dt></dl> |
| 77 | </dd> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 78 | </dl> |
| 79 | <p> |
| 80 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 81 | <tr bgcolor="#ffc8d8"> |
| 82 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 83 | <font color="#000000" face="helvetica, arial"><a name="AppAssertionCredentials">class <strong>AppAssertionCredentials</strong></a>(<a href="oauth2client.client.html#AssertionCredentials">oauth2client.client.AssertionCredentials</a>)</font></td></tr> |
| 84 | |
| 85 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 86 | <td colspan=2><tt>Credentials <a href="__builtin__.html#object">object</a> for App Engine Assertion Grants<br> |
| 87 | <br> |
| 88 | This <a href="__builtin__.html#object">object</a> will allow an App Engine application to identify itself to Google<br> |
| 89 | and other OAuth 2.0 servers that can verify assertions. It can be used for<br> |
| 90 | the purpose of accessing data stored under an account assigned to the App<br> |
| 91 | Engine application itself. The algorithm used for generating the assertion is<br> |
| 92 | the Signed JSON Web Token (JWT) algorithm. Additional details can be found at<br> |
| 93 | the following link:<br> |
| 94 | <br> |
| 95 | <a href="http://self-issued.info/docs/draft-jones-json-web-token.html">http://self-issued.info/docs/draft-jones-json-web-token.html</a><br> |
| 96 | <br> |
| 97 | This credential does not require a flow to instantiate because it represents<br> |
| 98 | a two legged flow, and therefore has all of the required information to<br> |
| 99 | generate and refresh its own access tokens.<br> |
| 100 | <br> |
| 101 | AssertionFlowCredentials objects may be safely pickled and unpickled.<br> </tt></td></tr> |
| 102 | <tr><td> </td> |
| 103 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 104 | <dd><a href="oauth2client.appengine.html#AppAssertionCredentials">AppAssertionCredentials</a></dd> |
| 105 | <dd><a href="oauth2client.client.html#AssertionCredentials">oauth2client.client.AssertionCredentials</a></dd> |
| 106 | <dd><a href="oauth2client.client.html#OAuth2Credentials">oauth2client.client.OAuth2Credentials</a></dd> |
| 107 | <dd><a href="oauth2client.client.html#Credentials">oauth2client.client.Credentials</a></dd> |
| 108 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 109 | </dl> |
| 110 | <hr> |
| 111 | Methods defined here:<br> |
| 112 | <dl><dt><a name="AppAssertionCredentials-__init__"><strong>__init__</strong></a>(self, scope, user_agent, audience<font color="#909090">='https://accounts.google.com/o/oauth2/token'</font>, assertion_type<font color="#909090">='http://oauth.net/grant_type/jwt/1.0/bearer'</font>, token_uri<font color="#909090">='https://accounts.google.com/o/oauth2/token'</font>, **kwargs)</dt><dd><tt>Constructor for <a href="#AppAssertionCredentials">AppAssertionCredentials</a><br> |
| 113 | <br> |
| 114 | Args:<br> |
| 115 | scope: string, scope of the credentials being requested.<br> |
| 116 | user_agent: string, The HTTP User-Agent to provide for this application.<br> |
| 117 | audience: string, The audience, or verifier of the assertion. For<br> |
| 118 | convenience defaults to Google's audience.<br> |
| 119 | assertion_type: string, Type name that will identify the format of the<br> |
| 120 | assertion string. For convience, defaults to the JSON Web Token (JWT)<br> |
| 121 | assertion type string.<br> |
| 122 | token_uri: string, URI for token endpoint. For convenience<br> |
| 123 | defaults to Google's endpoints but any OAuth 2.0 provider can be used.</tt></dd></dl> |
| 124 | |
| 125 | <hr> |
| 126 | Methods inherited from <a href="oauth2client.client.html#OAuth2Credentials">oauth2client.client.OAuth2Credentials</a>:<br> |
| 127 | <dl><dt><a name="AppAssertionCredentials-__getstate__"><strong>__getstate__</strong></a>(self)</dt><dd><tt>Trim the state down to something that can be pickled.</tt></dd></dl> |
| 128 | |
| 129 | <dl><dt><a name="AppAssertionCredentials-__setstate__"><strong>__setstate__</strong></a>(self, state)</dt><dd><tt>Reconstitute the state of the <a href="__builtin__.html#object">object</a> from being pickled.</tt></dd></dl> |
| 130 | |
| 131 | <dl><dt><a name="AppAssertionCredentials-authorize"><strong>authorize</strong></a>(self, http)</dt><dd><tt>Authorize an httplib2.Http instance with these credentials.<br> |
| 132 | <br> |
| 133 | Args:<br> |
| 134 | http: An instance of httplib2.Http<br> |
| 135 | or something that acts like it.<br> |
| 136 | <br> |
| 137 | Returns:<br> |
| 138 | A modified instance of http that was passed in.<br> |
| 139 | <br> |
| 140 | Example:<br> |
| 141 | <br> |
| 142 | h = httplib2.Http()<br> |
| 143 | h = credentials.<a href="#AppAssertionCredentials-authorize">authorize</a>(h)<br> |
| 144 | <br> |
| 145 | You can't create a new OAuth<br> |
| 146 | subclass of httplib2.Authenication because<br> |
| 147 | it never gets passed the absolute URI, which is<br> |
| 148 | needed for signing. So instead we have to overload<br> |
| 149 | 'request' with a closure that adds in the<br> |
| 150 | Authorization header and then calls the original version<br> |
| 151 | of 'request()'.</tt></dd></dl> |
| 152 | |
| 153 | <dl><dt><a name="AppAssertionCredentials-set_store"><strong>set_store</strong></a>(self, store)</dt><dd><tt>Set the storage for the credential.<br> |
| 154 | <br> |
| 155 | Args:<br> |
| 156 | store: callable, a callable that when passed a Credential<br> |
| 157 | will store the credential back to where it came from.<br> |
| 158 | This is needed to store the latest access_token if it<br> |
| 159 | has expired and been refreshed.</tt></dd></dl> |
| 160 | |
| 161 | <hr> |
| 162 | Data descriptors inherited from <a href="oauth2client.client.html#OAuth2Credentials">oauth2client.client.OAuth2Credentials</a>:<br> |
| 163 | <dl><dt><strong>invalid</strong></dt> |
| 164 | <dd><tt>True if the credentials are invalid, such as being revoked.</tt></dd> |
| 165 | </dl> |
| 166 | <hr> |
| 167 | Data descriptors inherited from <a href="oauth2client.client.html#Credentials">oauth2client.client.Credentials</a>:<br> |
| 168 | <dl><dt><strong>__dict__</strong></dt> |
| 169 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 170 | </dl> |
| 171 | <dl><dt><strong>__weakref__</strong></dt> |
| 172 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 173 | </dl> |
| 174 | </td></tr></table> <p> |
| 175 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 176 | <tr bgcolor="#ffc8d8"> |
| 177 | <td colspan=3 valign=bottom> <br> |
| 178 | <font color="#000000" face="helvetica, arial"><a name="CredentialsModel">class <strong>CredentialsModel</strong></a>(<a href="google.appengine.ext.db.html#Model">google.appengine.ext.db.Model</a>)</font></td></tr> |
| 179 | |
| 180 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 181 | <td colspan=2><tt><a href="oauth2client.client.html#Storage">Storage</a> for OAuth 2.0 Credentials<br> |
| 182 | <br> |
| 183 | <a href="oauth2client.client.html#Storage">Storage</a> of the model is keyed by the user.user_id().<br> </tt></td></tr> |
| 184 | <tr><td> </td> |
| 185 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 186 | <dd><a href="oauth2client.appengine.html#CredentialsModel">CredentialsModel</a></dd> |
| 187 | <dd><a href="google.appengine.ext.db.html#Model">google.appengine.ext.db.Model</a></dd> |
| 188 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 189 | </dl> |
| 190 | <hr> |
| 191 | Data descriptors defined here:<br> |
| 192 | <dl><dt><strong>credentials</strong></dt> |
| 193 | <dd><tt>App Engine datastore Property for Credentials.<br> |
| 194 | <br> |
| 195 | Utility property that allows easy storage and retrieval of<br> |
| 196 | oath2client.Credentials</tt></dd> |
| 197 | </dl> |
| 198 | <hr> |
| 199 | Methods inherited from <a href="google.appengine.ext.db.html#Model">google.appengine.ext.db.Model</a>:<br> |
| 200 | <dl><dt><a name="CredentialsModel-__init__"><strong>__init__</strong></a>(self, parent<font color="#909090">=None</font>, key_name<font color="#909090">=None</font>, _app<font color="#909090">=None</font>, _from_entity<font color="#909090">=False</font>, **kwds)</dt><dd><tt>Creates a new instance of this model.<br> |
| 201 | <br> |
| 202 | To create a new entity, you instantiate a model and then call <a href="#CredentialsModel-put">put</a>(),<br> |
| 203 | which saves the entity to the datastore:<br> |
| 204 | <br> |
| 205 | person = Person()<br> |
| 206 | person.name = 'Bret'<br> |
| 207 | person.<a href="#CredentialsModel-put">put</a>()<br> |
| 208 | <br> |
| 209 | You can initialize properties in the model in the constructor with keyword<br> |
| 210 | arguments:<br> |
| 211 | <br> |
| 212 | person = Person(name='Bret')<br> |
| 213 | <br> |
| 214 | We initialize all other properties to the default value (as defined by the<br> |
| 215 | properties in the model definition) if they are not provided in the<br> |
| 216 | constructor.<br> |
| 217 | <br> |
| 218 | Args:<br> |
| 219 | parent: Parent instance for this instance or None, indicating a top-<br> |
| 220 | level instance.<br> |
| 221 | key_name: Name for new model instance.<br> |
| 222 | _from_entity: Intentionally undocumented.<br> |
| 223 | kwds: Keyword arguments mapping to properties of model. Also:<br> |
| 224 | key: Key instance for this instance, if provided makes parent and<br> |
| 225 | key_name redundant (they do not need to be set but if they are<br> |
| 226 | they must match the key).</tt></dd></dl> |
| 227 | |
| 228 | <dl><dt><a name="CredentialsModel-delete"><strong>delete</strong></a>(self, **kwargs)</dt><dd><tt>Deletes this entity from the datastore.<br> |
| 229 | <br> |
| 230 | Args:<br> |
| 231 | config: datastore_rpc.Configuration to use for this request.<br> |
| 232 | <br> |
| 233 | Raises:<br> |
| 234 | TransactionFailedError if the data could not be committed.</tt></dd></dl> |
| 235 | |
| 236 | <dl><dt><a name="CredentialsModel-dynamic_properties"><strong>dynamic_properties</strong></a>(self)</dt><dd><tt>Returns a list of all dynamic properties defined for instance.</tt></dd></dl> |
| 237 | |
| 238 | <dl><dt><a name="CredentialsModel-has_key"><strong>has_key</strong></a>(self)</dt><dd><tt>Determine if this model instance has a complete key.<br> |
| 239 | <br> |
| 240 | When not using a fully self-assigned Key, ids are not assigned until the<br> |
| 241 | data is saved to the Datastore, but instances with a key name always have<br> |
| 242 | a full key.<br> |
| 243 | <br> |
| 244 | Returns:<br> |
| 245 | True if the <a href="__builtin__.html#object">object</a> has been persisted to the datastore or has a key<br> |
| 246 | or has a key_name, otherwise False.</tt></dd></dl> |
| 247 | |
| 248 | <dl><dt><a name="CredentialsModel-instance_properties"><strong>instance_properties</strong></a>(self)</dt><dd><tt>Alias for dyanmic_properties.</tt></dd></dl> |
| 249 | |
| 250 | <dl><dt><a name="CredentialsModel-is_saved"><strong>is_saved</strong></a>(self)</dt><dd><tt>Determine if entity is persisted in the datastore.<br> |
| 251 | <br> |
| 252 | New instances of <a href="google.appengine.ext.db.html#Model">Model</a> do not start out saved in the data. Objects which<br> |
| 253 | are saved to or loaded from the Datastore will have a True saved state.<br> |
| 254 | <br> |
| 255 | Returns:<br> |
| 256 | True if <a href="__builtin__.html#object">object</a> has been persisted to the datastore, otherwise False.</tt></dd></dl> |
| 257 | |
| 258 | <dl><dt><a name="CredentialsModel-key"><strong>key</strong></a>(self)</dt><dd><tt>Unique key for this entity.<br> |
| 259 | <br> |
| 260 | This property is only available if this entity is already stored in the<br> |
| 261 | datastore or if it has a full key, so it is available if this entity was<br> |
| 262 | fetched returned from a query, or after <a href="#CredentialsModel-put">put</a>() is called the first time<br> |
| 263 | for new entities, or if a complete key was given when constructed.<br> |
| 264 | <br> |
| 265 | Returns:<br> |
| 266 | Datastore key of persisted entity.<br> |
| 267 | <br> |
| 268 | Raises:<br> |
| 269 | NotSavedError when entity is not persistent.</tt></dd></dl> |
| 270 | |
| 271 | <dl><dt><a name="CredentialsModel-parent"><strong>parent</strong></a>(self)</dt><dd><tt>Get the parent of the model instance.<br> |
| 272 | <br> |
| 273 | Returns:<br> |
| 274 | Parent of contained entity or parent provided in constructor, None if<br> |
| 275 | instance has no parent.</tt></dd></dl> |
| 276 | |
| 277 | <dl><dt><a name="CredentialsModel-parent_key"><strong>parent_key</strong></a>(self)</dt><dd><tt>Get the parent's key.<br> |
| 278 | <br> |
| 279 | This method is useful for avoiding a potential fetch from the datastore<br> |
| 280 | but still get information about the instances parent.<br> |
| 281 | <br> |
| 282 | Returns:<br> |
| 283 | Parent key of entity, None if there is no parent.</tt></dd></dl> |
| 284 | |
| 285 | <dl><dt><a name="CredentialsModel-put"><strong>put</strong></a>(self, **kwargs)</dt><dd><tt>Writes this model instance to the datastore.<br> |
| 286 | <br> |
| 287 | If this instance is new, we add an entity to the datastore.<br> |
| 288 | Otherwise, we update this instance, and the key will remain the<br> |
| 289 | same.<br> |
| 290 | <br> |
| 291 | Args:<br> |
| 292 | config: datastore_rpc.Configuration to use for this request.<br> |
| 293 | <br> |
| 294 | Returns:<br> |
| 295 | The key of the instance (either the existing key or a new key).<br> |
| 296 | <br> |
| 297 | Raises:<br> |
| 298 | TransactionFailedError if the data could not be committed.</tt></dd></dl> |
| 299 | |
| 300 | <dl><dt><a name="CredentialsModel-save"><strong>save</strong></a> = put(self, **kwargs)</dt><dd><tt>Writes this model instance to the datastore.<br> |
| 301 | <br> |
| 302 | If this instance is new, we add an entity to the datastore.<br> |
| 303 | Otherwise, we update this instance, and the key will remain the<br> |
| 304 | same.<br> |
| 305 | <br> |
| 306 | Args:<br> |
| 307 | config: datastore_rpc.Configuration to use for this request.<br> |
| 308 | <br> |
| 309 | Returns:<br> |
| 310 | The key of the instance (either the existing key or a new key).<br> |
| 311 | <br> |
| 312 | Raises:<br> |
| 313 | TransactionFailedError if the data could not be committed.</tt></dd></dl> |
| 314 | |
| 315 | <dl><dt><a name="CredentialsModel-to_xml"><strong>to_xml</strong></a>(self, _entity_class<font color="#909090">=<class 'google.appengine.api.datastore.Entity'></font>)</dt><dd><tt>Generate an XML representation of this model instance.<br> |
| 316 | <br> |
| 317 | atom and gd:namespace properties are converted to XML according to their<br> |
| 318 | respective schemas. For more information, see:<br> |
| 319 | <br> |
| 320 | <a href="http://www.atomenabled.org/developers/syndication/">http://www.atomenabled.org/developers/syndication/</a><br> |
| 321 | <a href="http://code.google.com/apis/gdata/common-elements.html">http://code.google.com/apis/gdata/common-elements.html</a></tt></dd></dl> |
| 322 | |
| 323 | <hr> |
| 324 | Class methods inherited from <a href="google.appengine.ext.db.html#Model">google.appengine.ext.db.Model</a>:<br> |
| 325 | <dl><dt><a name="CredentialsModel-all"><strong>all</strong></a>(cls, **kwds)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Returns a query over all instances of this model from the datastore.<br> |
| 326 | <br> |
| 327 | Returns:<br> |
| 328 | Query that will retrieve all instances from entity collection.</tt></dd></dl> |
| 329 | |
| 330 | <dl><dt><a name="CredentialsModel-entity_type"><strong>entity_type</strong></a>(cls)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Soon to be removed alias for kind.</tt></dd></dl> |
| 331 | |
| 332 | <dl><dt><a name="CredentialsModel-fields"><strong>fields</strong></a>(cls)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Soon to be removed alias for properties.</tt></dd></dl> |
| 333 | |
| 334 | <dl><dt><a name="CredentialsModel-from_entity"><strong>from_entity</strong></a>(cls, entity)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Converts the entity representation of this model to an instance.<br> |
| 335 | <br> |
| 336 | Converts datastore.Entity instance to an instance of cls.<br> |
| 337 | <br> |
| 338 | Args:<br> |
| 339 | entity: Entity loaded directly from datastore.<br> |
| 340 | <br> |
| 341 | Raises:<br> |
| 342 | KindError when cls is incorrect model for entity.</tt></dd></dl> |
| 343 | |
| 344 | <dl><dt><a name="CredentialsModel-get"><strong>get</strong></a>(cls, keys, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Fetch instance from the datastore of a specific <a href="google.appengine.ext.db.html#Model">Model</a> type using key.<br> |
| 345 | <br> |
| 346 | We support Key objects and string keys (we convert them to Key objects<br> |
| 347 | automatically).<br> |
| 348 | <br> |
| 349 | Useful for ensuring that specific instance types are retrieved from the<br> |
| 350 | datastore. It also helps that the source code clearly indicates what<br> |
| 351 | kind of <a href="__builtin__.html#object">object</a> is being retreived. Example:<br> |
| 352 | <br> |
| 353 | story = Story.<a href="#CredentialsModel-get">get</a>(story_key)<br> |
| 354 | <br> |
| 355 | Args:<br> |
| 356 | keys: Key within datastore entity collection to find; or string key;<br> |
| 357 | or list of Keys or string keys.<br> |
| 358 | config: datastore_rpc.Configuration to use for this request.<br> |
| 359 | <br> |
| 360 | Returns:<br> |
| 361 | If a single key was given: a <a href="google.appengine.ext.db.html#Model">Model</a> instance associated with key<br> |
| 362 | for provided class if it exists in the datastore, otherwise<br> |
| 363 | None; if a list of keys was given: a list whose items are either<br> |
| 364 | a <a href="google.appengine.ext.db.html#Model">Model</a> instance or None.<br> |
| 365 | <br> |
| 366 | Raises:<br> |
| 367 | KindError if any of the retreived objects are not instances of the<br> |
| 368 | type associated with call to 'get'.</tt></dd></dl> |
| 369 | |
| 370 | <dl><dt><a name="CredentialsModel-get_by_id"><strong>get_by_id</strong></a>(cls, ids, parent<font color="#909090">=None</font>, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Get instance of <a href="google.appengine.ext.db.html#Model">Model</a> class by id.<br> |
| 371 | <br> |
| 372 | Args:<br> |
| 373 | key_names: A single id or a list of ids.<br> |
| 374 | parent: Parent of instances to get. Can be a model or key.<br> |
| 375 | config: datastore_rpc.Configuration to use for this request.</tt></dd></dl> |
| 376 | |
| 377 | <dl><dt><a name="CredentialsModel-get_by_key_name"><strong>get_by_key_name</strong></a>(cls, key_names, parent<font color="#909090">=None</font>, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Get instance of <a href="google.appengine.ext.db.html#Model">Model</a> class by its key's name.<br> |
| 378 | <br> |
| 379 | Args:<br> |
| 380 | key_names: A single key-name or a list of key-names.<br> |
| 381 | parent: Parent of instances to get. Can be a model or key.<br> |
| 382 | config: datastore_rpc.Configuration to use for this request.</tt></dd></dl> |
| 383 | |
| 384 | <dl><dt><a name="CredentialsModel-get_or_insert"><strong>get_or_insert</strong></a>(cls, key_name, **kwds)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Transactionally retrieve or create an instance of <a href="google.appengine.ext.db.html#Model">Model</a> class.<br> |
| 385 | <br> |
| 386 | This acts much like the Python dictionary setdefault() method, where we<br> |
| 387 | first try to retrieve a <a href="google.appengine.ext.db.html#Model">Model</a> instance with the given key name and parent.<br> |
| 388 | If it's not present, then we create a new instance (using the *kwds<br> |
| 389 | supplied) and insert that with the supplied key name.<br> |
| 390 | <br> |
| 391 | Subsequent calls to this method with the same key_name and parent will<br> |
| 392 | always yield the same entity (though not the same actual <a href="__builtin__.html#object">object</a> instance),<br> |
| 393 | regardless of the *kwds supplied. If the specified entity has somehow<br> |
| 394 | been deleted separately, then the next call will create a new entity and<br> |
| 395 | return it.<br> |
| 396 | <br> |
| 397 | If the 'parent' keyword argument is supplied, it must be a <a href="google.appengine.ext.db.html#Model">Model</a> instance.<br> |
| 398 | It will be used as the parent of the new instance of this <a href="google.appengine.ext.db.html#Model">Model</a> class if<br> |
| 399 | one is created.<br> |
| 400 | <br> |
| 401 | This method is especially useful for having just one unique entity for<br> |
| 402 | a specific identifier. Insertion/retrieval is done transactionally, which<br> |
| 403 | guarantees uniqueness.<br> |
| 404 | <br> |
| 405 | Example usage:<br> |
| 406 | <br> |
| 407 | class WikiTopic(db.<a href="google.appengine.ext.db.html#Model">Model</a>):<br> |
| 408 | creation_date = db.DatetimeProperty(auto_now_add=True)<br> |
| 409 | body = db.TextProperty(required=True)<br> |
| 410 | <br> |
| 411 | # The first time through we'll create the new topic.<br> |
| 412 | wiki_word = 'CommonIdioms'<br> |
| 413 | topic = WikiTopic.<a href="#CredentialsModel-get_or_insert">get_or_insert</a>(wiki_word,<br> |
| 414 | body='This topic is totally new!')<br> |
| 415 | assert topic.<a href="#CredentialsModel-key">key</a>().name() == 'CommonIdioms'<br> |
| 416 | assert topic.body == 'This topic is totally new!'<br> |
| 417 | <br> |
| 418 | # The second time through will just retrieve the entity.<br> |
| 419 | overwrite_topic = WikiTopic.<a href="#CredentialsModel-get_or_insert">get_or_insert</a>(wiki_word,<br> |
| 420 | body='A totally different message!')<br> |
| 421 | assert topic.<a href="#CredentialsModel-key">key</a>().name() == 'CommonIdioms'<br> |
| 422 | assert topic.body == 'This topic is totally new!'<br> |
| 423 | <br> |
| 424 | Args:<br> |
| 425 | key_name: Key name to retrieve or create.<br> |
| 426 | **kwds: Keyword arguments to pass to the constructor of the model class<br> |
| 427 | if an instance for the specified key name does not already exist. If<br> |
| 428 | an instance with the supplied key_name and parent already exists, the<br> |
| 429 | rest of these arguments will be discarded.<br> |
| 430 | <br> |
| 431 | Returns:<br> |
| 432 | Existing instance of <a href="google.appengine.ext.db.html#Model">Model</a> class with the specified key_name and parent<br> |
| 433 | or a new one that has just been created.<br> |
| 434 | <br> |
| 435 | Raises:<br> |
| 436 | TransactionFailedError if the specified <a href="google.appengine.ext.db.html#Model">Model</a> instance could not be<br> |
| 437 | retrieved or created transactionally (due to high contention, etc).</tt></dd></dl> |
| 438 | |
| 439 | <dl><dt><a name="CredentialsModel-gql"><strong>gql</strong></a>(cls, query_string, *args, **kwds)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Returns a query using GQL query string.<br> |
| 440 | <br> |
| 441 | See appengine/ext/gql for more information about GQL.<br> |
| 442 | <br> |
| 443 | Args:<br> |
| 444 | query_string: properly formatted GQL query string with the<br> |
| 445 | 'SELECT * FROM <entity>' part omitted<br> |
| 446 | *args: rest of the positional arguments used to bind numeric references<br> |
| 447 | in the query.<br> |
| 448 | **kwds: dictionary-based arguments (for named parameters).</tt></dd></dl> |
| 449 | |
| 450 | <dl><dt><a name="CredentialsModel-kind"><strong>kind</strong></a>(cls)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Returns the datastore kind we use for this model.<br> |
| 451 | <br> |
| 452 | We just use the name of the model for now, ignoring potential collisions.</tt></dd></dl> |
| 453 | |
| 454 | <dl><dt><a name="CredentialsModel-properties"><strong>properties</strong></a>(cls)<font color="#909090"><font face="helvetica, arial"> from <a href="google.appengine.ext.db.html#PropertiedClass">google.appengine.ext.db.PropertiedClass</a></font></font></dt><dd><tt>Returns a dictionary of all the properties defined for this model.</tt></dd></dl> |
| 455 | |
| 456 | <hr> |
| 457 | Static methods inherited from <a href="google.appengine.ext.db.html#Model">google.appengine.ext.db.Model</a>:<br> |
| 458 | <dl><dt><a name="CredentialsModel-__new__"><strong>__new__</strong></a>(*args, **unused_kwds)</dt><dd><tt>Allow subclasses to call <a href="#CredentialsModel-__new__">__new__</a>() with arguments.<br> |
| 459 | <br> |
| 460 | Do NOT list 'cls' as the first argument, or in the case when<br> |
| 461 | the 'unused_kwds' dictionary contains the key 'cls', the function<br> |
| 462 | will complain about multiple argument values for 'cls'.<br> |
| 463 | <br> |
| 464 | Raises:<br> |
| 465 | TypeError if there are no positional arguments.</tt></dd></dl> |
| 466 | |
| 467 | <hr> |
| 468 | Data descriptors inherited from <a href="google.appengine.ext.db.html#Model">google.appengine.ext.db.Model</a>:<br> |
| 469 | <dl><dt><strong>__dict__</strong></dt> |
| 470 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 471 | </dl> |
| 472 | <dl><dt><strong>__weakref__</strong></dt> |
| 473 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 474 | </dl> |
| 475 | <hr> |
| 476 | Data and other attributes inherited from <a href="google.appengine.ext.db.html#Model">google.appengine.ext.db.Model</a>:<br> |
| 477 | <dl><dt><strong>__metaclass__</strong> = <class 'google.appengine.ext.db.PropertiedClass'><dd><tt>Meta-class for initializing <a href="google.appengine.ext.db.html#Model">Model</a> classes properties.<br> |
| 478 | <br> |
| 479 | Used for initializing Properties defined in the context of a model.<br> |
| 480 | By using a meta-class much of the configuration of a <a href="google.appengine.ext.db.html#Property">Property</a><br> |
| 481 | descriptor becomes implicit. By using this meta-class, descriptors<br> |
| 482 | that are of class <a href="google.appengine.ext.db.html#Model">Model</a> are notified about which class they<br> |
| 483 | belong to and what attribute they are associated with and can<br> |
| 484 | do appropriate initialization via __property_config__.<br> |
| 485 | <br> |
| 486 | Duplicate properties are not permitted.</tt></dl> |
| 487 | |
| 488 | </td></tr></table> <p> |
| 489 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 490 | <tr bgcolor="#ffc8d8"> |
| 491 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 492 | <font color="#000000" face="helvetica, arial"><a name="CredentialsProperty">class <strong>CredentialsProperty</strong></a>(<a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>)</font></td></tr> |
| 493 | |
| 494 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 495 | <td colspan=2><tt>App Engine datastore <a href="google.appengine.ext.db.html#Property">Property</a> for Credentials.<br> |
| 496 | <br> |
| 497 | Utility property that allows easy storage and retrieval of<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 498 | oath2client.Credentials<br> </tt></td></tr> |
| 499 | <tr><td> </td> |
| 500 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 501 | <dd><a href="oauth2client.appengine.html#CredentialsProperty">CredentialsProperty</a></dd> |
| 502 | <dd><a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a></dd> |
| 503 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 504 | </dl> |
| 505 | <hr> |
| 506 | Methods defined here:<br> |
| 507 | <dl><dt><a name="CredentialsProperty-empty"><strong>empty</strong></a>(self, value)</dt></dl> |
| 508 | |
| 509 | <dl><dt><a name="CredentialsProperty-get_value_for_datastore"><strong>get_value_for_datastore</strong></a>(self, model_instance)</dt><dd><tt># For writing to datastore.</tt></dd></dl> |
| 510 | |
| 511 | <dl><dt><a name="CredentialsProperty-make_value_from_datastore"><strong>make_value_from_datastore</strong></a>(self, value)</dt><dd><tt># For reading from datastore.</tt></dd></dl> |
| 512 | |
| 513 | <dl><dt><a name="CredentialsProperty-validate"><strong>validate</strong></a>(self, value)</dt></dl> |
| 514 | |
| 515 | <hr> |
| 516 | Data and other attributes defined here:<br> |
| 517 | <dl><dt><strong>data_type</strong> = <class 'oauth2client.client.Credentials'><dd><tt>Base class for all Credentials objects.<br> |
| 518 | <br> |
| 519 | Subclasses must define an authorize() method<br> |
| 520 | that applies the credentials to an HTTP transport.</tt></dl> |
| 521 | |
| 522 | <hr> |
| 523 | Methods inherited from <a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>:<br> |
| 524 | <dl><dt><a name="CredentialsProperty-__get__"><strong>__get__</strong></a>(self, model_instance, model_class)</dt><dd><tt>Returns the value for this property on the given model instance.<br> |
| 525 | <br> |
| 526 | See <a href="http://docs.python.org/ref/descriptors.html">http://docs.python.org/ref/descriptors.html</a> for a description of<br> |
| 527 | the arguments to this class and what they mean.</tt></dd></dl> |
| 528 | |
| 529 | <dl><dt><a name="CredentialsProperty-__init__"><strong>__init__</strong></a>(self, verbose_name<font color="#909090">=None</font>, name<font color="#909090">=None</font>, default<font color="#909090">=None</font>, required<font color="#909090">=False</font>, validator<font color="#909090">=None</font>, choices<font color="#909090">=None</font>, indexed<font color="#909090">=True</font>)</dt><dd><tt>Initializes this <a href="google.appengine.ext.db.html#Property">Property</a> with the given options.<br> |
| 530 | <br> |
| 531 | Args:<br> |
| 532 | verbose_name: User friendly name of property.<br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 533 | name: <a href="oauth2client.client.html#Storage">Storage</a> name for property. By default, uses attribute name<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 534 | as it is assigned in the <a href="google.appengine.ext.db.html#Model">Model</a> sub-class.<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 535 | default: Default value for property if none is assigned.<br> |
| 536 | required: Whether property is required.<br> |
| 537 | validator: User provided method used for validation.<br> |
| 538 | choices: User provided set of valid property values.<br> |
| 539 | indexed: Whether property is indexed.</tt></dd></dl> |
| 540 | |
| 541 | <dl><dt><a name="CredentialsProperty-__property_config__"><strong>__property_config__</strong></a>(self, model_class, property_name)</dt><dd><tt>Configure property, connecting it to its model.<br> |
| 542 | <br> |
| 543 | Configure the property so that it knows its property name and what class<br> |
| 544 | it belongs to.<br> |
| 545 | <br> |
| 546 | Args:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 547 | model_class: <a href="google.appengine.ext.db.html#Model">Model</a> class which <a href="google.appengine.ext.db.html#Property">Property</a> will belong to.<br> |
| 548 | property_name: Name of property within <a href="google.appengine.ext.db.html#Model">Model</a> instance to store property<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 549 | values in. By default this will be the property name preceded by<br> |
| 550 | an underscore, but may change for different subclasses.</tt></dd></dl> |
| 551 | |
| 552 | <dl><dt><a name="CredentialsProperty-__set__"><strong>__set__</strong></a>(self, model_instance, value)</dt><dd><tt>Sets the value for this property on the given model instance.<br> |
| 553 | <br> |
| 554 | See <a href="http://docs.python.org/ref/descriptors.html">http://docs.python.org/ref/descriptors.html</a> for a description of<br> |
| 555 | the arguments to this class and what they mean.</tt></dd></dl> |
| 556 | |
| 557 | <dl><dt><a name="CredentialsProperty-datastore_type"><strong>datastore_type</strong></a>(self)</dt><dd><tt>Deprecated backwards-compatible accessor method for self.<strong>data_type</strong>.</tt></dd></dl> |
| 558 | |
| 559 | <dl><dt><a name="CredentialsProperty-default_value"><strong>default_value</strong></a>(self)</dt><dd><tt>Default value for unassigned values.<br> |
| 560 | <br> |
| 561 | Returns:<br> |
| 562 | Default value as provided by <a href="#CredentialsProperty-__init__">__init__</a>(default).</tt></dd></dl> |
| 563 | |
| 564 | <hr> |
| 565 | Data descriptors inherited from <a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>:<br> |
| 566 | <dl><dt><strong>__dict__</strong></dt> |
| 567 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 568 | </dl> |
| 569 | <dl><dt><strong>__weakref__</strong></dt> |
| 570 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 571 | </dl> |
| 572 | <hr> |
| 573 | Data and other attributes inherited from <a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 574 | <dl><dt><strong>creation_counter</strong> = 1</dl> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 575 | |
| 576 | </td></tr></table> <p> |
| 577 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 578 | <tr bgcolor="#ffc8d8"> |
| 579 | <td colspan=3 valign=bottom> <br> |
| 580 | <font color="#000000" face="helvetica, arial"><a name="FlowProperty">class <strong>FlowProperty</strong></a>(<a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>)</font></td></tr> |
| 581 | |
| 582 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 583 | <td colspan=2><tt>App Engine datastore <a href="google.appengine.ext.db.html#Property">Property</a> for Flow.<br> |
| 584 | <br> |
| 585 | Utility property that allows easy storage and retreival of an<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 586 | oauth2client.Flow<br> </tt></td></tr> |
| 587 | <tr><td> </td> |
| 588 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 589 | <dd><a href="oauth2client.appengine.html#FlowProperty">FlowProperty</a></dd> |
| 590 | <dd><a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a></dd> |
| 591 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 592 | </dl> |
| 593 | <hr> |
| 594 | Methods defined here:<br> |
| 595 | <dl><dt><a name="FlowProperty-empty"><strong>empty</strong></a>(self, value)</dt></dl> |
| 596 | |
| 597 | <dl><dt><a name="FlowProperty-get_value_for_datastore"><strong>get_value_for_datastore</strong></a>(self, model_instance)</dt><dd><tt># For writing to datastore.</tt></dd></dl> |
| 598 | |
| 599 | <dl><dt><a name="FlowProperty-make_value_from_datastore"><strong>make_value_from_datastore</strong></a>(self, value)</dt><dd><tt># For reading from datastore.</tt></dd></dl> |
| 600 | |
| 601 | <dl><dt><a name="FlowProperty-validate"><strong>validate</strong></a>(self, value)</dt></dl> |
| 602 | |
| 603 | <hr> |
| 604 | Data and other attributes defined here:<br> |
| 605 | <dl><dt><strong>data_type</strong> = <class 'oauth2client.client.Flow'><dd><tt>Base class for all Flow objects.</tt></dl> |
| 606 | |
| 607 | <hr> |
| 608 | Methods inherited from <a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>:<br> |
| 609 | <dl><dt><a name="FlowProperty-__get__"><strong>__get__</strong></a>(self, model_instance, model_class)</dt><dd><tt>Returns the value for this property on the given model instance.<br> |
| 610 | <br> |
| 611 | See <a href="http://docs.python.org/ref/descriptors.html">http://docs.python.org/ref/descriptors.html</a> for a description of<br> |
| 612 | the arguments to this class and what they mean.</tt></dd></dl> |
| 613 | |
| 614 | <dl><dt><a name="FlowProperty-__init__"><strong>__init__</strong></a>(self, verbose_name<font color="#909090">=None</font>, name<font color="#909090">=None</font>, default<font color="#909090">=None</font>, required<font color="#909090">=False</font>, validator<font color="#909090">=None</font>, choices<font color="#909090">=None</font>, indexed<font color="#909090">=True</font>)</dt><dd><tt>Initializes this <a href="google.appengine.ext.db.html#Property">Property</a> with the given options.<br> |
| 615 | <br> |
| 616 | Args:<br> |
| 617 | verbose_name: User friendly name of property.<br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 618 | name: <a href="oauth2client.client.html#Storage">Storage</a> name for property. By default, uses attribute name<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 619 | as it is assigned in the <a href="google.appengine.ext.db.html#Model">Model</a> sub-class.<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 620 | default: Default value for property if none is assigned.<br> |
| 621 | required: Whether property is required.<br> |
| 622 | validator: User provided method used for validation.<br> |
| 623 | choices: User provided set of valid property values.<br> |
| 624 | indexed: Whether property is indexed.</tt></dd></dl> |
| 625 | |
| 626 | <dl><dt><a name="FlowProperty-__property_config__"><strong>__property_config__</strong></a>(self, model_class, property_name)</dt><dd><tt>Configure property, connecting it to its model.<br> |
| 627 | <br> |
| 628 | Configure the property so that it knows its property name and what class<br> |
| 629 | it belongs to.<br> |
| 630 | <br> |
| 631 | Args:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 632 | model_class: <a href="google.appengine.ext.db.html#Model">Model</a> class which <a href="google.appengine.ext.db.html#Property">Property</a> will belong to.<br> |
| 633 | property_name: Name of property within <a href="google.appengine.ext.db.html#Model">Model</a> instance to store property<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 634 | values in. By default this will be the property name preceded by<br> |
| 635 | an underscore, but may change for different subclasses.</tt></dd></dl> |
| 636 | |
| 637 | <dl><dt><a name="FlowProperty-__set__"><strong>__set__</strong></a>(self, model_instance, value)</dt><dd><tt>Sets the value for this property on the given model instance.<br> |
| 638 | <br> |
| 639 | See <a href="http://docs.python.org/ref/descriptors.html">http://docs.python.org/ref/descriptors.html</a> for a description of<br> |
| 640 | the arguments to this class and what they mean.</tt></dd></dl> |
| 641 | |
| 642 | <dl><dt><a name="FlowProperty-datastore_type"><strong>datastore_type</strong></a>(self)</dt><dd><tt>Deprecated backwards-compatible accessor method for self.<strong>data_type</strong>.</tt></dd></dl> |
| 643 | |
| 644 | <dl><dt><a name="FlowProperty-default_value"><strong>default_value</strong></a>(self)</dt><dd><tt>Default value for unassigned values.<br> |
| 645 | <br> |
| 646 | Returns:<br> |
| 647 | Default value as provided by <a href="#FlowProperty-__init__">__init__</a>(default).</tt></dd></dl> |
| 648 | |
| 649 | <hr> |
| 650 | Data descriptors inherited from <a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>:<br> |
| 651 | <dl><dt><strong>__dict__</strong></dt> |
| 652 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 653 | </dl> |
| 654 | <dl><dt><strong>__weakref__</strong></dt> |
| 655 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 656 | </dl> |
| 657 | <hr> |
| 658 | Data and other attributes inherited from <a href="google.appengine.ext.db.html#Property">google.appengine.ext.db.Property</a>:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 659 | <dl><dt><strong>creation_counter</strong> = 1</dl> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 660 | |
| 661 | </td></tr></table> <p> |
| 662 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 663 | <tr bgcolor="#ffc8d8"> |
| 664 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 665 | <font color="#000000" face="helvetica, arial"><a name="OAuth2Decorator">class <strong>OAuth2Decorator</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr> |
| 666 | |
| 667 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 668 | <td colspan=2><tt>Utility for making OAuth 2.0 easier.<br> |
| 669 | <br> |
| 670 | Instantiate and then use with oauth_required or oauth_aware<br> |
| 671 | as decorators on webapp.<a href="google.appengine.ext.webapp.html#RequestHandler">RequestHandler</a> methods.<br> |
| 672 | <br> |
| 673 | Example:<br> |
| 674 | <br> |
| 675 | decorator = <a href="#OAuth2Decorator">OAuth2Decorator</a>(<br> |
| 676 | client_id='837...ent.com',<br> |
| 677 | client_secret='Qh...wwI',<br> |
| 678 | scope='https://www.googleapis.com/auth/buzz',<br> |
| 679 | user_agent='my-sample-app/1.0')<br> |
| 680 | <br> |
| 681 | <br> |
| 682 | class MainHandler(webapp.<a href="google.appengine.ext.webapp.html#RequestHandler">RequestHandler</a>):<br> |
| 683 | <br> |
| 684 | @decorator.oauth_required<br> |
| 685 | def get(self):<br> |
| 686 | http = decorator.<a href="#OAuth2Decorator-http">http</a>()<br> |
| 687 | # http is authorized with the user's Credentials and can be used<br> |
| 688 | # in API calls<br> </tt></td></tr> |
| 689 | <tr><td> </td> |
| 690 | <td width="100%">Methods defined here:<br> |
| 691 | <dl><dt><a name="OAuth2Decorator-__init__"><strong>__init__</strong></a>(self, client_id, client_secret, scope, user_agent, auth_uri<font color="#909090">='https://accounts.google.com/o/oauth2/auth'</font>, token_uri<font color="#909090">='https://accounts.google.com/o/oauth2/token'</font>)</dt><dd><tt>Constructor for <a href="#OAuth2Decorator">OAuth2Decorator</a><br> |
| 692 | <br> |
| 693 | Args:<br> |
| 694 | client_id: string, client identifier.<br> |
| 695 | client_secret: string client secret.<br> |
| 696 | scope: string, scope of the credentials being requested.<br> |
| 697 | user_agent: string, HTTP User-Agent to provide for this application.<br> |
| 698 | auth_uri: string, URI for authorization endpoint. For convenience<br> |
| 699 | defaults to Google's endpoints but any OAuth 2.0 provider can be used.<br> |
| 700 | token_uri: string, URI for token endpoint. For convenience<br> |
| 701 | defaults to Google's endpoints but any OAuth 2.0 provider can be used.</tt></dd></dl> |
| 702 | |
| 703 | <dl><dt><a name="OAuth2Decorator-authorize_url"><strong>authorize_url</strong></a>(self)</dt><dd><tt>Returns the URL to start the OAuth dance.<br> |
| 704 | <br> |
| 705 | Must only be called from with a webapp.<a href="google.appengine.ext.webapp.html#RequestHandler">RequestHandler</a> subclassed method<br> |
| 706 | that had been decorated with either @oauth_required or @oauth_aware.</tt></dd></dl> |
| 707 | |
| 708 | <dl><dt><a name="OAuth2Decorator-has_credentials"><strong>has_credentials</strong></a>(self)</dt><dd><tt>True if for the logged in user there are valid access Credentials.<br> |
| 709 | <br> |
| 710 | Must only be called from with a webapp.<a href="google.appengine.ext.webapp.html#RequestHandler">RequestHandler</a> subclassed method<br> |
| 711 | that had been decorated with either @oauth_required or @oauth_aware.</tt></dd></dl> |
| 712 | |
| 713 | <dl><dt><a name="OAuth2Decorator-http"><strong>http</strong></a>(self)</dt><dd><tt>Returns an authorized http instance.<br> |
| 714 | <br> |
| 715 | Must only be called from within an @oauth_required decorated method, or<br> |
| 716 | from within an @oauth_aware decorated method where <a href="#OAuth2Decorator-has_credentials">has_credentials</a>()<br> |
| 717 | returns True.</tt></dd></dl> |
| 718 | |
| 719 | <dl><dt><a name="OAuth2Decorator-oauth_aware"><strong>oauth_aware</strong></a>(self, method)</dt><dd><tt>Decorator that sets up for OAuth 2.0 dance, but doesn't do it.<br> |
| 720 | <br> |
| 721 | Does all the setup for the OAuth dance, but doesn't initiate it.<br> |
| 722 | This decorator is useful if you want to create a page that knows<br> |
| 723 | whether or not the user has granted access to this application.<br> |
| 724 | From within a method decorated with @oauth_aware the <a href="#OAuth2Decorator-has_credentials">has_credentials</a>()<br> |
| 725 | and <a href="#OAuth2Decorator-authorize_url">authorize_url</a>() methods can be called.<br> |
| 726 | <br> |
| 727 | Args:<br> |
| 728 | method: callable, to be decorated method of a webapp.<a href="google.appengine.ext.webapp.html#RequestHandler">RequestHandler</a><br> |
| 729 | instance.</tt></dd></dl> |
| 730 | |
| 731 | <dl><dt><a name="OAuth2Decorator-oauth_required"><strong>oauth_required</strong></a>(self, method)</dt><dd><tt>Decorator that starts the OAuth 2.0 dance.<br> |
| 732 | <br> |
| 733 | Starts the OAuth dance for the logged in user if they haven't already<br> |
| 734 | granted access for this application.<br> |
| 735 | <br> |
| 736 | Args:<br> |
| 737 | method: callable, to be decorated method of a webapp.<a href="google.appengine.ext.webapp.html#RequestHandler">RequestHandler</a><br> |
| 738 | instance.</tt></dd></dl> |
| 739 | |
| 740 | <hr> |
| 741 | Data descriptors defined here:<br> |
| 742 | <dl><dt><strong>__dict__</strong></dt> |
| 743 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 744 | </dl> |
| 745 | <dl><dt><strong>__weakref__</strong></dt> |
| 746 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 747 | </dl> |
| 748 | </td></tr></table> <p> |
| 749 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 750 | <tr bgcolor="#ffc8d8"> |
| 751 | <td colspan=3 valign=bottom> <br> |
| 752 | <font color="#000000" face="helvetica, arial"><a name="OAuth2Handler">class <strong>OAuth2Handler</strong></a>(<a href="google.appengine.ext.webapp.html#RequestHandler">google.appengine.ext.webapp.RequestHandler</a>)</font></td></tr> |
| 753 | |
| 754 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 755 | <td colspan=2><tt>Handler for the redirect_uri of the OAuth 2.0 dance.<br> </tt></td></tr> |
| 756 | <tr><td> </td> |
| 757 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 758 | <dd><a href="oauth2client.appengine.html#OAuth2Handler">OAuth2Handler</a></dd> |
| 759 | <dd><a href="google.appengine.ext.webapp.html#RequestHandler">google.appengine.ext.webapp.RequestHandler</a></dd> |
| 760 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 761 | </dl> |
| 762 | <hr> |
| 763 | Methods defined here:<br> |
| 764 | <dl><dt><a name="OAuth2Handler-get"><strong>get</strong></a> = check_login(self, *args)</dt></dl> |
| 765 | |
| 766 | <hr> |
| 767 | Methods inherited from <a href="google.appengine.ext.webapp.html#RequestHandler">google.appengine.ext.webapp.RequestHandler</a>:<br> |
| 768 | <dl><dt><a name="OAuth2Handler-delete"><strong>delete</strong></a>(self, *args)</dt><dd><tt>Handler method for DELETE requests.</tt></dd></dl> |
| 769 | |
| 770 | <dl><dt><a name="OAuth2Handler-error"><strong>error</strong></a>(self, code)</dt><dd><tt>Clears the response output stream and sets the given HTTP error code.<br> |
| 771 | <br> |
| 772 | Args:<br> |
| 773 | code: the HTTP status error code (e.g., 501)</tt></dd></dl> |
| 774 | |
| 775 | <dl><dt><a name="OAuth2Handler-handle_exception"><strong>handle_exception</strong></a>(self, exception, debug_mode)</dt><dd><tt>Called if this handler throws an exception during execution.<br> |
| 776 | <br> |
| 777 | The default behavior is to call <a href="#OAuth2Handler-error">error</a>(500) and print a stack trace<br> |
| 778 | if debug_mode is True.<br> |
| 779 | <br> |
| 780 | Args:<br> |
| 781 | exception: the exception that was thrown<br> |
| 782 | debug_mode: True if the web application is running in debug mode</tt></dd></dl> |
| 783 | |
| 784 | <dl><dt><a name="OAuth2Handler-head"><strong>head</strong></a>(self, *args)</dt><dd><tt>Handler method for HEAD requests.</tt></dd></dl> |
| 785 | |
| 786 | <dl><dt><a name="OAuth2Handler-initialize"><strong>initialize</strong></a>(self, request, response)</dt><dd><tt>Initializes this request handler with the given Request and Response.</tt></dd></dl> |
| 787 | |
| 788 | <dl><dt><a name="OAuth2Handler-options"><strong>options</strong></a>(self, *args)</dt><dd><tt>Handler method for OPTIONS requests.</tt></dd></dl> |
| 789 | |
| 790 | <dl><dt><a name="OAuth2Handler-post"><strong>post</strong></a>(self, *args)</dt><dd><tt>Handler method for POST requests.</tt></dd></dl> |
| 791 | |
| 792 | <dl><dt><a name="OAuth2Handler-put"><strong>put</strong></a>(self, *args)</dt><dd><tt>Handler method for PUT requests.</tt></dd></dl> |
| 793 | |
| 794 | <dl><dt><a name="OAuth2Handler-redirect"><strong>redirect</strong></a>(self, uri, permanent<font color="#909090">=False</font>)</dt><dd><tt>Issues an HTTP redirect to the given relative URL.<br> |
| 795 | <br> |
| 796 | Args:<br> |
| 797 | uri: a relative or absolute URI (e.g., '../flowers.html')<br> |
| 798 | permanent: if true, we use a 301 redirect instead of a 302 redirect</tt></dd></dl> |
| 799 | |
| 800 | <dl><dt><a name="OAuth2Handler-trace"><strong>trace</strong></a>(self, *args)</dt><dd><tt>Handler method for TRACE requests.</tt></dd></dl> |
| 801 | |
| 802 | <hr> |
| 803 | Class methods inherited from <a href="google.appengine.ext.webapp.html#RequestHandler">google.appengine.ext.webapp.RequestHandler</a>:<br> |
| 804 | <dl><dt><a name="OAuth2Handler-get_url"><strong>get_url</strong></a>(cls, *args, **kargs)<font color="#909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Returns the url for the given handler.<br> |
| 805 | <br> |
| 806 | The default implementation uses the patterns passed to the active<br> |
| 807 | WSGIApplication to create a url. However, it is different from Django's<br> |
| 808 | urlresolvers.reverse() in the following ways:<br> |
| 809 | - It does not try to resolve handlers via module loading<br> |
| 810 | - It does not support named arguments<br> |
| 811 | - It performs some post-prosessing on the url to remove some regex<br> |
| 812 | operators.<br> |
| 813 | - It will try to fill in the left-most missing arguments with the args<br> |
| 814 | used in the active request.<br> |
| 815 | <br> |
| 816 | Args:<br> |
| 817 | args: Parameters for the url pattern's groups.<br> |
| 818 | kwargs: Optionally contains 'implicit_args' that can either be a boolean<br> |
| 819 | or a tuple. When it is True, it will use the arguments to the<br> |
| 820 | active request as implicit arguments. When it is False (default),<br> |
| 821 | it will not use any implicit arguments. When it is a tuple, it<br> |
| 822 | will use the tuple as the implicit arguments.<br> |
| 823 | the left-most args if some are missing from args.<br> |
| 824 | <br> |
| 825 | Returns:<br> |
| 826 | The url for this handler/args combination.<br> |
| 827 | <br> |
| 828 | Raises:<br> |
| 829 | NoUrlFoundError: No url pattern for this handler has the same<br> |
| 830 | number of args that were passed in.</tt></dd></dl> |
| 831 | |
| 832 | <dl><dt><a name="OAuth2Handler-new_factory"><strong>new_factory</strong></a>(cls, *args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="__builtin__.html#type">__builtin__.type</a></font></font></dt><dd><tt>Create new request handler factory.<br> |
| 833 | <br> |
| 834 | Use factory method to create reusable request handlers that just<br> |
| 835 | require a few configuration parameters to construct. Also useful<br> |
| 836 | for injecting shared state between multiple request handler<br> |
| 837 | instances without relying on global variables. For example, to<br> |
| 838 | create a set of post handlers that will do simple text transformations<br> |
| 839 | you can write:<br> |
| 840 | <br> |
| 841 | class ChangeTextHandler(webapp.<a href="google.appengine.ext.webapp.html#RequestHandler">RequestHandler</a>):<br> |
| 842 | <br> |
| 843 | def <a href="#OAuth2Handler-__init__">__init__</a>(self, transform):<br> |
| 844 | self.<strong>transform</strong> = transform<br> |
| 845 | <br> |
| 846 | def <a href="#OAuth2Handler-post">post</a>(self):<br> |
| 847 | response_text = transform(<br> |
| 848 | self.<strong>request</strong>.request.body_file.getvalue())<br> |
| 849 | self.<strong>response</strong>.out.write(response_text)<br> |
| 850 | <br> |
| 851 | application = webapp.WSGIApplication(<br> |
| 852 | [('/to_lower', ChangeTextHandler.<a href="#OAuth2Handler-new_factory">new_factory</a>(str.lower)),<br> |
| 853 | ('/to_upper', ChangeTextHandler.<a href="#OAuth2Handler-new_factory">new_factory</a>(str.upper)),<br> |
| 854 | ],<br> |
| 855 | debug=True)<br> |
| 856 | <br> |
| 857 | Text POSTed to /to_lower will be lower cased.<br> |
| 858 | Text POSTed to /to_upper will be upper cased.</tt></dd></dl> |
| 859 | |
| 860 | <hr> |
| 861 | Data descriptors inherited from <a href="google.appengine.ext.webapp.html#RequestHandler">google.appengine.ext.webapp.RequestHandler</a>:<br> |
| 862 | <dl><dt><strong>__dict__</strong></dt> |
| 863 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 864 | </dl> |
| 865 | <dl><dt><strong>__weakref__</strong></dt> |
| 866 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 867 | </dl> |
| 868 | </td></tr></table> <p> |
| 869 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 870 | <tr bgcolor="#ffc8d8"> |
| 871 | <td colspan=3 valign=bottom> <br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 872 | <font color="#000000" face="helvetica, arial"><a name="StorageByKeyName">class <strong>StorageByKeyName</strong></a>(<a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>)</font></td></tr> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 873 | |
| 874 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 875 | <td colspan=2><tt>Store and retrieve a single credential to and from<br> |
| 876 | the App Engine datastore.<br> |
| 877 | <br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 878 | This <a href="oauth2client.client.html#Storage">Storage</a> helper presumes the Credentials<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 879 | have been stored as a CredenialsProperty<br> |
| 880 | on a datastore model class, and that entities<br> |
| 881 | are stored by key_name.<br> </tt></td></tr> |
| 882 | <tr><td> </td> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 883 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 884 | <dd><a href="oauth2client.appengine.html#StorageByKeyName">StorageByKeyName</a></dd> |
| 885 | <dd><a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a></dd> |
| 886 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 887 | </dl> |
| 888 | <hr> |
| 889 | Methods defined here:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 890 | <dl><dt><a name="StorageByKeyName-__init__"><strong>__init__</strong></a>(self, model, key_name, property_name, cache<font color="#909090">=None</font>)</dt><dd><tt>Constructor for <a href="oauth2client.client.html#Storage">Storage</a>.<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 891 | <br> |
| 892 | Args:<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 893 | model: db.<a href="google.appengine.ext.db.html#Model">Model</a>, model class<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 894 | key_name: string, key name for the entity that has the credentials<br> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 895 | property_name: string, name of the property that is a <a href="#CredentialsProperty">CredentialsProperty</a><br> |
| 896 | cache: memcache, a write-through cache to put in front of the datastore</tt></dd></dl> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 897 | |
| 898 | <dl><dt><a name="StorageByKeyName-get"><strong>get</strong></a>(self)</dt><dd><tt>Retrieve Credential from datastore.<br> |
| 899 | <br> |
| 900 | Returns:<br> |
| 901 | oauth2client.Credentials</tt></dd></dl> |
| 902 | |
| 903 | <dl><dt><a name="StorageByKeyName-put"><strong>put</strong></a>(self, credentials)</dt><dd><tt>Write a Credentials to the datastore.<br> |
| 904 | <br> |
| 905 | Args:<br> |
| 906 | credentials: Credentials, the credentials to store.</tt></dd></dl> |
| 907 | |
| 908 | <hr> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 909 | Data descriptors inherited from <a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>:<br> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 910 | <dl><dt><strong>__dict__</strong></dt> |
| 911 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 912 | </dl> |
| 913 | <dl><dt><strong>__weakref__</strong></dt> |
| 914 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 915 | </dl> |
| 916 | </td></tr></table></td></tr></table><p> |
| 917 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 918 | <tr bgcolor="#eeaa77"> |
| 919 | <td colspan=3 valign=bottom> <br> |
| 920 | <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> |
| 921 | |
| 922 | <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> |
| 923 | <td width="100%"><dl><dt><a name="-main"><strong>main</strong></a>()</dt></dl> |
| 924 | </td></tr></table><p> |
| 925 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 926 | <tr bgcolor="#55aa55"> |
| 927 | <td colspan=3 valign=bottom> <br> |
| 928 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
| 929 | |
| 930 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
Joe Gregorio | 90e7ec2 | 2011-07-06 10:09:20 -0400 | [diff] [blame^] | 931 | <td width="100%"><strong>OAUTH2CLIENT_NAMESPACE</strong> = 'oauth2client#ns'<br> |
| 932 | <strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'<br> |
| 933 | <strong>application</strong> = <google.appengine.ext.webapp.WSGIApplication object></td></tr></table><p> |
Joe Gregorio | 6e53703 | 2011-02-09 23:04:26 -0500 | [diff] [blame] | 934 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 935 | <tr bgcolor="#7799ee"> |
| 936 | <td colspan=3 valign=bottom> <br> |
| 937 | <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> |
| 938 | |
| 939 | <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> |
| 940 | <td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table> |
| 941 | </body></html> |