Sfoglia il codice sorgente

Moved Oscar's templates into a new folder.

This avoids conflicts with other libraries that use the same trick for
extending templates.
master
David Winterbottom 13 anni fa
parent
commit
314d211284
100 ha cambiato i file con 592 aggiunte e 9 eliminazioni
  1. 554
    0
      CHANGELOG.pdf
  2. 27
    0
      CHANGELOG.rst
  3. 5
    0
      docs/source/getting_started.rst
  4. 6
    9
      oscar/__init__.py
  5. 0
    0
      oscar/templates/oscar/404.html
  6. 0
    0
      oscar/templates/oscar/500.html
  7. 0
    0
      oscar/templates/oscar/README.rst
  8. 0
    0
      oscar/templates/oscar/base.html
  9. 0
    0
      oscar/templates/oscar/basket/basket.html
  10. 0
    0
      oscar/templates/oscar/basket/partials/basket_quick.html
  11. 0
    0
      oscar/templates/oscar/basket/saved_list.html
  12. 0
    0
      oscar/templates/oscar/catalogue/browse.html
  13. 0
    0
      oscar/templates/oscar/catalogue/detail.html
  14. 0
    0
      oscar/templates/oscar/catalogue/partials/add_to_basket_form.html
  15. 0
    0
      oscar/templates/oscar/catalogue/partials/add_to_basket_form_compact.html
  16. 0
    0
      oscar/templates/oscar/catalogue/partials/gallery.html
  17. 0
    0
      oscar/templates/oscar/catalogue/partials/pagination.html
  18. 0
    0
      oscar/templates/oscar/catalogue/partials/product.html
  19. 0
    0
      oscar/templates/oscar/catalogue/partials/stock_record.html
  20. 0
    0
      oscar/templates/oscar/checkout/checkout.html
  21. 0
    0
      oscar/templates/oscar/checkout/gateway.html
  22. 0
    0
      oscar/templates/oscar/checkout/layout.html
  23. 0
    0
      oscar/templates/oscar/checkout/nav.html
  24. 0
    0
      oscar/templates/oscar/checkout/payment_details.html
  25. 0
    0
      oscar/templates/oscar/checkout/preview.html
  26. 0
    0
      oscar/templates/oscar/checkout/shipping_address.html
  27. 0
    0
      oscar/templates/oscar/checkout/shipping_methods.html
  28. 0
    0
      oscar/templates/oscar/checkout/thank_you.html
  29. 0
    0
      oscar/templates/oscar/checkout/user_address_delete.html
  30. 0
    0
      oscar/templates/oscar/checkout/user_address_form.html
  31. 0
    0
      oscar/templates/oscar/customer/address-book.html
  32. 0
    0
      oscar/templates/oscar/customer/address-delete.html
  33. 0
    0
      oscar/templates/oscar/customer/address-form.html
  34. 0
    0
      oscar/templates/oscar/customer/anon-order.html
  35. 0
    0
      oscar/templates/oscar/customer/change-password.html
  36. 0
    0
      oscar/templates/oscar/customer/email-history.html
  37. 0
    0
      oscar/templates/oscar/customer/email.html
  38. 0
    0
      oscar/templates/oscar/customer/emails/commtype_order_placed_body.html
  39. 0
    0
      oscar/templates/oscar/customer/emails/commtype_order_placed_body.txt
  40. 0
    0
      oscar/templates/oscar/customer/emails/commtype_order_placed_subject.txt
  41. 0
    0
      oscar/templates/oscar/customer/emails/commtype_registration_body.html
  42. 0
    0
      oscar/templates/oscar/customer/emails/commtype_registration_body.txt
  43. 0
    0
      oscar/templates/oscar/customer/emails/commtype_registration_sms.txt
  44. 0
    0
      oscar/templates/oscar/customer/emails/commtype_registration_subject.txt
  45. 0
    0
      oscar/templates/oscar/customer/history/recently-viewed-products.html
  46. 0
    0
      oscar/templates/oscar/customer/login_registration.html
  47. 0
    0
      oscar/templates/oscar/customer/order-history.html
  48. 0
    0
      oscar/templates/oscar/customer/order.html
  49. 0
    0
      oscar/templates/oscar/customer/profile-form.html
  50. 0
    0
      oscar/templates/oscar/customer/profile.html
  51. 0
    0
      oscar/templates/oscar/customer/registration.html
  52. 0
    0
      oscar/templates/oscar/dashboard/catalogue/category_delete.html
  53. 0
    0
      oscar/templates/oscar/dashboard/catalogue/category_form.html
  54. 0
    0
      oscar/templates/oscar/dashboard/catalogue/category_list.html
  55. 0
    0
      oscar/templates/oscar/dashboard/catalogue/product_list.html
  56. 0
    0
      oscar/templates/oscar/dashboard/catalogue/product_update.html
  57. 0
    0
      oscar/templates/oscar/dashboard/catalogue/stockalert_list.html
  58. 0
    0
      oscar/templates/oscar/dashboard/index.html
  59. 0
    0
      oscar/templates/oscar/dashboard/layout.html
  60. 0
    0
      oscar/templates/oscar/dashboard/offers/benefit_form.html
  61. 0
    0
      oscar/templates/oscar/dashboard/offers/condition_form.html
  62. 0
    0
      oscar/templates/oscar/dashboard/offers/metadata_form.html
  63. 0
    0
      oscar/templates/oscar/dashboard/offers/offer_delete.html
  64. 0
    0
      oscar/templates/oscar/dashboard/offers/offer_detail.html
  65. 0
    0
      oscar/templates/oscar/dashboard/offers/offer_list.html
  66. 0
    0
      oscar/templates/oscar/dashboard/offers/preview.html
  67. 0
    0
      oscar/templates/oscar/dashboard/offers/step_form.html
  68. 0
    0
      oscar/templates/oscar/dashboard/orders/line_detail.html
  69. 0
    0
      oscar/templates/oscar/dashboard/orders/order_detail.html
  70. 0
    0
      oscar/templates/oscar/dashboard/orders/order_list.html
  71. 0
    0
      oscar/templates/oscar/dashboard/orders/shippingaddress_form.html
  72. 0
    0
      oscar/templates/oscar/dashboard/orders/statistics.html
  73. 0
    0
      oscar/templates/oscar/dashboard/pages/delete.html
  74. 0
    0
      oscar/templates/oscar/dashboard/pages/index.html
  75. 0
    0
      oscar/templates/oscar/dashboard/pages/update.html
  76. 0
    0
      oscar/templates/oscar/dashboard/partials/nav.html
  77. 0
    0
      oscar/templates/oscar/dashboard/promotions/delete.html
  78. 0
    0
      oscar/templates/oscar/dashboard/promotions/delete_pagepromotion.html
  79. 0
    0
      oscar/templates/oscar/dashboard/promotions/form.html
  80. 0
    0
      oscar/templates/oscar/dashboard/promotions/handpickedproductlist_form.html
  81. 0
    0
      oscar/templates/oscar/dashboard/promotions/page_detail.html
  82. 0
    0
      oscar/templates/oscar/dashboard/promotions/pagepromotion_list.html
  83. 0
    0
      oscar/templates/oscar/dashboard/promotions/promotion_list.html
  84. 0
    0
      oscar/templates/oscar/dashboard/ranges/range_delete.html
  85. 0
    0
      oscar/templates/oscar/dashboard/ranges/range_form.html
  86. 0
    0
      oscar/templates/oscar/dashboard/ranges/range_list.html
  87. 0
    0
      oscar/templates/oscar/dashboard/ranges/range_product_list.html
  88. 0
    0
      oscar/templates/oscar/dashboard/reports/index.html
  89. 0
    0
      oscar/templates/oscar/dashboard/reports/partials/offer_report.html
  90. 0
    0
      oscar/templates/oscar/dashboard/reports/partials/open_basket_report.html
  91. 0
    0
      oscar/templates/oscar/dashboard/reports/partials/order_report.html
  92. 0
    0
      oscar/templates/oscar/dashboard/reports/partials/product_report.html
  93. 0
    0
      oscar/templates/oscar/dashboard/reports/partials/submitted_basket_report.html
  94. 0
    0
      oscar/templates/oscar/dashboard/reports/partials/user_report.html
  95. 0
    0
      oscar/templates/oscar/dashboard/reports/partials/voucher_report.html
  96. 0
    0
      oscar/templates/oscar/dashboard/reviews/review_delete.html
  97. 0
    0
      oscar/templates/oscar/dashboard/reviews/review_list.html
  98. 0
    0
      oscar/templates/oscar/dashboard/reviews/review_update.html
  99. 0
    0
      oscar/templates/oscar/dashboard/users/detail.html
  100. 0
    0
      oscar/templates/oscar/dashboard/users/index.html

