Show
Ignore:
Timestamp:
06/18/09 14:03:24 (14 months ago)
Author:
JensDiemer
Message:

nicer output

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/pylucid_project/apps/pylucid_update/views.py

    r2049 r2050  
    259259    title = "Update PyLucid v0.8 templates" 
    260260    out = SimpleStringIO() 
    261     out.write(title) 
    262261     
    263262    def replace(content, out, old, new): 
     
    270269         
    271270     
    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) 
    274274         
    275275        content = template.content 
     
    356356 
    357357def 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    """ 
    358362    title = "Update PyLucid v0.8 styles" 
    359363    out = SimpleStringIO() 
    360     out.write(title) 
    361364     
    362365    def replace(content, out, old, new): 
     
    373376    styles = EditableHtmlHeadFile.objects.filter(filepath__istartswith=settings.SITE_TEMPLATE_PREFIX) 
    374377    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) 
    377381         
    378382        content = style.content