Package g4ds :: Module tools
[show private | hide private]
[frames | no frames]

Module g4ds.tools

Commonly used functions for G4DS

Grid for Digital Security (G4DS)

Author: Michael Pilgermann

Contact: mailto:mpilgerm@glam.ac.uk

License: GPL (General Public License)

Function Summary
  generateId(type)
Generate a unique ID

Variable Summary
str TYPE_ALGORITHM = 'A'
str TYPE_COMMUNITY = 'C'
str TYPE_CREDENTIAL = 'Q'
str TYPE_ENDPOINT = 'E'
str TYPE_MEMBER = 'M'
str TYPE_MESSAGE = 'Z'
str TYPE_PERSONALCREDENTIAL = 'X'
str TYPE_PROTOCOL = 'P'
str TYPE_ROUTINGTABLEENTRY = 'R'
str TYPE_SERVICE = 'S'

Function Details

generateId(type='C')

Generate a unique ID

To Do: Implement unique properly - currently just a random mumber between 0 and 1000000


Variable Details

TYPE_ALGORITHM

Type:
str
Value:
'A'                                                                    

TYPE_COMMUNITY

Type:
str
Value:
'C'                                                                    

TYPE_CREDENTIAL

Type:
str
Value:
'Q'                                                                    

TYPE_ENDPOINT

Type:
str
Value:
'E'                                                                    

TYPE_MEMBER

Type:
str
Value:
'M'                                                                    

TYPE_MESSAGE

Type:
str
Value:
'Z'                                                                    

TYPE_PERSONALCREDENTIAL

Type:
str
Value:
'X'                                                                    

TYPE_PROTOCOL

Type:
str
Value:
'P'                                                                    

TYPE_ROUTINGTABLEENTRY

Type:
str
Value:
'R'                                                                    

TYPE_SERVICE

Type:
str
Value:
'S'                                                                    

Generated by Epydoc 2.0 on Sat Oct 22 22:52:46 2005 http://epydoc.sf.net