Coverage for ion/core/id : 83.33%
Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
|
#!/usr/bin/env python
@author Dorian Raymer @author Michael Meisinger @brief IDs in the system """
""" @todo Remove static dependency on default container """
# Class attribute with default container id # @note STATICALLY SET BY OUTSIDE CODE
""" Create an entity instance id @param local is a local identifier, such as an incrementing counter @param container a qualifier, such as the id of a container """ container = self.default_container_id
def __repr__(self): return """Id(%s, container="%s")""" % (self.local, self.container)
# Should equality be about the str content, or also be the instance? #return self.full == other.full except AttributeError, ae: return False
|