Browse Source

tiny fix in fill.py

master
phryk 7 months ago
parent
commit
d2122eb6f7
1 changed files with 16 additions and 16 deletions
  1. 16
    16
      fill.py

+ 16
- 16
fill.py View File

@@ -22,7 +22,7 @@ def news():
22 22
 
23 23
 def datasets():
24 24
 
25
-    sine = example.poobrains.svg.Dataset()
25
+    sine = example.poobrains.svg.StoredDataset()
26 26
     sine.owner = u
27 27
     sine.group = g
28 28
     sine.name = 'sine'
@@ -32,7 +32,7 @@ def datasets():
32 32
     sine.label_y = 'Sine Y'
33 33
     sine.save()
34 34
 
35
-    fucksgiven = example.poobrains.svg.Dataset()
35
+    fucksgiven = example.poobrains.svg.StoredDataset()
36 36
     fucksgiven.owner = u
37 37
     fucksgiven.group = g
38 38
     fucksgiven.name = 'fucksgiven'
@@ -45,7 +45,7 @@ def datasets():
45 45
     sine_steps = 33
46 46
     for i in range(0,sine_steps):
47 47
 
48
-        dp = example.poobrains.svg.Datapoint()
48
+        dp = example.poobrains.svg.StoredDatapoint()
49 49
         dp.dataset = sine
50 50
         dp.owner = u
51 51
         dp.group = g
@@ -55,7 +55,7 @@ def datasets():
55 55
         dp.save(force_insert=True)
56 56
 
57 57
 
58
-        fuck = example.poobrains.svg.Datapoint()
58
+        fuck = example.poobrains.svg.StoredDatapoint()
59 59
         fuck.dataset = fucksgiven
60 60
         fuck.owner = u
61 61
         fuck.group = g
@@ -68,7 +68,7 @@ def datasets():
68 68
 
69 69
         fuck.save(force_insert=True)
70 70
 
71
-    cont_a = example.poobrains.svg.Dataset()
71
+    cont_a = example.poobrains.svg.StoredDataset()
72 72
     cont_a.owner = u
73 73
     cont_a.group = g
74 74
     cont_a.name = 'cont_a'
@@ -80,7 +80,7 @@ def datasets():
80 80
 
81 81
     for i in range(-23, 6):
82 82
 
83
-        dp = example.poobrains.svg.Datapoint()
83
+        dp = example.poobrains.svg.StoredDatapoint()
84 84
         dp.dataset = cont_a
85 85
         dp.owner = u
86 86
         dp.group = g
@@ -89,7 +89,7 @@ def datasets():
89 89
 
90 90
         dp.save(force_insert=True)
91 91
 
92
-    cont_b = example.poobrains.svg.Dataset()
92
+    cont_b = example.poobrains.svg.StoredDataset()
93 93
     cont_b.owner = u
94 94
     cont_b.group = g
95 95
     cont_b.name = 'cont_b'
@@ -101,7 +101,7 @@ def datasets():
101 101
 
102 102
     for i in range(2, 24):
103 103
 
104
-        dp = example.poobrains.svg.Datapoint()
104
+        dp = example.poobrains.svg.StoredDatapoint()
105 105
         dp.dataset = cont_b
106 106
         dp.owner = u
107 107
         dp.group = g
@@ -113,7 +113,7 @@ def datasets():
113 113
 
114 114
 def map():
115 115
 
116
-    m = example.poobrains.svg.MapDataset()
116
+    m = example.poobrains.svg.MapStoredDataset()
117 117
     m.owner = u
118 118
     m.group = g
119 119
     m.name = 'grid'
@@ -127,7 +127,7 @@ def map():
127 127
 
128 128
     for lat in range(-75, 76, 15):
129 129
         for lon in range(-180, 181, 15):
130
-            dp = example.poobrains.svg.MapDatapoint()
130
+            dp = example.poobrains.svg.MapStoredDatapoint()
131 131
             dp.owner = u
132 132
             dp.group = g
133 133
             dp.dataset = m
@@ -138,19 +138,19 @@ def map():
138 138
 
139 139
             dp.save(force_insert=True)
140 140
 
141
-    places = example.poobrains.svg.MapDataset()
141
+    places = example.poobrains.svg.MapStoredDataset()
142 142
     places.owner = u
143 143
     places.group = g
144 144
     places.name = 'places'
145 145
     places.title = 'Some Places'
146
-    places.description = 'Sample MapDataset from fill.py'
146
+    places.description = 'Sample MapStoredDataset from fill.py'
147 147
     places.bbox_left = -180
148 148
     places.bbox_right = 180
149 149
     places.bbox_top = 75
150 150
     places.bbox_bottom = -75
151 151
     places.save()
152 152
 
153
-    dp = example.poobrains.svg.MapDatapoint()
153
+    dp = example.poobrains.svg.MapStoredDatapoint()
154 154
     dp.owner = u
155 155
     dp.group = g
156 156
     dp.dataset = places
@@ -160,7 +160,7 @@ def map():
160 160
     dp.description = 'Center of the map at 0,0. Near the african west coast.'
161 161
     dp.save(force_insert=True)
162 162
 
163
-    dp = example.poobrains.svg.MapDatapoint()
163
+    dp = example.poobrains.svg.MapStoredDatapoint()
164 164
     dp.owner = u
165 165
     dp.group = g
166 166
     dp.dataset = places
@@ -170,7 +170,7 @@ def map():
170 170
     dp.description = 'Where 34C3 will be'
171 171
     dp.save(force_insert=True)
172 172
 
173
-    dp = example.poobrains.svg.MapDatapoint()
173
+    dp = example.poobrains.svg.MapStoredDatapoint()
174 174
     dp.owner = u
175 175
     dp.group = g
176 176
     dp.dataset = places
@@ -180,7 +180,7 @@ def map():
180 180
     dp.description = 'Southernmost town of mainland India'
181 181
     dp.save(force_insert=True)
182 182
     
183
-    dp = example.poobrains.svg.MapDatapoint()
183
+    dp = example.poobrains.svg.MapStoredDatapoint()
184 184
     dp.owner = u
185 185
     dp.group = g
186 186
     dp.dataset = places

Loading…
Cancel
Save