:py:mod:`core.utils` ==================== .. py:module:: core.utils Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 json/index.rst parse/index.rst string/index.rst Package Contents ---------------- Functions ~~~~~~~~~ .. autoapisummary:: core.utils.utcNow core.utils.seoUrlToEntry core.utils.seoUrlToFunction core.utils.normalizeKey core.utils.__getattr__ Attributes ~~~~~~~~~~ .. autoapisummary:: core.utils.__UTILS_CONF_REPLACEMENT core.utils.__UTILS_NAME_REPLACEMENT .. py:function:: utcNow() Returns an actual timestamp with UTC timezone setting. .. py:function:: seoUrlToEntry(module, entry = None, skelType = None, language = None) Return the seo-url to a skeleton instance or the module. :param module: The module name. :param entry: A skeleton instance or None, to get the path to the module. :param skelType: # FIXME: Not used :param language: For which language. If None, the language of the current request is used. :return: The path (with a leading /). .. py:function:: seoUrlToFunction(module, function, render = None) .. py:function:: normalizeKey(key) Normalizes a datastore key (replacing _application with the current one) :param key: Key to be normalized. :return: Normalized key in string representation. .. py:data:: __UTILS_CONF_REPLACEMENT .. py:data:: __UTILS_NAME_REPLACEMENT .. py:function:: __getattr__(attr)