Docs for SQLDB.fromkeys.__self__

[ Python Tutorial ] [ Python Libraries ] [ web2py epydoc ]

Description


<type 'type'> extends (<class 'gluon.sql.SQLStorage'>,)


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

an instance of this class represents a database connection

Example:

db=SQLDB('sqlite://test.db')
db.define_table('tablename',SQLField('fieldname1'),
SQLField('fieldname2'))



Attributes


SQLDB.fromkeys.__self__.Field <type 'type'> extends (<class 'gluon.sql.SQLXorable'>,) belongs to class <type 'type'>
an instance of this class represents a database field example: a=SQLField(name,'string',length=32,required=False,default=None,requires=IS_NOT_EMPTY(),notnull=False,unique=False,uploadfield=None,widget=None,label=None) to be used as argument of SQLDB.define_table allowed field types: string, boolean, integer, double, text, blob, date, time, datetime, upload, password strings must have a length or 32 by default. fields should have a default or they will be required in SQLFORMs the requires argument are used to validate the field input in SQLFORMs

SQLDB.fromkeys.__self__.__call__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.__class__ <type 'type'> extends (<type 'object'>,) belongs to class <type 'type'>
type(object) -> the object's type type(name, bases, dict) -> a new type

SQLDB.fromkeys.__self__.__cmp__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__cmp__(y) <==> cmp(x,y)

SQLDB.fromkeys.__self__.__contains__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.__contains__(k) -> True if D has a key k, else False

SQLDB.fromkeys.__self__.__delattr__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__delattr__('name') <==> del x.name

SQLDB.fromkeys.__self__.__delitem__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__delitem__(y) <==> del x[y]

SQLDB.fromkeys.__self__.__dict__ <type 'dictproxy'> belongs to class <type 'dictproxy'>

SQLDB.fromkeys.__self__.__doc__ <type 'str'> belongs to class <type 'str'>
str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

SQLDB.fromkeys.__self__.__eq__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__eq__(y) <==> x==y

SQLDB.fromkeys.__self__.__ge__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__ge__(y) <==> x>=y

SQLDB.fromkeys.__self__.__getattr__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.__getattribute__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__getattribute__('name') <==> x.name

SQLDB.fromkeys.__self__.__getitem__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
x.__getitem__(y) <==> x[y]

SQLDB.fromkeys.__self__.__getstate__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.__gt__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__gt__(y) <==> x>y

SQLDB.fromkeys.__self__.__hash__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__hash__() <==> hash(x)

SQLDB.fromkeys.__self__.__init__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.__iter__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__iter__() <==> iter(x)

SQLDB.fromkeys.__self__.__le__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__le__(y) <==> x<=y

SQLDB.fromkeys.__self__.__len__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__len__() <==> len(x)

SQLDB.fromkeys.__self__.__lt__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__lt__(y) <==> x<y

SQLDB.fromkeys.__self__.__module__ <type 'str'> belongs to class <type 'str'>
str(object) -> string Return a nice string representation of the object. If the argument is a string, the return value is the same object.

SQLDB.fromkeys.__self__.__ne__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__ne__(y) <==> x!=y

SQLDB.fromkeys.__self__.__new__ <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
T.__new__(S, ...) -> a new object with type S, a subtype of T

SQLDB.fromkeys.__self__.__reduce__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
helper for pickle

SQLDB.fromkeys.__self__.__reduce_ex__ <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
helper for pickle

SQLDB.fromkeys.__self__.__repr__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.__setattr__ <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.__setitem__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__setitem__(i, y) <==> x[i]=y

SQLDB.fromkeys.__self__.__str__ <type 'wrapper_descriptor'> belongs to class <type 'wrapper_descriptor'>
x.__str__() <==> str(x)

SQLDB.fromkeys.__self__.__weakref__ <type 'getset_descriptor'> belongs to class <type 'getset_descriptor'>
list of weak references to the object (if defined)

SQLDB.fromkeys.__self__._connection_pools <type 'dict'> belongs to class <type 'dict'>
dict() -> new empty dictionary. dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs. dict(seq) -> new dictionary initialized as if via: d = {} for k, v in seq: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

SQLDB.fromkeys.__self__._folders <type 'dict'> belongs to class <type 'dict'>
dict() -> new empty dictionary. dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs. dict(seq) -> new dictionary initialized as if via: d = {} for k, v in seq: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

SQLDB.fromkeys.__self__._instances <type 'dict'> belongs to class <type 'dict'>
dict() -> new empty dictionary. dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs. dict(seq) -> new dictionary initialized as if via: d = {} for k, v in seq: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

SQLDB.fromkeys.__self__._pool_connection <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__._set_thread_folder <type 'function'> belongs to class <type 'function'>

SQLDB.fromkeys.__self__._update_referenced_by <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.clear <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.clear() -> None. Remove all items from D.

SQLDB.fromkeys.__self__.close_all_instances <type 'function'> belongs to class <type 'function'>
to close cleanly databases in a multithreaded environment

SQLDB.fromkeys.__self__.commit <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.copy <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.copy() -> a shallow copy of D

SQLDB.fromkeys.__self__.define_table <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.distributed_transaction_commit <type 'function'> belongs to class <type 'function'>

SQLDB.fromkeys.__self__.executesql <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.fromkeys <type 'builtin_function_or_method'> belongs to class <type 'builtin_function_or_method'>
dict.fromkeys(S[,v]) -> New dict with keys from S and values equal to v. v defaults to None.

SQLDB.fromkeys.__self__.get <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.get(k[,d]) -> D[k] if k in D, else d. d defaults to None.

SQLDB.fromkeys.__self__.has_key <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.has_key(k) -> True if D has a key k, else False

SQLDB.fromkeys.__self__.items <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.items() -> list of D's (key, value) pairs, as 2-tuples

SQLDB.fromkeys.__self__.iteritems <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.iteritems() -> an iterator over the (key, value) items of D

SQLDB.fromkeys.__self__.iterkeys <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.iterkeys() -> an iterator over the keys of D

SQLDB.fromkeys.__self__.itervalues <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.itervalues() -> an iterator over the values of D

SQLDB.fromkeys.__self__.keys <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.keys() -> list of D's keys

SQLDB.fromkeys.__self__.pop <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.pop(k[,d]) -> v, remove specified key and return the corresponding value If key is not found, d is returned if given, otherwise KeyError is raised

SQLDB.fromkeys.__self__.popitem <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.popitem() -> (k, v), remove and return some (key, value) pair as a 2-tuple; but raise KeyError if D is empty

SQLDB.fromkeys.__self__.rollback <type 'instancemethod'> belongs to class <type 'instancemethod'>

SQLDB.fromkeys.__self__.setdefault <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D

SQLDB.fromkeys.__self__.update <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.update(E, **F) -> None. Update D from E and F: for k in E: D[k] = E[k] (if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]

SQLDB.fromkeys.__self__.values <type 'method_descriptor'> belongs to class <type 'method_descriptor'>
D.values() -> list of D's values