Skip to content

Commit

Permalink
Try to avoid lists as constructor parameters. They are quite prone to
Browse files Browse the repository at this point in the history
introduce inter-request issue (they behave as static properties).

git-svn-id: svn://cherokee-project.com/CTK/trunk@6292 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Feb 14, 2011
1 parent 53702f1 commit fece7e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CTK/Page.py
Expand Up @@ -85,7 +85,7 @@ def uniq (seq):
return noDupes

class Page (Container):
def __init__ (self, template=None, headers=None, helps=[], **kwargs):
def __init__ (self, template=None, headers=None, helps=None, **kwargs):
Container.__init__ (self, **kwargs)
self.js_header_end = True

Expand All @@ -100,7 +100,7 @@ def __init__ (self, template=None, headers=None, helps=[], **kwargs):
self._template = Template (content = PAGE_TEMPLATE_DEFAULT)

self._helps = []
for entry in helps:
for entry in helps or []:
self._helps.append (HelpEntry (entry[1], entry[0]))

def AddHeaders (self, headers):
Expand Down

0 comments on commit fece7e2

Please sign in to comment.