From 408315f8c3fbdb780e018d583ac3b47c6d07e2ea Mon Sep 17 00:00:00 2001 From: mike Date: Wed, 21 Oct 2009 05:03:27 +0000 Subject: Audit : Updating Workshop to use Vault --- 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) -- cgit v0.9.1