diff options
author | mike <michael.jmontcalm@gmail.com> | 2009-10-21 05:03:27 (GMT) |
---|---|---|
committer | mike <michael.jmontcalm@gmail.com> | 2009-10-21 05:03:27 (GMT) |
commit | 408315f8c3fbdb780e018d583ac3b47c6d07e2ea (patch) | |
tree | d167e8d8eca1ce6b2c2686f3bf3c63383baf5c42 | |
parent | 3fe40f2eeeb791b0510001bcbc5ffca48a52af7e (diff) |
Audit : Updating Workshop to use Vault
-rw-r--r-- | Workshop.activity/WorkshopModel.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/Workshop.activity/WorkshopModel.py b/Workshop.activity/WorkshopModel.py index 79e8f74..cc066ba 100644 --- a/Workshop.activity/WorkshopModel.py +++ b/Workshop.activity/WorkshopModel.py @@ -17,19 +17,19 @@ class WorkshopModel(): @param keyword the keyword for the query """ - t1 = Tutorial({'name':'tuto 1',"description":"This is the description","rating":5}) - t2 = Tutorial({'name':'tuto 2',"description":"This is the description of another","rating":4}) - t3 = Tutorial({'name':'tuto 3',"description":"This is the description oh the last","rating":3}) - t4 = Tutorial({'name':'tuto 4',"description":"This is the description oh the last","rating":1}) - t5 = Tutorial({'name':'tuto 5',"description":"This is the description oh the last","rating":1}) - t6 = Tutorial({'name':'tuto 6',"description":"This is the description oh the last","rating":1}) - t7 = Tutorial({'name':'tuto 7',"description":"This is the description oh the last","rating":1}) - tutorial_list = [t1,t2,t3,t4,t5,t6,t7] +## t1 = Tutorial({'name':'tuto 1',"description":"This is the description","rating":5}) +## t2 = Tutorial({'name':'tuto 2',"description":"This is the description of another","rating":4}) +## t3 = Tutorial({'name':'tuto 3',"description":"This is the description oh the last","rating":3}) +## t4 = Tutorial({'name':'tuto 4',"description":"This is the description oh the last","rating":1}) +## t5 = Tutorial({'name':'tuto 5',"description":"This is the description oh the last","rating":1}) +## t6 = Tutorial({'name':'tuto 6',"description":"This is the description oh the last","rating":1}) +## t7 = Tutorial({'name':'tuto 7',"description":"This is the description oh the last","rating":1}) +## tutorial_list = [t1,t2,t3,t4,t5,t6,t7] -## vault_return = vault.query({},{},{}) -## tutorial_list = [] -## for tuto in vault_return: -## tutorial_list.append(Tutorial(tuto)) + vault_return = vault.query({},{},{}) + tutorial_list = [] + for tuto in vault_return: + tutorial_list.append(Tutorial(tuto)) self.view.set_tutorial_list(tutorial_list) |