cdh.core.js_urls.serializer module
JS URLs serializer
This module defiine helper functions allowing to convert the URLs that are associated with the names or namespaces defined in the settings to JSON. The resulting JSON will be used by a Javascript module to provide reverse-like functionality.
- cdh.core.js_urls.serializer.get_urls_as_json(resolver=None)[source]
Returns the URLs associated with an URL resover as JSON.
This function will traverse the tree of URLs of an URL resolver in order to return a JSON containing the correspondance between fully qualified URL names and the related paths. Only URLs that are configured to be serialized are included in the final JSON.