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.
None
from lektor.context import get_ctx ctx = get_ctx() print ctx.record.record_label
Comments