gdata.sample_util | index /usr/local/google/home/afshar/src/external-gdata-release/google3/src/gdata/sample_util.py

`Provides utility functions used with command line samples.`

Modules

``

gdata | getpass | sys | urllib

Classes

``

__builtin__.object
  SettingsUtil

class SettingsUtil(__builtin__.object)
`` | `Gather's user preferences from flags or command prompts. An instance of this object stores the choices made by the user. At some point it might be useful to save the user's preferences so that they do not need to always set flags or answer preference prompts.`

Methods defined here:

__init__(self, prefs=None)

authorize_client(self, client, auth_type=None, service=None, source=None, scopes=None, oauth_type=None, consumer_key=None, consumer_secret=None)
  `Uses command line arguments, or prompts user for token values.`

get_param(self, name, prompt='', secret=False, ask=True, reuse=False)

Data descriptors defined here:

__dict__
  `dictionary for instance variables (if defined)`

__weakref__
  `list of weak references to the object (if defined)`

Functions

``

authorize_client(client, auth_type=None, service=None, source=None, scopes=None, oauth_type=None, consumer_key=None, consumer_secret=None)
  `Uses command line arguments, or prompts user for token values.`

get_param(name, prompt='', secret=False, ask=True)

print_options()
  `Displays usage information, available command line params.`

Data
`` |  | AUTHSUB = 2 CLIENT_LOGIN = 1 HMAC = 1 OAUTH = 3 RSA = 2 __author__ = 'j.s@google.com (Jeff Scudder)'

Author
`` |  | j.s@google.com (Jeff Scudder)