diff options
Diffstat (limited to 'tutorius/properties.py')
-rw-r--r-- | tutorius/properties.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tutorius/properties.py b/tutorius/properties.py index 3a646e4..896ae67 100644 --- a/tutorius/properties.py +++ b/tutorius/properties.py @@ -367,3 +367,20 @@ class TAddonListProperty(TutoriusProperty): return value raise ValueError("Value proposed to TAddonListProperty is not a list") +class TResourceProperty(TutoriusProperty): + """ + Represents a resource associated to a tutorial. This resource is a file + that in distributed along with the tutorial. + + Its value should always be a file path relative to a tutorial's base + directory. + + This is a data-model only property and it will always be replaced by a + TFileProperty when calling the action's do() method. + """ + def __init__(self): + TutoriusProperty.__init__(self) + self.type = "resource" + self.default = "" + + |