mirror of
https://github.com/lektor/lektor-website.git
synced 2025-01-31 14:31:29 +01:00
20 lines
350 B
Plaintext
20 lines
350 B
Plaintext
|
title: self
|
||
|
---
|
||
|
summary: Returns the item at the query itself.
|
||
|
---
|
||
|
type: property
|
||
|
---
|
||
|
body:
|
||
|
|
||
|
Because a query object filters "downwards" there this is a way access the item
|
||
|
at the level of the query object. It's particularly useful for debugging
|
||
|
in the `shell`:
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```pycon
|
||
|
>>> root = pad.root
|
||
|
>>> root.children.query.self == root
|
||
|
True
|
||
|
```
|