Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tutorius/properties.py
diff options
context:
space:
mode:
authormike <michael.jmontcalm@gmail.com>2009-10-10 23:14:58 (GMT)
committer mike <michael.jmontcalm@gmail.com>2009-10-10 23:14:58 (GMT)
commite113f3ca55178e248f620948936d8c86d22e26c2 (patch)
tree4ab8d2193efc56eddc3003a7a1d79ab6fe547304 /tutorius/properties.py
parentf79e0c5fe21474b552cfe62190aa2570c1a94445 (diff)
LP 448319 : Adding resource translator decorator for Probe Managers
Diffstat (limited to 'tutorius/properties.py')
-rw-r--r--tutorius/properties.py17
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 = ""
+
+