components.xsl_transformation.models¶
XslTransformation model
-
class
components.xsl_transformation.models.XslTransformation(*args, **kwargs)¶ Bases:
django_mongoengine.document.DjangoFlavor,mongoengine.document.DocumentXslTransformation object
-
exception
DoesNotExist¶ Bases:
mongoengine.errors.DoesNotExist
-
exception
MultipleObjectsReturned¶ Bases:
mongoengine.errors.MultipleObjectsReturned
-
clean()¶ Clean is called before saving
Returns:
-
content¶
-
filename¶
-
static
get_all()¶ Get all XSL Transformations.
Returns:
-
static
get_by_id(xslt_id)¶ Get an XSLT document by its id.
Parameters: xslt_id – Id. Returns: XslTransformation object.
-
static
get_by_name(xslt_name)¶ Get XSL Transformation by name.
Parameters: xslt_name – Returns:
-
id¶ A field wrapper around MongoDB’s ObjectIds.
-
name¶
-
save_object()¶ Custom save.
Returns: Saved Instance.
-
exception