Package Modeling :: Module GlobalID :: Class TemporaryGlobalID
[show private | hide private]
[frames | no frames]

Class TemporaryGlobalID


TemporaryGlobalID

Important note: the internal state of KeyGlobalID objects is considered
read-only, and at no time the framework expects their internal values to change. Trying to change them will certainly trigger wrong and possibly bad behaviour, including (not exhaustively): loss of data, apparition of dangling references, confusion in the objects' changes that are made persistent, etc.

Method Summary
  __init__(self, *args, **kw)
Initializes a new TemporaryGlobalID.
  __eq__(self, aGlobalID)
Compares self with 'aGlobalID'
  __hash__(self)
  __setattr__(self, name, value)
Raises TypeError since this is an immutable object
  __str__(self)
Returns a string representation of the GlobalID.
  isTemporary(self)
Returns true
  nonLocalIPIfAvailable(self, ipaddrList)

Class Variable Summary
tuple __implements__ = (<class Modeling.interfaces.GlobalID.IT...
int __is_temporary__ = 1                                                                     

Method Details

__init__(self, *args, **kw)
(Constructor)

Initializes a new TemporaryGlobalID. Arguments are currently ignored.

__eq__(self, aGlobalID)
(Equality operator)

Compares self with 'aGlobalID'

A GlobalID is equal to another one iff:

  • they both are GlobalIDs (either KeyGlobalID or TemporaryGlobalID)
  • they both are KeyGlobalID, with the same entityName() and keyValues()
  • they both are TemporaryGlobalID, with the same internal state (as exposed by __str__)

__setattr__(self, name, value)

Raises TypeError since this is an immutable object

__str__(self)
(Informal representation operator)

Returns a string representation of the GlobalID. This string representation is unique among GlobalIDs.

isTemporary(self)

Returns true

Class Variable Details

__implements__

Type:
tuple
Value:
(<class Modeling.interfaces.GlobalID.ITemporaryGlobalID at 0xb788c95c>\
,)                                                                     

__is_temporary__

Type:
int
Value:
1                                                                     

Generated by Epydoc 2.1 on Sat Mar 4 13:36:25 2006 http://epydoc.sf.net