Shared :: DC :: Scripts :: Script :: Script :: _Bindings_ns_class :: Class _Bindings_ns_class
[hide private]
[frames] | no frames]

Class _Bindings_ns_class



         object --+    
                  |    
ExtensionClass.Base --+
                      |
                     Shared.DC.Scripts.Script.Script._Bindings_ns_class

TemplateDict -- Combine multiple mapping objects for lookup

Nested Classes [hide private]
  ArithmeticError
Base class for arithmetic errors.
  AssertionError
Assertion failed.
  AttributeError
Attribute not found.
  DateTime
DateTime objects represent instants in time and provide interfaces for controlling its representation without affecting the absolute value of the object.
  DeprecationWarning
Base class for warnings about deprecated features.
  EOFError
Read beyond end of file.
  EnvironmentError
Base class for I/O related errors.
  Exception
Common base class for all exceptions.
  FloatingPointError
Floating point operation failed.
  FutureWarning
Base class for warnings about constructs that will change semantically in the future.
  IOError
I/O operation failed.
  ImportError
Import can't find module, or can't find name in module.
  IndentationError
Improper indentation.
  IndexError
Sequence index out of range.
  KeyError
Mapping key not found.
  KeyboardInterrupt
Program interrupted by user.
  LookupError
Base class for lookup errors.
  MemoryError
Out of memory.
  NameError
Name not found globally.
  NotImplementedError
Method or function hasn't been implemented yet.
  OSError
OS system call failed.
  OverflowError
Result too large to be represented.
  OverflowWarning
Base class for warnings about numeric overflow.
  PendingDeprecationWarning
Base class for warnings about features which will be deprecated in the future.
  ReferenceError
Weak ref proxy used after referent went away.
  RuntimeError
Unspecified run-time error.
  RuntimeWarning
Base class for warnings about dubious runtime behavior.
  StandardError
Base class for all standard Python exceptions.
  StopIteration
Signal the end from iterator.next().
  SyntaxError
Invalid syntax.
  SyntaxWarning
Base class for warnings about dubious syntax.
  SystemError
Internal error in the Python interpreter.
  SystemExit
Request to exit from the interpreter.
  TabError
Improper mixture of spaces and tabs.
  TypeError
Inappropriate argument type.
  UnboundLocalError
Local name referenced but not bound to a value.
  UnicodeDecodeError
Unicode decoding error.
  UnicodeEncodeError
Unicode encoding error.
  UnicodeError
Unicode related error.
  UnicodeTranslateError
Unicode translation error.
  UserWarning
Base class for warnings generated by user code.
  ValueError
Inappropriate argument value (of correct type).
  Warning
Base class for warning categories.
  ZeroDivisionError
Second argument to a division or modulo operation was zero.
  basestring
Type basestring cannot be instantiated; it is the base for str and unicode.
  bool
bool(x) -> bool
  complex
complex(real[, imag]) -> complex number
  float
float(x) -> floating point number
  int
int(x[, base]) -> integer
  long
long(x[, base]) -> integer
  str
str(object) -> string
  tuple
tuple() -> an empty tuple tuple(sequence) -> tuple initialized from sequence's items
  unicode
unicode(string [, encoding[, errors]]) -> object
  xrange
xrange([start,] stop[, step]) -> xrange object
Instance Methods [hide private]
 
SecurityCalledByExecutable(md)
Return a boolean value indicating if this context was called by an executable
 
SecurityCheckPermission(md, permission, object)
Check whether the security context allows the given permission on the given object.
 
SecurityGetUser(md)
Gen the current authenticated user
 
SecurityValidate(md, inst, parent, name, value)
Validate access.
 
__call__(x, ...)
x(...)
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__getitem__(x, y)
x[y]
 
__init__()
Create a new empty multi-mapping
 
__len__(x)
len(x)
 
__new__(T, S, ...)
Returns: a new object with type S, a subtype of T
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
 
_pop()
Remove and return the last data source added
 
_push(mapping_object)
Add a data source
 
abs(number)
Return the absolute value of the argument.
 
callable(object)
Return whether the object is callable (i.e., some kind of function).
 
chr(i)
Return a string of one character with ordinal i; 0 <= i < 256.
 
cmp(x, y)
Return negative if x<y, zero if x==y, positive if x>y.
 
divmod(x, y)
Return the tuple ((x-x%y)/y, x%y).
 
getattr(...)
 
getitem(key, call=...)
Get a value
 
has_key(key)
Test whether the mapping has the given key
 
hash(object)
Return a hash value for the object.
 
hex(number)
Return the hexadecimal representation of an integer or long integer.
 
id(object)
Return the identity of an object.
 
isinstance(object, class-or-type-or-tuple)
Return whether an object is an instance of a class or of a subclass thereof.
 
issubclass(C, B)
Return whether class C is a subclass (i.e., a derived class) of class B.
 
len(object)
Return the number of items of a sequence or mapping.
 
namespace(self, **kw)
Create a tuple consisting of a single instance whose attributes are provided as keyword arguments.
 