+ 554
- 0
CHANGELOG.pdf Vedi File

@@ -0,0 +1,554 @@
1
+%PDF-1.4
2
+%“Œ‹ž ReportLab Generated PDF document http://www.reportlab.com
3
+% 'BasicFonts': class PDFDictionary 
4
+1 0 obj
5
+% The standard fonts dictionary
6
+<< /F1 2 0 R
7
+ /F2 3 0 R
8
+ /F3 4 0 R >>
9
+endobj
10
+% 'F1': class PDFType1Font 
11
+2 0 obj
12
+% Font Helvetica
13
+<< /BaseFont /Helvetica
14
+ /Encoding /WinAnsiEncoding
15
+ /Name /F1
16
+ /Subtype /Type1
17
+ /Type /Font >>
18
+endobj
19
+% 'F2': class PDFType1Font 
20
+3 0 obj
21
+% Font Helvetica-Bold
22
+<< /BaseFont /Helvetica-Bold
23
+ /Encoding /WinAnsiEncoding
24
+ /Name /F2
25
+ /Subtype /Type1
26
+ /Type /Font >>
27
+endobj
28
+% 'F3': class PDFType1Font 
29
+4 0 obj
30
+% Font Courier
31
+<< /BaseFont /Courier
32
+ /Encoding /WinAnsiEncoding
33
+ /Name /F3
34
+ /Subtype /Type1
35
+ /Type /Font >>
36
+endobj
37
+% 'Page1': class PDFPage 
38
+5 0 obj
39
+% Page dictionary
40
+<< /Contents 14 0 R
41
+ /MediaBox [ 0
42
+ 0
43
+ 595.2756
44
+ 841.8898 ]
45
+ /Parent 13 0 R
46
+ /Resources << /Font 1 0 R
47
+ /ProcSet [ /PDF
48
+ /Text
49
+ /ImageB
50
+ /ImageC
51
+ /ImageI ] >>
52
+ /Rotate 0
53
+ /Trans <<  >>
54
+ /Type /Page >>
55
+endobj
56
+% 'R6': class PDFCatalog 
57
+6 0 obj
58
+% Document Root
59
+<< /Outlines 8 0 R
60
+ /PageLabels 15 0 R
61
+ /PageMode /UseNone
62
+ /Pages 13 0 R
63
+ /Type /Catalog >>
64
+endobj
65
+% 'R7': class PDFInfo 
66
+7 0 obj
67
+<< /Author ()
68
+ /CreationDate (D:20120719073244+08'00')
69
+ /Creator (\(unspecified\))
70
+ /Keywords ()
71
+ /Producer (ReportLab PDF Library - www.reportlab.com)
72
+ /Subject (\(unspecified\))
73
+ /Title (Changelog) >>
74
+endobj
75
+% 'R8': class PDFOutlines 
76
+8 0 obj
77
+<< /Count 4
78
+ /First 9 0 R
79
+ /Last 12 0 R
80
+ /Type /Outlines >>
81
+endobj
82
+% 'Outline.0': class OutlineEntryObject 
83
+9 0 obj
84
+<< /Dest [ 5 0 R
85
+ /XYZ
86
+ 62.69291
87
+ 729.0236
88
+ 0 ]
89
+ /Next 10 0 R
90
+ /Parent 8 0 R
91
+ /Title (0.3) >>
92
+endobj
93
+% 'Outline.1': class OutlineEntryObject 
94
+10 0 obj
95
+<< /Dest [ 5 0 R
96
+ /XYZ
97
+ 62.69291
98
+ 410.4236
99
+ 0 ]
100
+ /Next 11 0 R
101
+ /Parent 8 0 R
102
+ /Prev 9 0 R
103
+ /Title (0.2.1 - 09 July 2012) >>
104
+endobj
105
+% 'Outline.2': class OutlineEntryObject 
106
+11 0 obj
107
+<< /Dest [ 5 0 R
108
+ /XYZ
109
+ 62.69291
110
+ 359.4236
111
+ 0 ]
112
+ /Next 12 0 R
113
+ /Parent 8 0 R
114
+ /Prev 10 0 R
115
+ /Title (0.2 - 01 June 2012) >>
116
+endobj
117
+% 'Outline.3': class OutlineEntryObject 
118
+12 0 obj
119
+<< /Dest [ 5 0 R
120
+ /XYZ
121
+ 62.69291
122
+ 176.4236
123
+ 0 ]
124
+ /Parent 8 0 R
125
+ /Prev 11 0 R
126
+ /Title (0.1) >>
127
+endobj
128
+% 'R13': class PDFPages 
129
+13 0 obj
130
+% page tree
131
+<< /Count 1
132
+ /Kids [ 5 0 R ]
133
+ /Type /Pages >>
134
+endobj
135
+% 'R14': class PDFStream 
136
+14 0 obj
137
+% page stream
138
+<< /Length 6642 >>
139
+stream
140
+1 0 0 1 0 0 cm  BT /F1 12 Tf 14.4 TL ET
141
+q
142
+1 0 0 1 62.69291 741.0236 cm
143
+q
144
+0 0 0 rg
145
+BT 1 0 0 1 0 4 Tm /F2 20 Tf 24 TL 183.2749 0 Td (Changelog) Tj T* -183.2749 0 Td ET
146
+Q
147
+Q
148
+q
149
+1 0 0 1 62.69291 708.0236 cm
150
+q
151
+BT 1 0 0 1 0 3.5 Tm 21 TL /F2 17.5 Tf 0 0 0 rg (0.3) Tj T* ET
152
+Q
153
+Q
154
+q
155
+1 0 0 1 62.69291 678.0236 cm
156
+q
157
+BT 1 0 0 1 0 14 Tm .386647 Tw 12 TL /F2 10 Tf 0 0 0 rg (Important ) Tj /F1 10 Tf (- A new setting ) Tj /F3 10 Tf (OSCAR_MAIN_TEMPLATE_DIR ) Tj /F1 10 Tf (has been introduced as the template structure) Tj T* 0 Tw (has been altered. This requires your ) Tj /F3 10 Tf (TEMPLATE_DIRS ) Tj /F1 10 Tf (setting to be altered to include this folder, eg:) Tj T* ET
158
+Q
159
+Q
160
+q
161
+1 0 0 1 62.69291 596.8236 cm
162
+q
163
+q
164
+1 0 0 1 0 0 cm
165
+q
166
+1 0 0 1 6.6 6.6 cm
167
+q
168
+.662745 .662745 .662745 RG
169
+.5 w
170
+.960784 .960784 .862745 rg
171
+n -6 -6 468.6898 72 re B*
172
+Q
173
+q
174
+0 0 0 rg
175
+BT 1 0 0 1 0 50 Tm /F3 10 Tf 12 TL (from oscar import OSCAR_MAIN_TEMPLATE_DIR) Tj T* (TEMPLATE_DIRS = \() Tj T* (    location\('templates'\),) Tj T* (    OSCAR_MAIN_TEMPLATE_DIR) Tj T* (\)) Tj T* ET
176
+Q
177
+Q
178
+Q
179
+Q
180
+Q
181
+q
182
+1 0 0 1 62.69291 576.8236 cm
183
+q
184
+0 0 0 rg
185
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (If you want to extend one of Oscar's templates, then use:) Tj T* ET
186
+Q
187
+Q
188
+q
189
+1 0 0 1 62.69291 531.6236 cm
190
+q
191
+q
192
+1 0 0 1 0 0 cm
193
+q
194
+1 0 0 1 6.6 6.6 cm
195
+q
196
+.662745 .662745 .662745 RG
197
+.5 w
198
+.960784 .960784 .862745 rg
199
+n -6 -6 468.6898 36 re B*
200
+Q
201
+q
202
+0 0 0 rg
203
+BT 1 0 0 1 0 14 Tm /F3 10 Tf 12 TL (# base.html) Tj T* ({% extends 'oscar/base.html' %}) Tj T* ET
204
+Q
205
+Q
206
+Q
207
+Q
208
+Q
209
+q
210
+1 0 0 1 62.69291 511.6236 cm
211
+q
212
+0 0 0 rg
213
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (instead of:) Tj T* ET
214
+Q
215
+Q
216
+q
217
+1 0 0 1 62.69291 466.4236 cm
218
+q
219
+q
220
+1 0 0 1 0 0 cm
221
+q
222
+1 0 0 1 6.6 6.6 cm
223
+q
224
+.662745 .662745 .662745 RG
225
+.5 w
226
+.960784 .960784 .862745 rg
227
+n -6 -6 468.6898 36 re B*
228
+Q
229
+q
230
+0 0 0 rg
231
+BT 1 0 0 1 0 14 Tm /F3 10 Tf 12 TL (# base.html) Tj T* ({% extends 'templates/base.html' %}) Tj T* ET
232
+Q
233
+Q
234
+Q
235
+Q
236
+Q
237
+q
238
+1 0 0 1 62.69291 452.4236 cm
239
+Q
240
+q
241
+1 0 0 1 62.69291 452.4236 cm
242
+Q
243
+q
244
+1 0 0 1 62.69291 440.4236 cm
245
+0 0 0 rg
246
+BT /F1 10 Tf 12 TL ET
247
+q
248
+1 0 0 1 6 -3 cm
249
+q
250
+0 0 0 rg
251
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
252
+Q
253
+Q
254
+q
255
+1 0 0 1 23 -3 cm
256
+q
257
+0 0 0 rg
258
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Category management added to dashboard) Tj T* ET
259
+Q
260
+Q
261
+q
262
+Q
263
+Q
264
+q
265
+1 0 0 1 62.69291 434.4236 cm
266
+Q
267
+q
268
+1 0 0 1 62.69291 422.4236 cm
269
+0 0 0 rg
270
+BT /F1 10 Tf 12 TL ET
271
+q
272
+1 0 0 1 6 -3 cm
273
+q
274
+0 0 0 rg
275
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
276
+Q
277
+Q
278
+q
279
+1 0 0 1 23 -3 cm
280
+q
281
+0 0 0 rg
282
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Some improvements to how group/variant products are handled) Tj T* ET
283
+Q
284
+Q
285
+q
286
+Q
287
+Q
288
+q
289
+1 0 0 1 62.69291 422.4236 cm
290
+Q
291
+q
292
+1 0 0 1 62.69291 389.4236 cm
293
+q
294
+BT 1 0 0 1 0 3.5 Tm 21 TL /F2 17.5 Tf 0 0 0 rg (0.2.1 - 09 July 2012) Tj T* ET
295
+Q
296
+Q
297
+q
298
+1 0 0 1 62.69291 371.4236 cm
299
+q
300
+0 0 0 rg
301
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Mainly small bug-fixes to templates and javascript.) Tj T* ET
302
+Q
303
+Q
304
+q
305
+1 0 0 1 62.69291 338.4236 cm
306
+q
307
+BT 1 0 0 1 0 3.5 Tm 21 TL /F2 17.5 Tf 0 0 0 rg (0.2 - 01 June 2012) Tj T* ET
308
+Q
309
+Q
310
+q
311
+1 0 0 1 62.69291 308.4236 cm
312
+q
313
+0 0 0 rg
314
+BT 1 0 0 1 0 14 Tm /F1 10 Tf 12 TL .374692 Tw (Many components have been rewritten since 0.1 - Oscar is much more of a complete package now. New) Tj T* 0 Tw (features include:) Tj T* ET
315
+Q
316
+Q
317
+q
318
+1 0 0 1 62.69291 302.4236 cm
319
+Q
320
+q
321
+1 0 0 1 62.69291 302.4236 cm
322
+Q
323
+q
324
+1 0 0 1 62.69291 278.4236 cm
325
+0 0 0 rg
326
+BT /F1 10 Tf 12 TL ET
327
+q
328
+1 0 0 1 6 9 cm
329
+q
330
+0 0 0 rg
331
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
332
+Q
333
+Q
334
+q
335
+1 0 0 1 23 -3 cm
336
+q
337
+0 0 0 rg
338
+BT 1 0 0 1 0 14 Tm /F1 10 Tf 12 TL .419147 Tw (Dashboard for managing catalogue, offers, stock, vouchers and more. This includes statistics pages) Tj T* 0 Tw (to track performance.) Tj T* ET
339
+Q
340
+Q
341
+q
342
+Q
343
+Q
344
+q
345
+1 0 0 1 62.69291 272.4236 cm
346
+Q
347
+q
348
+1 0 0 1 62.69291 260.4236 cm
349
+0 0 0 rg
350
+BT /F1 10 Tf 12 TL ET
351
+q
352
+1 0 0 1 6 -3 cm
353
+q
354
+0 0 0 rg
355
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
356
+Q
357
+Q
358
+q
359
+1 0 0 1 23 -3 cm
360
+q
361
+0 0 0 rg
362
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Sample templates, CSS and JS to get a shop up and running in a minutes.) Tj T* ET
363
+Q
364
+Q
365
+q
366
+Q
367
+Q
368
+q
369
+1 0 0 1 62.69291 254.4236 cm
370
+Q
371
+q
372
+1 0 0 1 62.69291 242.4236 cm
373
+0 0 0 rg
374
+BT /F1 10 Tf 12 TL ET
375
+q
376
+1 0 0 1 6 -3 cm
377
+q
378
+0 0 0 rg
379
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
380
+Q
381
+Q
382
+q
383
+1 0 0 1 23 -3 cm
384
+q
385
+0 0 0 rg
386
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Updated documentation.) Tj T* ET
387
+Q
388
+Q
389
+q
390
+Q
391
+Q
392
+q
393
+1 0 0 1 62.69291 236.4236 cm
394
+Q
395
+q
396
+1 0 0 1 62.69291 224.4236 cm
397
+0 0 0 rg
398
+BT /F1 10 Tf 12 TL ET
399
+q
400
+1 0 0 1 6 -3 cm
401
+q
402
+0 0 0 rg
403
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
404
+Q
405
+Q
406
+q
407
+1 0 0 1 23 -3 cm
408
+q
409
+0 0 0 rg
410
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Reworking of shipping methods.) Tj T* ET
411
+Q
412
+Q
413
+q
414
+Q
415
+Q
416
+q
417
+1 0 0 1 62.69291 218.4236 cm
418
+Q
419
+q
420
+1 0 0 1 62.69291 206.4236 cm
421
+0 0 0 rg
422
+BT /F1 10 Tf 12 TL ET
423
+q
424
+1 0 0 1 6 -3 cm
425
+q
426
+0 0 0 rg
427
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
428
+Q
429
+Q
430
+q
431
+1 0 0 1 23 -3 cm
432
+q
433
+0 0 0 rg
434
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Automatic up-selling on the basket page. We now inform the user if they partially qualify for an offer.) Tj T* ET
435
+Q
436
+Q
437
+q
438
+Q
439
+Q
440
+q
441
+1 0 0 1 62.69291 206.4236 cm
442
+Q
443
+q
444
+1 0 0 1 62.69291 188.4236 cm
445
+q
446
+0 0 0 rg
447
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (The documentation still needs more work which we'll do over the next week or two.) Tj T* ET
448
+Q
449
+Q
450
+q
451
+1 0 0 1 62.69291 155.4236 cm
452
+q
453
+BT 1 0 0 1 0 3.5 Tm 21 TL /F2 17.5 Tf 0 0 0 rg (0.1) Tj T* ET
454
+Q
455
+Q
456
+q
457
+1 0 0 1 62.69291 143.4236 cm
458
+Q
459
+q
460
+1 0 0 1 62.69291 143.4236 cm
461
+Q
462
+q
463
+1 0 0 1 62.69291 107.4236 cm
464
+0 0 0 rg
465
+BT /F1 10 Tf 12 TL ET
466
+q
467
+1 0 0 1 6 21 cm
468
+q
469
+0 0 0 rg
470
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
471
+Q
472
+Q
473
+q
474
+1 0 0 1 23 -3 cm
475
+q
476
+0 0 0 rg
477
+BT 1 0 0 1 0 26 Tm /F1 10 Tf 12 TL .69561 Tw (Initial release - used in production by two major applications at Tangent but still quite rough around) Tj T* 0 Tw .874269 Tw (the edges. Many features were implemented directly in the applications rather than using a feature) Tj T* 0 Tw (from oscar.) Tj T* ET
478
+Q
479
+Q
480
+q
481
+Q
482
+Q
483
+q
484
+1 0 0 1 62.69291 101.4236 cm
485
+Q
486
+q
487
+1 0 0 1 62.69291 89.42362 cm
488
+0 0 0 rg
489
+BT /F1 10 Tf 12 TL ET
490
+q
491
+1 0 0 1 6 -3 cm
492
+q
493
+0 0 0 rg
494
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL 10.5 0 Td (\177) Tj T* -10.5 0 Td ET
495
+Q
496
+Q
497
+q
498
+1 0 0 1 23 -3 cm
499
+q
500
+0 0 0 rg
501
+BT 1 0 0 1 0 2 Tm /F1 10 Tf 12 TL (Docs are a bit stale and need updating in 0.2) Tj T* ET
502
+Q
503
+Q
504
+q
505
+Q
506
+Q
507
+q
508
+1 0 0 1 62.69291 89.42362 cm
509
+Q
510
+ 
511
+endstream
512
+endobj
513
+% 'R15': class PDFPageLabels 
514
+15 0 obj
515
+% Document Root
516
+<< /Nums [ 0
517
+ 16 0 R ] >>
518
+endobj
519
+% 'R16': class PDFPageLabel 
520
+16 0 obj
521
+% None
522
+<< /S /D
523
+ /St 1 >>
524
+endobj
525
+xref
526
+0 17
527
+0000000000 65535 f
528
+0000000113 00000 n
529
+0000000233 00000 n
530
+0000000398 00000 n
531
+0000000573 00000 n
532
+0000000732 00000 n
533
+0000001011 00000 n
534
+0000001167 00000 n
535
+0000001422 00000 n
536
+0000001545 00000 n
537
+0000001706 00000 n
538
+0000001899 00000 n
539
+0000002091 00000 n
540
+0000002237 00000 n
541
+0000002344 00000 n
542
+0000009089 00000 n
543
+0000009182 00000 n
544
+trailer
545
+<< /ID 
546
+ % ReportLab generated PDF document -- digest (http://www.reportlab.com) 
547
+ [(3\251D\017\363\251\343\356\2041t\304e\2066D) (3\251D\017\363\251\343\356\2041t\304e\2066D)] 
548
+
549
+ /Info 7 0 R
550
+ /Root 6 0 R
551
+ /Size 17 >>
552
+startxref
553
+9229
554
+%%EOF

+ 27
- 0
CHANGELOG.rst Vedi File

@@ -2,6 +2,33 @@
2 2
 Changelog
3 3
 =========
4 4
 
5
+0.3 
6
+~~~
7
+
8
+**Important** - A new setting ``OSCAR_MAIN_TEMPLATE_DIR`` has been introduced
9
+as the template structure has been altered.  This requires your
10
+``TEMPLATE_DIRS`` setting to be altered to include this folder, eg::
11
+
12
+    from oscar import OSCAR_MAIN_TEMPLATE_DIR
13
+    TEMPLATE_DIRS = (
14
+        location('templates'),
15
+        OSCAR_MAIN_TEMPLATE_DIR
16
+    )
17
+
18
+If you want to extend one of Oscar's templates, then use::
19
+
20
+    # base.html
21
+    {% extends 'oscar/base.html' %}
22
+
23
+instead of::
24
+
25
+    # base.html
26
+    {% extends 'templates/base.html' %}
27
+
28
+* Category management added to dashboard
29
+
30
+* Some improvements to how group/variant products are handled
31
+
5 32
 0.2.1 - 09 July 2012
6 33
 ~~~~~~~~~~~~~~~~~~~~
7 34
 

+ 5
- 0
docs/source/getting_started.rst Vedi File

@@ -75,6 +75,11 @@ and set your auth backends to::
75 75
 
76 76
 to allow customers to sign in using an email address rather than a username.
77 77
 
78
+Modify your ``TEMPLATE_DIRS`` to include the main Oscar template directory::
79
+
80
+    from oscar import OSCAR_MAIN_TEMPLATE_DIR
81
+    TEMPLATE_DIRS = TEMPLATE_DIRS + (OSCAR_MAIN_TEMPLATE_DIR,) 
82
+
78 83
 Oscar currently uses Haystack for search so you need to specify::
79 84
 
80 85
     HAYSTACK_SITECONF = 'oscar.search_sites'

+ 6
- 9
oscar/__init__.py Vedi File

@@ -20,15 +20,12 @@ def get_version():
20 20
     return version
21 21
 
22 22
 
23
-# Cheeky setting that can be used to override templates and give them
24
-# the same name.  You can use:
25
-#
26
-# {% includes 'templates/basket/basket.html' %}
27
-#
28
-# when you want to create a new template with path 'basket/basket.html'
29
-# Just add this setting to the end of your TEMPLATE_DIRS setting.
30
-OSCAR_PARENT_TEMPLATE_DIR = os.path.dirname(os.path.abspath(__file__))
31
-
23
+# Cheeky setting that allows each template to be accessible by two paths. 
24
+# Eg: the template 'oscar/templates/oscar/base.html' can be accessed via both
25
+# 'base.html' and 'oscar/base.html'.  This allows Oscar's templates to be 
26
+# extended by templates with the same filename
27
+OSCAR_MAIN_TEMPLATE_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)),
28
+                                       'templates/oscar')
32 29
 
