record

This works almost exactly like the source property but the difference is that it is None if the source object is not a Record.

Example

from lektor.context import get_ctx

ctx = get_ctx()
print ctx.record.record_label

Comments