From e113f3ca55178e248f620948936d8c86d22e26c2 Mon Sep 17 00:00:00 2001 From: mike Date: Sat, 10 Oct 2009 23:14:58 +0000 Subject: LP 448319 : Adding resource translator decorator for Probe Managers --- (limited to 'tutorius/properties.py') 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 = "" + + -- cgit v0.9.1