Changeset 12251


Ignore:
Timestamp:
17 Dec 2014, 21:26:04 (10 years ago)
Author:
uli
Message:

Add an IDSource interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/interfaces.py

    r12200 r12251  
    12751275        """Query catalog with the parameters passed to constructor.
    12761276        """
     1277
     1278
     1279class IIDSource(Interface):
     1280    """A source for unique IDs, according to RFC 4122.
     1281    """
     1282    def get_uuid():
     1283        """Get a random unique ID.
     1284
     1285        Get a 'Universially Unique IDentifier'. The result string
     1286        might contain any printable characters.
     1287        """
     1288
     1289    def get_hex_uuid():
     1290        """Get a random unique ID as a string representing a hex number.
     1291        """
Note: See TracChangeset for help on using the changeset viewer.