oct(number)
Return the octal representation of an integer or long integer.
 
ord(c)
Return the integer ordinal of a one-character string.
 
pow(x, y, z=...)
With two arguments, equivalent to x**y.
 
range(start=..., stop, step=...)
Return a list containing an arithmetic progression of integers.
 
render(self, v)
Render an object in the way done by the 'name' attribute
 
repr(object)
Return the canonical string representation of the object.
 
round(number, ndigits=...)
Round a number to a given precision in decimal digits (default 0 digits).
 
unichr(i)
Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff.
 
zip(...)
zip(seq1 [, seq2 [...]]) -> [(seq1[0], seq2[0] ...), (...)]

Inherited from ExtensionClass.Base: __getnewargs__, __getstate__, __reduce__, __setstate__

Inherited from object: __hash__, __reduce_ex__, __repr__, __str__

Class Variables [hide private]
  False = False
  None = None
  True = True
  __allow_access_to_unprotected_subobjects__ = 1
  apply = <DocumentTemplate.DT_Util.NotBindable instance at 0x14...
  delattr = <DocumentTemplate.DT_Util.NotBindable instance at 0x...
  dict = <AccessControl.ZopeGuards.GuardedDictType instance at 0...
  enumerate = <DocumentTemplate.DT_Util.NotBindable instance at ...
  filter = <DocumentTemplate.DT_Util.NotBindable instance at 0x1...
  hasattr = <DocumentTemplate.DT_Util.NotBindable instance at 0x...
  iter = <DocumentTemplate.DT_Util.NotBindable instance at 0x146...
  list = <AccessControl.ZopeGuards.GuardedListType instance at 0...
  map = <DocumentTemplate.DT_Util.NotBindable instance at 0x1465...
  math
This module is always available.
  max = <DocumentTemplate.DT_Util.NotBindable instance at 0x149a...
  min = <DocumentTemplate.DT_Util.NotBindable instance at 0x1465...
  random
Random variable generators.
  reduce = <DocumentTemplate.DT_Util.NotBindable instance at 0x1...
  reorder = <DocumentTemplate.DT_Util.NotBindable instance at 0x...
  same_type = <DocumentTemplate.DT_Util.NotBindable instance at ...
  sequence
  setattr = <DocumentTemplate.DT_Util.NotBindable instance at 0x...
  string
A collection of string operations (most are no longer used).
  sum = <DocumentTemplate.DT_Util.NotBindable instance at 0x149a...
  test = <DocumentTemplate.DT_Util.NotBindable instance at 0x149...
  whrandom
Random variable generators.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

SecurityCheckPermission(md, permission, object)

 

Check whether the security context allows the given permission on the given object.

Arguments:

permission -- A permission name

object -- The object being accessed according to the permission

SecurityValidate(md, inst, parent, name, value)

 

Validate access.

Arguments:

accessed -- the object that was being accessed

container -- the object the value was found in

name -- The name used to access the value

value -- The value retrieved though the access.

The arguments may be provided as keyword arguments. Some of these arguments may be ommitted, however, the policy may reject access in some cases when arguments are ommitted. It is best to provide all the values possible.

__delattr__(...)

 
x.__delattr__('name') <==> del x.name
Overrides: object.__delattr__

__getattribute__(...)

 
x.__getattribute__('name') <==> x.name
Overrides: ExtensionClass.Base.__getattribute__

__init__()
(Constructor)

 
Create a new empty multi-mapping
Overrides: object.__init__

__new__(T, S, ...)

 
Returns:
a new object with type S, a subtype of T

Overrides: ExtensionClass.Base.__new__

__setattr__(...)

 
x.__setattr__('name', value) <==> x.name = value
Overrides: object.__setattr__

abs(number)

 
Return the absolute value of the argument.
Returns:
number

callable(object)

 
Return whether the object is callable (i.e., some kind of function). Note that classes are callable, as are instances with a __call__() method.
Returns:
bool

chr(i)

 
Return a string of one character with ordinal i; 0 <= i < 256.
Returns:
character

cmp(x, y)

 
Return negative if x<y, zero if x==y, positive if x>y.
Returns:
integer

divmod(x, y)

 
Return the tuple ((x-x%y)/y, x%y). Invariant: div*y + mod == x.
Returns:
(div, mod)

getitem(key, call=...)

 

Get a value

Normally, callable objects that can be called without arguments are called during retrieval. This can be suppressed by providing a second argument that is false.

hash(object)

 
Return a hash value for the object. Two objects with the same value have the same hash value. The reverse is not necessarily true, but likely.
Returns:
integer

hex(number)

 
Return the hexadecimal representation of an integer or long integer.
Returns:
string

id(object)

 
Return the identity of an object. This is guaranteed to be unique among simultaneously existing objects. (Hint: it's the object's memory address.)
Returns:
integer

isinstance(object, class-or-type-or-tuple)

 
Return whether an object is an instance of a class or of a subclass thereof. With a type as second argument, return whether that is the object's type. The form using a tuple, isinstance(x, (A, B, ...)), is a shortcut for isinstance(x, A) or isinstance(x, B) or ... (etc.).
Returns:
bool

