Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
cook -> add_html
  • Loading branch information
aclark4life committed Jul 19, 2015
1 parent 7317c46 commit 5cfb985
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions zope2_bootstrap/zmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def apply_patch(scope, original, replacement):
target += ' border="0">'
html = WARNING
main = ObjectManager.manage_tabs
cook(html, main, target)
add_html(html, main, target)

# Add logo

Expand All @@ -81,11 +81,12 @@ def apply_patch(scope, original, replacement):
html = ZOPE_LOGO

main = ObjectManager.manage_tabs
cook(html, main, target)
add_html(html, main, target)


def cook(html, main, target):
def add_html(html, main, target):
"""
Add HTML to template and set cooked attribute
"""

orig = main.read()
Expand Down

0 comments on commit 5cfb985

Please sign in to comment.