33 30
 OSCAR_CORE_APPS = [
34 31
     'oscar',

oscar/templates/404.html → oscar/templates/oscar/404.html Vedi File


oscar/templates/500.html → oscar/templates/oscar/500.html Vedi File


oscar/templates/README.rst → oscar/templates/oscar/README.rst Vedi File


oscar/templates/base.html → oscar/templates/oscar/base.html Vedi File


oscar/templates/basket/basket.html → oscar/templates/oscar/basket/basket.html Vedi File


oscar/templates/basket/partials/basket_quick.html → oscar/templates/oscar/basket/partials/basket_quick.html Vedi File


oscar/templates/basket/saved_list.html → oscar/templates/oscar/basket/saved_list.html Vedi File


oscar/templates/catalogue/browse.html → oscar/templates/oscar/catalogue/browse.html Vedi File


oscar/templates/catalogue/detail.html → oscar/templates/oscar/catalogue/detail.html Vedi File


oscar/templates/catalogue/partials/add_to_basket_form.html → oscar/templates/oscar/catalogue/partials/add_to_basket_form.html Vedi File


oscar/templates/catalogue/partials/add_to_basket_form_compact.html → oscar/templates/oscar/catalogue/partials/add_to_basket_form_compact.html Vedi File


oscar/templates/catalogue/partials/gallery.html → oscar/templates/oscar/catalogue/partials/gallery.html Vedi File


oscar/templates/catalogue/partials/pagination.html → oscar/templates/oscar/catalogue/partials/pagination.html Vedi File


oscar/templates/catalogue/partials/product.html → oscar/templates/oscar/catalogue/partials/product.html Vedi File


oscar/templates/catalogue/partials/stock_record.html → oscar/templates/oscar/catalogue/partials/stock_record.html Vedi File


oscar/templates/checkout/checkout.html → oscar/templates/oscar/checkout/checkout.html Vedi File


oscar/templates/checkout/gateway.html → oscar/templates/oscar/checkout/gateway.html Vedi File


oscar/templates/checkout/layout.html → oscar/templates/oscar/checkout/layout.html Vedi File


oscar/templates/checkout/nav.html → oscar/templates/oscar/checkout/nav.html Vedi File


oscar/templates/checkout/payment_details.html → oscar/templates/oscar/checkout/payment_details.html Vedi File


oscar/templates/checkout/preview.html → oscar/templates/oscar/checkout/preview.html Vedi File


oscar/templates/checkout/shipping_address.html → oscar/templates/oscar/checkout/shipping_address.html Vedi File


oscar/templates/checkout/shipping_methods.html → oscar/templates/oscar/checkout/shipping_methods.html Vedi File


oscar/templates/checkout/thank_you.html → oscar/templates/oscar/checkout/thank_you.html Vedi File


oscar/templates/checkout/user_address_delete.html → oscar/templates/oscar/checkout/user_address_delete.html Vedi File


oscar/templates/checkout/user_address_form.html → oscar/templates/oscar/checkout/user_address_form.html Vedi File


oscar/templates/customer/address-book.html → oscar/templates/oscar/customer/address-book.html Vedi File


oscar/templates/customer/address-delete.html → oscar/templates/oscar/customer/address-delete.html Vedi File


oscar/templates/customer/address-form.html → oscar/templates/oscar/customer/address-form.html Vedi File


oscar/templates/customer/anon-order.html → oscar/templates/oscar/customer/anon-order.html Vedi File


oscar/templates/customer/change-password.html → oscar/templates/oscar/customer/change-password.html Vedi File


oscar/templates/customer/email-history.html → oscar/templates/oscar/customer/email-history.html Vedi File


oscar/templates/customer/email.html → oscar/templates/oscar/customer/email.html Vedi File


oscar/templates/customer/emails/commtype_order_placed_body.html → oscar/templates/oscar/customer/emails/commtype_order_placed_body.html Vedi File


oscar/templates/customer/emails/commtype_order_placed_body.txt → oscar/templates/oscar/customer/emails/commtype_order_placed_body.txt Vedi File


oscar/templates/customer/emails/commtype_order_placed_subject.txt → oscar/templates/oscar/customer/emails/commtype_order_placed_subject.txt Vedi File


oscar/templates/customer/emails/commtype_registration_body.html → oscar/templates/oscar/customer/emails/commtype_registration_body.html Vedi File


oscar/templates/customer/emails/commtype_registration_body.txt → oscar/templates/oscar/customer/emails/commtype_registration_body.txt Vedi File


oscar/templates/customer/emails/commtype_registration_sms.txt → oscar/templates/oscar/customer/emails/commtype_registration_sms.txt Vedi File


oscar/templates/customer/emails/commtype_registration_subject.txt → oscar/templates/oscar/customer/emails/commtype_registration_subject.txt Vedi File


oscar/templates/customer/history/recently-viewed-products.html → oscar/templates/oscar/customer/history/recently-viewed-products.html Vedi File


oscar/templates/customer/login_registration.html → oscar/templates/oscar/customer/login_registration.html Vedi File


oscar/templates/customer/order-history.html → oscar/templates/oscar/customer/order-history.html Vedi File


oscar/templates/customer/order.html → oscar/templates/oscar/customer/order.html Vedi File


oscar/templates/customer/profile-form.html → oscar/templates/oscar/customer/profile-form.html Vedi File


oscar/templates/customer/profile.html → oscar/templates/oscar/customer/profile.html Vedi File


oscar/templates/customer/registration.html → oscar/templates/oscar/customer/registration.html Vedi File


oscar/templates/dashboard/catalogue/category_delete.html → oscar/templates/oscar/dashboard/catalogue/category_delete.html Vedi File


oscar/templates/dashboard/catalogue/category_form.html → oscar/templates/oscar/dashboard/catalogue/category_form.html Vedi File


oscar/templates/dashboard/catalogue/category_list.html → oscar/templates/oscar/dashboard/catalogue/category_list.html Vedi File


oscar/templates/dashboard/catalogue/product_list.html → oscar/templates/oscar/dashboard/catalogue/product_list.html Vedi File


oscar/templates/dashboard/catalogue/product_update.html → oscar/templates/oscar/dashboard/catalogue/product_update.html Vedi File


oscar/templates/dashboard/catalogue/stockalert_list.html → oscar/templates/oscar/dashboard/catalogue/stockalert_list.html Vedi File


oscar/templates/dashboard/index.html → oscar/templates/oscar/dashboard/index.html Vedi File


oscar/templates/dashboard/layout.html → oscar/templates/oscar/dashboard/layout.html Vedi File


oscar/templates/dashboard/offers/benefit_form.html → oscar/templates/oscar/dashboard/offers/benefit_form.html Vedi File


oscar/templates/dashboard/offers/condition_form.html → oscar/templates/oscar/dashboard/offers/condition_form.html Vedi File


oscar/templates/dashboard/offers/metadata_form.html → oscar/templates/oscar/dashboard/offers/metadata_form.html Vedi File


oscar/templates/dashboard/offers/offer_delete.html → oscar/templates/oscar/dashboard/offers/offer_delete.html Vedi File


oscar/templates/dashboard/offers/offer_detail.html → oscar/templates/oscar/dashboard/offers/offer_detail.html Vedi File


oscar/templates/dashboard/offers/offer_list.html → oscar/templates/oscar/dashboard/offers/offer_list.html Vedi File


oscar/templates/dashboard/offers/preview.html → oscar/templates/oscar/dashboard/offers/preview.html Vedi File


oscar/templates/dashboard/offers/step_form.html → oscar/templates/oscar/dashboard/offers/step_form.html Vedi File


oscar/templates/dashboard/orders/line_detail.html → oscar/templates/oscar/dashboard/orders/line_detail.html Vedi File


oscar/templates/dashboard/orders/order_detail.html → oscar/templates/oscar/dashboard/orders/order_detail.html Vedi File


oscar/templates/dashboard/orders/order_list.html → oscar/templates/oscar/dashboard/orders/order_list.html Vedi File


oscar/templates/dashboard/orders/shippingaddress_form.html → oscar/templates/oscar/dashboard/orders/shippingaddress_form.html Vedi File


oscar/templates/dashboard/orders/statistics.html → oscar/templates/oscar/dashboard/orders/statistics.html Vedi File


oscar/templates/dashboard/pages/delete.html → oscar/templates/oscar/dashboard/pages/delete.html Vedi File


oscar/templates/dashboard/pages/index.html → oscar/templates/oscar/dashboard/pages/index.html Vedi File


oscar/templates/dashboard/pages/update.html → oscar/templates/oscar/dashboard/pages/update.html Vedi File


oscar/templates/dashboard/partials/nav.html → oscar/templates/oscar/dashboard/partials/nav.html Vedi File


oscar/templates/dashboard/promotions/delete.html → oscar/templates/oscar/dashboard/promotions/delete.html Vedi File


oscar/templates/dashboard/promotions/delete_pagepromotion.html → oscar/templates/oscar/dashboard/promotions/delete_pagepromotion.html Vedi File


oscar/templates/dashboard/promotions/form.html → oscar/templates/oscar/dashboard/promotions/form.html Vedi File


oscar/templates/dashboard/promotions/handpickedproductlist_form.html → oscar/templates/oscar/dashboard/promotions/handpickedproductlist_form.html Vedi File


oscar/templates/dashboard/promotions/page_detail.html → oscar/templates/oscar/dashboard/promotions/page_detail.html Vedi File


oscar/templates/dashboard/promotions/pagepromotion_list.html → oscar/templates/oscar/dashboard/promotions/pagepromotion_list.html Vedi File


oscar/templates/dashboard/promotions/promotion_list.html → oscar/templates/oscar/dashboard/promotions/promotion_list.html Vedi File


oscar/templates/dashboard/ranges/range_delete.html → oscar/templates/oscar/dashboard/ranges/range_delete.html Vedi File


oscar/templates/dashboard/ranges/range_form.html → oscar/templates/oscar/dashboard/ranges/range_form.html Vedi File


oscar/templates/dashboard/ranges/range_list.html → oscar/templates/oscar/dashboard/ranges/range_list.html Vedi File


oscar/templates/dashboard/ranges/range_product_list.html → oscar/templates/oscar/dashboard/ranges/range_product_list.html Vedi File


oscar/templates/dashboard/reports/index.html → oscar/templates/oscar/dashboard/reports/index.html Vedi File


oscar/templates/dashboard/reports/partials/offer_report.html → oscar/templates/oscar/dashboard/reports/partials/offer_report.html Vedi File


oscar/templates/dashboard/reports/partials/open_basket_report.html → oscar/templates/oscar/dashboard/reports/partials/open_basket_report.html Vedi File


oscar/templates/dashboard/reports/partials/order_report.html → oscar/templates/oscar/dashboard/reports/partials/order_report.html Vedi File


oscar/templates/dashboard/reports/partials/product_report.html → oscar/templates/oscar/dashboard/reports/partials/product_report.html Vedi File


oscar/templates/dashboard/reports/partials/submitted_basket_report.html → oscar/templates/oscar/dashboard/reports/partials/submitted_basket_report.html Vedi File


oscar/templates/dashboard/reports/partials/user_report.html → oscar/templates/oscar/dashboard/reports/partials/user_report.html Vedi File


oscar/templates/dashboard/reports/partials/voucher_report.html → oscar/templates/oscar/dashboard/reports/partials/voucher_report.html Vedi File


oscar/templates/dashboard/reviews/review_delete.html → oscar/templates/oscar/dashboard/reviews/review_delete.html Vedi File


oscar/templates/dashboard/reviews/review_list.html → oscar/templates/oscar/dashboard/reviews/review_list.html Vedi File


oscar/templates/dashboard/reviews/review_update.html → oscar/templates/oscar/dashboard/reviews/review_update.html Vedi File


oscar/templates/dashboard/users/detail.html → oscar/templates/oscar/dashboard/users/detail.html Vedi File


oscar/templates/dashboard/users/index.html → oscar/templates/oscar/dashboard/users/index.html Vedi File


Dato che sono stati cambiati molti file in questo diff, alcuni di essi non verranno mostrati

Loading…
Annulla
Salva