issubclass(C, B)

 
Return whether class C is a subclass (i.e., a derived class) of class B. When using a tuple as the second argument issubclass(X, (A, B, ...)), is a shortcut for issubclass(X, A) or issubclass(X, B) or ... (etc.).
Returns:
bool

len(object)

 
Return the number of items of a sequence or mapping.
Returns:
integer

oct(number)

 
Return the octal representation of an integer or long integer.
Returns:
string

ord(c)

 
Return the integer ordinal of a one-character string.
Returns:
integer

pow(x, y, z=...)

 
With two arguments, equivalent to x**y. With three arguments, equivalent to (x**y) % z, but may be more efficient (e.g. for longs).
Returns:
number

range(start=..., stop, step=...)

 
Return a list containing an arithmetic progression of integers. range(i, j) returns [i, i+1, i+2, ..., j-1]; start (!) defaults to 0. When step is given, it specifies the increment (or decrement). For example, range(4) returns [0, 1, 2, 3]. The end point is omitted! These are exactly the valid indices for a list of 4 elements.
Returns:
list of integers

repr(object)

 
Return the canonical string representation of the object. For most object types, eval(repr(object)) == object.
Returns:
string

round(number, ndigits=...)

 
Round a number to a given precision in decimal digits (default 0 digits). This always returns a floating point number. Precision may be negative.
Returns:
floating point number

unichr(i)

 
Return a Unicode string of one character with ordinal i; 0 <= i <= 0x10ffff.
Returns:
Unicode character

zip(...)

 

zip(seq1 [, seq2 [...]]) -> [(seq1[0], seq2[0] ...), (...)]

Return a list of tuples, where each tuple contains the i-th element from each of the argument sequences. The returned list is truncated in length to the length of the shortest argument sequence.

Class Variable Details [hide private]

apply

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x149a8c8>

delattr

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x149a918>

dict

Value:
<AccessControl.ZopeGuards.GuardedDictType instance at 0x1496440>

enumerate

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x149a878>

filter

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x149a9b8>

hasattr

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1465c88>

iter

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1465cd8>

list

Value:
<AccessControl.ZopeGuards.GuardedListType instance at 0x1496418>

map

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1465cb0>

math

This module is always available. It provides access to the mathematical functions defined by the C standard.
Value:
math

max

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x149a990>

min

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1465c38>

random

Random variable generators.

    integers
    --------
           uniform within range

    sequences
    ---------
           pick random element
           pick random sample
           generate random permutation

    distributions on the real line:
    ------------------------------
           uniform
           normal (Gaussian)
           lognormal
           negative exponential
           gamma
           beta
           pareto
           Weibull

    distributions on the circle (angles 0 to 2pi)
    ---------------------------------------------
           circular uniform
           von Mises

General notes on the underlying Mersenne Twister core generator:

* The period is 2**19937-1.
* It is one of the most extensively tested generators in existence.
* Without a direct way to compute N steps forward, the semantics of
  jumpahead(n) are weakened to simply jump to another distant state and rely
  on the large period to avoid overlapping sequences.
* The random() method is implemented in C, executes in a single Python step,
  and is, therefore, threadsafe.

Value:
random

reduce

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1465df0>

reorder

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1465c60>

same_type

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x149a8f0>

sequence

Value:
DocumentTemplate.sequence

setattr

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x1465be8>

string

A collection of string operations (most are no longer used).

Warning: most of the code you see here isn't normally used nowadays. Beginning with Python 1.6, many of these functions are implemented as methods on the standard string object. They used to be implemented by a built-in module called strop, but strop is now obsolete itself.

Public module variables:

whitespace -- a string containing all characters considered whitespace lowercase -- a string containing all characters considered lowercase letters uppercase -- a string containing all characters considered uppercase letters letters -- a string containing all characters considered letters digits -- a string containing all characters considered decimal digits hexdigits -- a string containing all characters considered hexadecimal digits octdigits -- a string containing all characters considered octal digits punctuation -- a string containing all characters considered punctuation printable -- a string containing all characters considered printable
Value:
string

sum

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x149a940>

test

Value:
<DocumentTemplate.DT_Util.NotBindable instance at 0x149a968>

whrandom

Random variable generators.

    integers
    --------
           uniform within range

    sequences
    ---------
           pick random element
           pick random sample
           generate random permutation

    distributions on the real line:
    ------------------------------
           uniform
           normal (Gaussian)
           lognormal
           negative exponential
           gamma
           beta
           pareto
           Weibull

    distributions on the circle (angles 0 to 2pi)
    ---------------------------------------------
           circular uniform
           von Mises

General notes on the underlying Mersenne Twister core generator:

* The period is 2**19937-1.
* It is one of the most extensively tested generators in existence.
* Without a direct way to compute N steps forward, the semantics of
  jumpahead(n) are weakened to simply jump to another distant state and rely
  on the large period to avoid overlapping sequences.
* The random() method is implemented in C, executes in a single Python step,
  and is, therefore, threadsafe.

Value:
random