- Timestamp:
- 06/18/09 14:03:24 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/pylucid_project/apps/pylucid_update/views.py
r2049 r2050 259 259 title = "Update PyLucid v0.8 templates" 260 260 out = SimpleStringIO() 261 out.write(title)262 261 263 262 def replace(content, out, old, new): … … 270 269 271 270 272 for template in Template.objects.filter(name__istartswith=settings.SITE_TEMPLATE_PREFIX): 273 out.write("\nUpdate Template: '%s'" % template.name) 271 for template in Template.objects.filter(name__istartswith=settings.SITE_TEMPLATE_PREFIX): 272 out.write("\n______________________________________________________________") 273 out.write("Update Template: '%s'\n" % template.name) 274 274 275 275 content = template.content … … 356 356 357 357 def update08styles(request): 358 """ 359 TODO: We should not add any styles... We should create a new EditableHtmlHeadFile stylesheet 360 file and add this to all Design! 361 """ 358 362 title = "Update PyLucid v0.8 styles" 359 363 out = SimpleStringIO() 360 out.write(title)361 364 362 365 def replace(content, out, old, new): … … 373 376 styles = EditableHtmlHeadFile.objects.filter(filepath__istartswith=settings.SITE_TEMPLATE_PREFIX) 374 377 styles = styles.filter(filepath__iendswith=".css") 375 for style in styles: 376 out.write("\nUpdate Styles: '%s'" % style.filepath) 378 for style in styles: 379 out.write("\n______________________________________________________________") 380 out.write("\nUpdate Style: '%s'" % style.filepath) 377 381 378 382 content = style.content