Table of Contents

Class: UIDGenerator uid.py

The class which generates new UID hashes, via the generate method. The constructor takes a extra argument that should be different for different instances created concurrently, and a hasher object; both are optional. Finally, the updateCustom method can be overridden by subclasses to include special behavior.

Methods   
__init__
generate
process
reset
set
update
updateCustom
updateEnvironment
updateEphemeral
updateHost
updateLocals
updateProcess
updateSystem
updateUser
  __init__ 
__init__ (
        self,
        extra=None,
        hasher=None,
        )

Create a new generator. If multiple generators will be in existence at the same time, it is best that they be given different extra arguments.

  generate 
generate ( self )

Generate, create the state, process it, and return a hash object.

  process 
process ( self )

After the state has been updated, build and return a hash object.

  reset 
reset ( self )

Reset the state.

  set 
set (
        self,
        key,
        value,
        )

Update one bit of information.

  update 
update ( self )

Update the state with current information.

  updateCustom 
updateCustom ( self )

Custom information
override to extend.
  updateEnvironment 
updateEnvironment ( self )

The operating environment.

  updateEphemeral 
updateEphemeral ( self )

Ephemeral information to throw into the mix.

  updateHost 
updateHost ( self )

The current host.

  updateLocals 
updateLocals ( self )

Local information.

  updateProcess 
updateProcess ( self )

The current process.

  updateSystem 
updateSystem ( self )

The operating system and the Python system.

  updateUser 
updateUser ( self )

The current user, as he/she is executing this process.


Table of Contents

This document was automatically generated on Mon Apr 25 15:24:40 2005 by HappyDoc version 2.1