mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Fix template IDs in a couple more places
This commit is contained in:
parent
3ebe5c72c1
commit
c95195197d
2 changed files with 18 additions and 28 deletions
|
@ -26,6 +26,10 @@ from .contexts import ScopeCtx
|
|||
class Widget(AstNode):
|
||||
grammar = UseIdent("name")
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
return self.tokens["name"]
|
||||
|
||||
@validate("name")
|
||||
def obj_widget(self):
|
||||
object = self.context[ScopeCtx].objects.get(self.tokens["name"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue