apiclient.ext.django_orm
index
/usr/local/google/home/jcgregorio/projects/apiclient/apiclient/ext/django_orm.py

# Copyright (C) 2010 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

 
Modules
       
apiclient
base64
django.db.models
pickle

 
Classes
       
django.db.models.fields.Field(__builtin__.object)
FlowThreeLeggedField
OAuthCredentialsField

 
class FlowThreeLeggedField(django.db.models.fields.Field)
    
Method resolution order:
FlowThreeLeggedField
django.db.models.fields.Field
__builtin__.object

Methods defined here:
contribute_to_class(self, cls, name)
db_type(self)
get_db_prep_value(self, value)
to_python(self, value)

Data and other attributes defined here:
__metaclass__ = <class 'django.db.models.fields.subclassing.SubfieldBase'>
A metaclass for custom Field subclasses. This ensures the model's attribute
has the descriptor protocol attached to it.

Methods inherited from django.db.models.fields.Field:
__cmp__(self, other)
__deepcopy__(self, memodict)
__init__(self, verbose_name=None, name=None, primary_key=False, max_length=None, unique=False, blank=False, null=False, db_index=False, rel=None, default=<class django.db.models.fields.NOT_PROVIDED>, editable=True, serialize=True, unique_for_date=None, unique_for_month=None, unique_for_year=None, choices=None, help_text='', db_column=None, db_tablespace=None, auto_created=False)
bind(self, fieldmapping, original, bound_field_class)
formfield(self, form_class=<class 'django.forms.fields.CharField'>, **kwargs)
Returns a django.forms.Field instance for this database Field.
get_attname(self)
get_attname_column(self)
get_cache_name(self)
get_choices(self, include_blank=True, blank_choice=[('', '---------')])
Returns choices with a default blank choices included, for use
as SelectField choices for this field.
get_choices_default(self)
get_db_prep_lookup(self, lookup_type, value)
Returns field's value prepared for database lookup.
get_db_prep_save(self, value)
Returns field's value prepared for saving into a database.
get_default(self)
Returns the default value for this field.
get_flatchoices(self, include_blank=True, blank_choice=[('', '---------')])
Returns flattened choices with a default blank choice included.
get_internal_type(self)
get_validator_unique_lookup_type(self)
has_default(self)
Returns a boolean of whether this field has a default value.
pre_save(self, model_instance, add)
Returns field's value just before saving.
save_form_data(self, instance, data)
set_attributes_from_name(self, name)
value_from_object(self, obj)
Returns the value of this field in the given model instance.
value_to_string(self, obj)
Returns a string value of this field from the passed obj.
This is used by the serialization framework.

Data descriptors inherited from django.db.models.fields.Field:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
choices
flatchoices
Flattened version of choices tuple.
unique

Data and other attributes inherited from django.db.models.fields.Field:
auto_creation_counter = -1
creation_counter = 0
empty_strings_allowed = True

 
class OAuthCredentialsField(django.db.models.fields.Field)
    
Method resolution order:
OAuthCredentialsField
django.db.models.fields.Field
__builtin__.object

Methods defined here:
contribute_to_class(self, cls, name)
db_type(self)
get_db_prep_value(self, value)
to_python(self, value)

Data and other attributes defined here:
__metaclass__ = <class 'django.db.models.fields.subclassing.SubfieldBase'>
A metaclass for custom Field subclasses. This ensures the model's attribute
has the descriptor protocol attached to it.

Methods inherited from django.db.models.fields.Field:
__cmp__(self, other)
__deepcopy__(self, memodict)
__init__(self, verbose_name=None, name=None, primary_key=False, max_length=None, unique=False, blank=False, null=False, db_index=False, rel=None, default=<class django.db.models.fields.NOT_PROVIDED>, editable=True, serialize=True, unique_for_date=None, unique_for_month=None, unique_for_year=None, choices=None, help_text='', db_column=None, db_tablespace=None, auto_created=False)
bind(self, fieldmapping, original, bound_field_class)
formfield(self, form_class=<class 'django.forms.fields.CharField'>, **kwargs)
Returns a django.forms.Field instance for this database Field.
get_attname(self)
get_attname_column(self)
get_cache_name(self)
get_choices(self, include_blank=True, blank_choice=[('', '---------')])
Returns choices with a default blank choices included, for use
as SelectField choices for this field.
get_choices_default(self)
get_db_prep_lookup(self, lookup_type, value)
Returns field's value prepared for database lookup.
get_db_prep_save(self, value)
Returns field's value prepared for saving into a database.
get_default(self)
Returns the default value for this field.
get_flatchoices(self, include_blank=True, blank_choice=[('', '---------')])
Returns flattened choices with a default blank choice included.
get_internal_type(self)
get_validator_unique_lookup_type(self)
has_default(self)
Returns a boolean of whether this field has a default value.
pre_save(self, model_instance, add)
Returns field's value just before saving.
save_form_data(self, instance, data)
set_attributes_from_name(self, name)
value_from_object(self, obj)
Returns the value of this field in the given model instance.
value_to_string(self, obj)
Returns a string value of this field from the passed obj.
This is used by the serialization framework.

Data descriptors inherited from django.db.models.fields.Field:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
choices
flatchoices
Flattened version of choices tuple.
unique

Data and other attributes inherited from django.db.models.fields.Field:
auto_creation_counter = -1
creation_counter = 0
empty_strings_allowed = True