Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 1 | |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 3 | <html><head><title>Python: module oauth2client.django_orm</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>.django_orm</strong></big></big></font></td |
| 10 | ><td align=right valign=bottom |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/jcgregorio/projects/apiclient-release/oauth2client/django_orm.py">/home/jcgregorio/projects/apiclient-release/oauth2client/django_orm.py</a></font></td></tr></table> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 12 | <p><tt>OAuth 2.0 utilities for Django.<br> |
| 13 | <br> |
| 14 | Utilities for using OAuth 2.0 in conjunction with<br> |
| 15 | the Django datastore.</tt></p> |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 16 | <p> |
| 17 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 18 | <tr bgcolor="#aa55cc"> |
| 19 | <td colspan=3 valign=bottom> <br> |
| 20 | <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
| 21 | |
| 22 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 23 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="base64.html">base64</a><br> |
| 24 | </td><td width="25%" valign=top><a href="django.db.models.html">django.db.models</a><br> |
| 25 | </td><td width="25%" valign=top><a href="oauth2client.html">oauth2client</a><br> |
| 26 | </td><td width="25%" valign=top><a href="pickle.html">pickle</a><br> |
| 27 | </td></tr></table></td></tr></table><p> |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 28 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 29 | <tr bgcolor="#ee77aa"> |
| 30 | <td colspan=3 valign=bottom> <br> |
| 31 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
| 32 | |
| 33 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
| 34 | <td width="100%"><dl> |
| 35 | <dt><font face="helvetica, arial"><a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>(<a href="__builtin__.html#object">__builtin__.object</a>) |
| 36 | </font></dt><dd> |
| 37 | <dl> |
| 38 | <dt><font face="helvetica, arial"><a href="oauth2client.django_orm.html#CredentialsField">CredentialsField</a> |
| 39 | </font></dt><dt><font face="helvetica, arial"><a href="oauth2client.django_orm.html#FlowField">FlowField</a> |
| 40 | </font></dt></dl> |
| 41 | </dd> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 42 | <dt><font face="helvetica, arial"><a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>(<a href="__builtin__.html#object">__builtin__.object</a>) |
| 43 | </font></dt><dd> |
| 44 | <dl> |
| 45 | <dt><font face="helvetica, arial"><a href="oauth2client.django_orm.html#Storage">Storage</a> |
| 46 | </font></dt></dl> |
| 47 | </dd> |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 48 | </dl> |
| 49 | <p> |
| 50 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 51 | <tr bgcolor="#ffc8d8"> |
| 52 | <td colspan=3 valign=bottom> <br> |
| 53 | <font color="#000000" face="helvetica, arial"><a name="CredentialsField">class <strong>CredentialsField</strong></a>(<a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>)</font></td></tr> |
| 54 | |
| 55 | <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
| 56 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 57 | <dd><a href="oauth2client.django_orm.html#CredentialsField">CredentialsField</a></dd> |
| 58 | <dd><a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a></dd> |
| 59 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 60 | </dl> |
| 61 | <hr> |
| 62 | Methods defined here:<br> |
| 63 | <dl><dt><a name="CredentialsField-contribute_to_class"><strong>contribute_to_class</strong></a>(self, cls, name)</dt></dl> |
| 64 | |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 65 | <dl><dt><a name="CredentialsField-get_db_prep_value"><strong>get_db_prep_value</strong></a>(self, value, connection, prepared<font color="#909090">=False</font>)</dt></dl> |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 66 | |
| 67 | <dl><dt><a name="CredentialsField-get_internal_type"><strong>get_internal_type</strong></a>(self)</dt></dl> |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 68 | |
| 69 | <dl><dt><a name="CredentialsField-to_python"><strong>to_python</strong></a>(self, value)</dt></dl> |
| 70 | |
| 71 | <hr> |
| 72 | Data and other attributes defined here:<br> |
| 73 | <dl><dt><strong>__metaclass__</strong> = <class 'django.db.models.fields.subclassing.SubfieldBase'><dd><tt>A metaclass for custom <a href="django.db.models.fields.html#Field">Field</a> subclasses. This ensures the model's attribute<br> |
| 74 | has the descriptor protocol attached to it.</tt></dl> |
| 75 | |
| 76 | <hr> |
| 77 | Methods inherited from <a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>:<br> |
| 78 | <dl><dt><a name="CredentialsField-__cmp__"><strong>__cmp__</strong></a>(self, other)</dt></dl> |
| 79 | |
| 80 | <dl><dt><a name="CredentialsField-__deepcopy__"><strong>__deepcopy__</strong></a>(self, memodict)</dt></dl> |
| 81 | |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 82 | <dl><dt><a name="CredentialsField-__init__"><strong>__init__</strong></a>(self, verbose_name<font color="#909090">=None</font>, name<font color="#909090">=None</font>, primary_key<font color="#909090">=False</font>, max_length<font color="#909090">=None</font>, unique<font color="#909090">=False</font>, blank<font color="#909090">=False</font>, null<font color="#909090">=False</font>, db_index<font color="#909090">=False</font>, rel<font color="#909090">=None</font>, default<font color="#909090">=<class django.db.models.fields.NOT_PROVIDED></font>, editable<font color="#909090">=True</font>, serialize<font color="#909090">=True</font>, unique_for_date<font color="#909090">=None</font>, unique_for_month<font color="#909090">=None</font>, unique_for_year<font color="#909090">=None</font>, choices<font color="#909090">=None</font>, help_text<font color="#909090">=''</font>, db_column<font color="#909090">=None</font>, db_tablespace<font color="#909090">=None</font>, auto_created<font color="#909090">=False</font>)</dt></dl> |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 83 | |
| 84 | <dl><dt><a name="CredentialsField-bind"><strong>bind</strong></a>(self, fieldmapping, original, bound_field_class)</dt></dl> |
| 85 | |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 86 | <dl><dt><a name="CredentialsField-db_type"><strong>db_type</strong></a>(self)</dt><dd><tt>Returns the database column data type for this field, taking into<br> |
| 87 | account the DATABASE_ENGINE setting.</tt></dd></dl> |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 88 | |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 89 | <dl><dt><a name="CredentialsField-formfield"><strong>formfield</strong></a>(self, form_class<font color="#909090">=<class 'django.forms.fields.CharField'></font>, **kwargs)</dt><dd><tt>Returns a django.forms.<a href="django.db.models.fields.html#Field">Field</a> instance for this database <a href="django.db.models.fields.html#Field">Field</a>.</tt></dd></dl> |
| 90 | |
| 91 | <dl><dt><a name="CredentialsField-get_attname"><strong>get_attname</strong></a>(self)</dt></dl> |
| 92 | |
| 93 | <dl><dt><a name="CredentialsField-get_attname_column"><strong>get_attname_column</strong></a>(self)</dt></dl> |
| 94 | |
| 95 | <dl><dt><a name="CredentialsField-get_cache_name"><strong>get_cache_name</strong></a>(self)</dt></dl> |
| 96 | |
| 97 | <dl><dt><a name="CredentialsField-get_choices"><strong>get_choices</strong></a>(self, include_blank<font color="#909090">=True</font>, blank_choice<font color="#909090">=[('', '---------')]</font>)</dt><dd><tt>Returns choices with a default blank choices included, for use<br> |
| 98 | as SelectField choices for this field.</tt></dd></dl> |
| 99 | |
| 100 | <dl><dt><a name="CredentialsField-get_choices_default"><strong>get_choices_default</strong></a>(self)</dt></dl> |
| 101 | |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 102 | <dl><dt><a name="CredentialsField-get_db_prep_lookup"><strong>get_db_prep_lookup</strong></a>(self, lookup_type, value)</dt><dd><tt>Returns field's value prepared for database lookup.</tt></dd></dl> |
| 103 | |
| 104 | <dl><dt><a name="CredentialsField-get_db_prep_save"><strong>get_db_prep_save</strong></a>(self, value)</dt><dd><tt>Returns field's value prepared for saving into a database.</tt></dd></dl> |
| 105 | |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 106 | <dl><dt><a name="CredentialsField-get_default"><strong>get_default</strong></a>(self)</dt><dd><tt>Returns the default value for this field.</tt></dd></dl> |
| 107 | |
| 108 | <dl><dt><a name="CredentialsField-get_flatchoices"><strong>get_flatchoices</strong></a>(self, include_blank<font color="#909090">=True</font>, blank_choice<font color="#909090">=[('', '---------')]</font>)</dt><dd><tt>Returns flattened choices with a default blank choice included.</tt></dd></dl> |
| 109 | |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 110 | <dl><dt><a name="CredentialsField-get_validator_unique_lookup_type"><strong>get_validator_unique_lookup_type</strong></a>(self)</dt></dl> |
| 111 | |
| 112 | <dl><dt><a name="CredentialsField-has_default"><strong>has_default</strong></a>(self)</dt><dd><tt>Returns a boolean of whether this field has a default value.</tt></dd></dl> |
| 113 | |
| 114 | <dl><dt><a name="CredentialsField-pre_save"><strong>pre_save</strong></a>(self, model_instance, add)</dt><dd><tt>Returns field's value just before saving.</tt></dd></dl> |
| 115 | |
| 116 | <dl><dt><a name="CredentialsField-save_form_data"><strong>save_form_data</strong></a>(self, instance, data)</dt></dl> |
| 117 | |
| 118 | <dl><dt><a name="CredentialsField-set_attributes_from_name"><strong>set_attributes_from_name</strong></a>(self, name)</dt></dl> |
| 119 | |
| 120 | <dl><dt><a name="CredentialsField-value_from_object"><strong>value_from_object</strong></a>(self, obj)</dt><dd><tt>Returns the value of this field in the given model instance.</tt></dd></dl> |
| 121 | |
| 122 | <dl><dt><a name="CredentialsField-value_to_string"><strong>value_to_string</strong></a>(self, obj)</dt><dd><tt>Returns a string value of this field from the passed obj.<br> |
| 123 | This is used by the serialization framework.</tt></dd></dl> |
| 124 | |
| 125 | <hr> |
| 126 | Data descriptors inherited from <a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>:<br> |
| 127 | <dl><dt><strong>__dict__</strong></dt> |
| 128 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 129 | </dl> |
| 130 | <dl><dt><strong>__weakref__</strong></dt> |
| 131 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 132 | </dl> |
| 133 | <dl><dt><strong>choices</strong></dt> |
| 134 | </dl> |
| 135 | <dl><dt><strong>flatchoices</strong></dt> |
| 136 | <dd><tt>Flattened version of choices tuple.</tt></dd> |
| 137 | </dl> |
| 138 | <dl><dt><strong>unique</strong></dt> |
| 139 | </dl> |
| 140 | <hr> |
| 141 | Data and other attributes inherited from <a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>:<br> |
| 142 | <dl><dt><strong>auto_creation_counter</strong> = -1</dl> |
| 143 | |
| 144 | <dl><dt><strong>creation_counter</strong> = 0</dl> |
| 145 | |
| 146 | <dl><dt><strong>empty_strings_allowed</strong> = True</dl> |
| 147 | |
| 148 | </td></tr></table> <p> |
| 149 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 150 | <tr bgcolor="#ffc8d8"> |
| 151 | <td colspan=3 valign=bottom> <br> |
| 152 | <font color="#000000" face="helvetica, arial"><a name="FlowField">class <strong>FlowField</strong></a>(<a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>)</font></td></tr> |
| 153 | |
| 154 | <tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td> |
| 155 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 156 | <dd><a href="oauth2client.django_orm.html#FlowField">FlowField</a></dd> |
| 157 | <dd><a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a></dd> |
| 158 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 159 | </dl> |
| 160 | <hr> |
| 161 | Methods defined here:<br> |
| 162 | <dl><dt><a name="FlowField-contribute_to_class"><strong>contribute_to_class</strong></a>(self, cls, name)</dt></dl> |
| 163 | |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 164 | <dl><dt><a name="FlowField-get_db_prep_value"><strong>get_db_prep_value</strong></a>(self, value, connection, prepared<font color="#909090">=False</font>)</dt></dl> |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 165 | |
| 166 | <dl><dt><a name="FlowField-get_internal_type"><strong>get_internal_type</strong></a>(self)</dt></dl> |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 167 | |
| 168 | <dl><dt><a name="FlowField-to_python"><strong>to_python</strong></a>(self, value)</dt></dl> |
| 169 | |
| 170 | <hr> |
| 171 | Data and other attributes defined here:<br> |
| 172 | <dl><dt><strong>__metaclass__</strong> = <class 'django.db.models.fields.subclassing.SubfieldBase'><dd><tt>A metaclass for custom <a href="django.db.models.fields.html#Field">Field</a> subclasses. This ensures the model's attribute<br> |
| 173 | has the descriptor protocol attached to it.</tt></dl> |
| 174 | |
| 175 | <hr> |
| 176 | Methods inherited from <a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>:<br> |
| 177 | <dl><dt><a name="FlowField-__cmp__"><strong>__cmp__</strong></a>(self, other)</dt></dl> |
| 178 | |
| 179 | <dl><dt><a name="FlowField-__deepcopy__"><strong>__deepcopy__</strong></a>(self, memodict)</dt></dl> |
| 180 | |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 181 | <dl><dt><a name="FlowField-__init__"><strong>__init__</strong></a>(self, verbose_name<font color="#909090">=None</font>, name<font color="#909090">=None</font>, primary_key<font color="#909090">=False</font>, max_length<font color="#909090">=None</font>, unique<font color="#909090">=False</font>, blank<font color="#909090">=False</font>, null<font color="#909090">=False</font>, db_index<font color="#909090">=False</font>, rel<font color="#909090">=None</font>, default<font color="#909090">=<class django.db.models.fields.NOT_PROVIDED></font>, editable<font color="#909090">=True</font>, serialize<font color="#909090">=True</font>, unique_for_date<font color="#909090">=None</font>, unique_for_month<font color="#909090">=None</font>, unique_for_year<font color="#909090">=None</font>, choices<font color="#909090">=None</font>, help_text<font color="#909090">=''</font>, db_column<font color="#909090">=None</font>, db_tablespace<font color="#909090">=None</font>, auto_created<font color="#909090">=False</font>)</dt></dl> |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 182 | |
| 183 | <dl><dt><a name="FlowField-bind"><strong>bind</strong></a>(self, fieldmapping, original, bound_field_class)</dt></dl> |
| 184 | |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 185 | <dl><dt><a name="FlowField-db_type"><strong>db_type</strong></a>(self)</dt><dd><tt>Returns the database column data type for this field, taking into<br> |
| 186 | account the DATABASE_ENGINE setting.</tt></dd></dl> |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 187 | |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 188 | <dl><dt><a name="FlowField-formfield"><strong>formfield</strong></a>(self, form_class<font color="#909090">=<class 'django.forms.fields.CharField'></font>, **kwargs)</dt><dd><tt>Returns a django.forms.<a href="django.db.models.fields.html#Field">Field</a> instance for this database <a href="django.db.models.fields.html#Field">Field</a>.</tt></dd></dl> |
| 189 | |
| 190 | <dl><dt><a name="FlowField-get_attname"><strong>get_attname</strong></a>(self)</dt></dl> |
| 191 | |
| 192 | <dl><dt><a name="FlowField-get_attname_column"><strong>get_attname_column</strong></a>(self)</dt></dl> |
| 193 | |
| 194 | <dl><dt><a name="FlowField-get_cache_name"><strong>get_cache_name</strong></a>(self)</dt></dl> |
| 195 | |
| 196 | <dl><dt><a name="FlowField-get_choices"><strong>get_choices</strong></a>(self, include_blank<font color="#909090">=True</font>, blank_choice<font color="#909090">=[('', '---------')]</font>)</dt><dd><tt>Returns choices with a default blank choices included, for use<br> |
| 197 | as SelectField choices for this field.</tt></dd></dl> |
| 198 | |
| 199 | <dl><dt><a name="FlowField-get_choices_default"><strong>get_choices_default</strong></a>(self)</dt></dl> |
| 200 | |
Joe Gregorio | 2401bd6 | 2011-12-15 09:18:49 -0500 | [diff] [blame] | 201 | <dl><dt><a name="FlowField-get_db_prep_lookup"><strong>get_db_prep_lookup</strong></a>(self, lookup_type, value)</dt><dd><tt>Returns field's value prepared for database lookup.</tt></dd></dl> |
| 202 | |
| 203 | <dl><dt><a name="FlowField-get_db_prep_save"><strong>get_db_prep_save</strong></a>(self, value)</dt><dd><tt>Returns field's value prepared for saving into a database.</tt></dd></dl> |
| 204 | |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 205 | <dl><dt><a name="FlowField-get_default"><strong>get_default</strong></a>(self)</dt><dd><tt>Returns the default value for this field.</tt></dd></dl> |
| 206 | |
| 207 | <dl><dt><a name="FlowField-get_flatchoices"><strong>get_flatchoices</strong></a>(self, include_blank<font color="#909090">=True</font>, blank_choice<font color="#909090">=[('', '---------')]</font>)</dt><dd><tt>Returns flattened choices with a default blank choice included.</tt></dd></dl> |
| 208 | |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 209 | <dl><dt><a name="FlowField-get_validator_unique_lookup_type"><strong>get_validator_unique_lookup_type</strong></a>(self)</dt></dl> |
| 210 | |
| 211 | <dl><dt><a name="FlowField-has_default"><strong>has_default</strong></a>(self)</dt><dd><tt>Returns a boolean of whether this field has a default value.</tt></dd></dl> |
| 212 | |
| 213 | <dl><dt><a name="FlowField-pre_save"><strong>pre_save</strong></a>(self, model_instance, add)</dt><dd><tt>Returns field's value just before saving.</tt></dd></dl> |
| 214 | |
| 215 | <dl><dt><a name="FlowField-save_form_data"><strong>save_form_data</strong></a>(self, instance, data)</dt></dl> |
| 216 | |
| 217 | <dl><dt><a name="FlowField-set_attributes_from_name"><strong>set_attributes_from_name</strong></a>(self, name)</dt></dl> |
| 218 | |
| 219 | <dl><dt><a name="FlowField-value_from_object"><strong>value_from_object</strong></a>(self, obj)</dt><dd><tt>Returns the value of this field in the given model instance.</tt></dd></dl> |
| 220 | |
| 221 | <dl><dt><a name="FlowField-value_to_string"><strong>value_to_string</strong></a>(self, obj)</dt><dd><tt>Returns a string value of this field from the passed obj.<br> |
| 222 | This is used by the serialization framework.</tt></dd></dl> |
| 223 | |
| 224 | <hr> |
| 225 | Data descriptors inherited from <a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>:<br> |
| 226 | <dl><dt><strong>__dict__</strong></dt> |
| 227 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 228 | </dl> |
| 229 | <dl><dt><strong>__weakref__</strong></dt> |
| 230 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 231 | </dl> |
| 232 | <dl><dt><strong>choices</strong></dt> |
| 233 | </dl> |
| 234 | <dl><dt><strong>flatchoices</strong></dt> |
| 235 | <dd><tt>Flattened version of choices tuple.</tt></dd> |
| 236 | </dl> |
| 237 | <dl><dt><strong>unique</strong></dt> |
| 238 | </dl> |
| 239 | <hr> |
| 240 | Data and other attributes inherited from <a href="django.db.models.fields.html#Field">django.db.models.fields.Field</a>:<br> |
| 241 | <dl><dt><strong>auto_creation_counter</strong> = -1</dl> |
| 242 | |
| 243 | <dl><dt><strong>creation_counter</strong> = 0</dl> |
| 244 | |
| 245 | <dl><dt><strong>empty_strings_allowed</strong> = True</dl> |
| 246 | |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 247 | </td></tr></table> <p> |
| 248 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 249 | <tr bgcolor="#ffc8d8"> |
| 250 | <td colspan=3 valign=bottom> <br> |
| 251 | <font color="#000000" face="helvetica, arial"><a name="Storage">class <strong>Storage</strong></a>(<a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>)</font></td></tr> |
| 252 | |
| 253 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
| 254 | <td colspan=2><tt>Store and retrieve a single credential to and from<br> |
| 255 | the datastore.<br> |
| 256 | <br> |
| 257 | This <a href="#Storage">Storage</a> helper presumes the Credentials<br> |
| 258 | have been stored as a CredenialsField<br> |
| 259 | on a db model class.<br> </tt></td></tr> |
| 260 | <tr><td> </td> |
| 261 | <td width="100%"><dl><dt>Method resolution order:</dt> |
| 262 | <dd><a href="oauth2client.django_orm.html#Storage">Storage</a></dd> |
| 263 | <dd><a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a></dd> |
| 264 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
| 265 | </dl> |
| 266 | <hr> |
| 267 | Methods defined here:<br> |
| 268 | <dl><dt><a name="Storage-__init__"><strong>__init__</strong></a>(self, model_class, key_name, key_value, property_name)</dt><dd><tt>Constructor for <a href="#Storage">Storage</a>.<br> |
| 269 | <br> |
| 270 | Args:<br> |
| 271 | model: db.Model, model class<br> |
| 272 | key_name: string, key name for the entity that has the credentials<br> |
| 273 | key_value: string, key value for the entity that has the credentials<br> |
| 274 | property_name: string, name of the property that is an CredentialsProperty</tt></dd></dl> |
| 275 | |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 276 | <dl><dt><a name="Storage-locked_get"><strong>locked_get</strong></a>(self)</dt><dd><tt>Retrieve Credential from datastore.<br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 277 | <br> |
| 278 | Returns:<br> |
| 279 | oauth2client.Credentials</tt></dd></dl> |
| 280 | |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 281 | <dl><dt><a name="Storage-locked_put"><strong>locked_put</strong></a>(self, credentials)</dt><dd><tt>Write a Credentials to the datastore.<br> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 282 | <br> |
| 283 | Args:<br> |
| 284 | credentials: Credentials, the credentials to store.</tt></dd></dl> |
| 285 | |
| 286 | <hr> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 287 | Methods inherited from <a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>:<br> |
| 288 | <dl><dt><a name="Storage-acquire_lock"><strong>acquire_lock</strong></a>(self)</dt><dd><tt>Acquires any lock necessary to access this <a href="#Storage">Storage</a>.<br> |
| 289 | <br> |
| 290 | This lock is not reentrant.</tt></dd></dl> |
| 291 | |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 292 | <dl><dt><a name="Storage-get"><strong>get</strong></a>(self)</dt><dd><tt>Retrieve credential.<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 293 | <br> |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 294 | The <a href="#Storage">Storage</a> lock must *not* be held when this is called.<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 295 | <br> |
| 296 | Returns:<br> |
| 297 | oauth2client.client.Credentials</tt></dd></dl> |
| 298 | |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 299 | <dl><dt><a name="Storage-put"><strong>put</strong></a>(self, credentials)</dt><dd><tt>Write a credential.<br> |
Joe Gregorio | a845167 | 2011-09-15 09:53:21 -0400 | [diff] [blame] | 300 | <br> |
| 301 | The <a href="#Storage">Storage</a> lock must be held when this is called.<br> |
| 302 | <br> |
| 303 | Args:<br> |
| 304 | credentials: Credentials, the credentials to store.</tt></dd></dl> |
| 305 | |
| 306 | <dl><dt><a name="Storage-release_lock"><strong>release_lock</strong></a>(self)</dt><dd><tt>Release the <a href="#Storage">Storage</a> lock.<br> |
| 307 | <br> |
| 308 | Trying to release a lock that isn't held will result in a<br> |
| 309 | RuntimeError.</tt></dd></dl> |
| 310 | |
| 311 | <hr> |
Joe Gregorio | 3b79fa8 | 2011-02-17 11:47:17 -0500 | [diff] [blame] | 312 | Data descriptors inherited from <a href="oauth2client.client.html#Storage">oauth2client.client.Storage</a>:<br> |
| 313 | <dl><dt><strong>__dict__</strong></dt> |
| 314 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
| 315 | </dl> |
| 316 | <dl><dt><strong>__weakref__</strong></dt> |
| 317 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
| 318 | </dl> |
| 319 | </td></tr></table></td></tr></table><p> |
| 320 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 321 | <tr bgcolor="#55aa55"> |
| 322 | <td colspan=3 valign=bottom> <br> |
| 323 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
| 324 | |
| 325 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
| 326 | <td width="100%"><strong>__author__</strong> = 'jcgregorio@google.com (Joe Gregorio)'</td></tr></table><p> |
| 327 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
| 328 | <tr bgcolor="#7799ee"> |
| 329 | <td colspan=3 valign=bottom> <br> |
| 330 | <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> |
| 331 | |
| 332 | <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> |
| 333 | <td width="100%">jcgregorio@google.com (Joe Gregorio)</td></tr></table> |
Joe Gregorio | ded54c5 | 2011-02-11 20:36:10 -0500 | [diff] [blame] | 334 | </body></html> |