| Home | Trees | Indices | Help |
|
|---|
|
|
Contains helper functionality for Enomalism.
Requires: enomalism2.configuration.Variable
Status: Stable
|
|||
| Boolean |
|
||
| Boolean |
|
||
| Boolean |
|
||
| Boolean |
|
||
| Boolean |
|
||
| Boolean |
|
||
| Boolean |
|
||
| Boolean |
|
||
| Boolean |
|
||
| String |
|
||
| String |
|
||
| String |
|
||
| List |
|
||
| UUID |
|
||
| String |
|
||
| Boolean |
|
||
| String |
|
||
| Bool |
|
||
| String |
|
||
| None |
|
||
| None |
|
||
| Object |
|
||
| String |
|
||
|
|||
Return true if the specified object is a list. Example usage: >>> from enomalism2.utilities import is_list >>> is_list([])
Status: Stable |
Return true if the specified object is a dictionary. Example usage: >>> from enomalism2.utilities import is_dict >>> is_dict({})
Status: Stable |
Return true if the specified object is a string. Example usage: >>> from enomalism2.utilities import is_str >>> is_str("")
Status: Stable |
Return true if the specified object is an integer. Example usage: >>> from enomalism2.utilities import is_int >>> is_int(1)
Status: Stable |
Return true if the specified object is a long integer. Example usage: >>> from enomalism2.utilities import is_long >>> is_long(5555555555555555)
Status: Stable |
Return true if the specified object is a float. Example usage: >>> from enomalism2.utilities import is_float >>> is_float(1.111111)
Status: Stable |
Return true if the specified object is a boolean. Example usage: >>> from enomalism2.utilities import is_bool >>> is_bool(True)
Status: Stable |
Return true if the specified object is a unicode. Example usage: >>> from enomalism2.utilities import is_unicode >>> is_unicode(u"")
Status: Stable |
Return true if the specified object is a None. Example usage: >>> from enomalism2.utilities import is_none >>> is_none(None)
Status: Stable |
Return a timestamp based on the specified format. Example usage: >>> from enomalism2.utilities import gen_timestamp >>> gen_timestamp()
Status: Stable |
Generate a unique id. If a value is specified, a UUID conformant string is returned. Example usage: >>> from enomalism2.utilities import gen_uuid >>> gen_uuid()
Status: Stable |
Return the ip address of the specified interface name. Example usage: >>> from enomalism2.utilities import get_ip_address >>> get_ip_address()
Status: Stable |
Return a list of the supported libvert services on this machine. Example usage: >>> from enomalism2.utilities import find_libvirt_services >>> find_libvirt_services()
Status: Stable |
Convert the provided EC2 id to a UUID instance. The first integer of the resulting UUID represents the type of EC2 object we are dealing with based on the prefix map. The provided EC2 id is split into to parts; the prefix and the hex. We then fill in the empty space and return a UUID.
Status: Stable |
Convert the provided UUID to its EC2 counterpart. We get the prefix of the EC2 id based on the prefix_map and the first character of the provided UUID. We then concatenate the prefix with the last 8 characters of the UUID.
Status: Stable |
Return true if the specified id is a valid uuid. Example usage: >>> from enomalism2.utilities import valid_uuid >>> valid_uuid('123')
Status: Stable |
Return the ip address of the specified host name. Example usage: >>> from enomalism2.utilities import resolve_dns >>> resolve_dns('google.com')
Status: Stable |
Return true if the specified object is of the specified type. This method will also return true if the specified object is a sub-class of the specified type. Example usage: >>> from enomalism2.utilities import isA >>> isA('string',"")
Status: Stable |
Return the current locale. First, we try to fetch the language preference from the current user. If this is not possible, we attempt to fetch the locale from the Enomalism configuration, defaulting to the TurboGears default if this cannot be found. Example usage: >>> from enomalism2.utilities import get_locale >>> get_locale()
Status: Stable |
Set the current locale. Example usage: >>> from enomalism2.utilities import set_locale >>> set_locale()
Status: Stable |
Log a message.
Status: Stable |
Return the XML element tree object built from the specified XML.
Status: Beta |
Return the text of the specfied element within the specified XML document.
Status: Beta |
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 26 13:59:30 2008 | http://epydoc.sourceforge.net |