Added CommandsDebugger
This commit is contained in:
@@ -30,6 +30,7 @@ class BaseCommand:
|
||||
self.description = description
|
||||
self._htmx_extra = {}
|
||||
self._bindings = []
|
||||
self._ft = None
|
||||
|
||||
# register the command
|
||||
CommandsManager.register(self)
|
||||
@@ -68,6 +69,7 @@ class BaseCommand:
|
||||
:param ft:
|
||||
:return:
|
||||
"""
|
||||
self._ft = ft
|
||||
htmx = self.get_htmx_params()
|
||||
ft.attrs |= htmx
|
||||
return ft
|
||||
@@ -95,6 +97,9 @@ class BaseCommand:
|
||||
def url(self):
|
||||
return f"{ROUTE_ROOT}{Routes.Commands}?c_id={self.id}"
|
||||
|
||||
def get_ft(self):
|
||||
return self._ft
|
||||
|
||||
def __str__(self):
|
||||
return f"Command({self.name})"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user