Skip to content

Commit

Permalink
CTK.Dialogs were not working of Safari because it refused to parse
Browse files Browse the repository at this point in the history
arrays with a 'class' entry. This patch should fix bug #823:
http://bugs.cherokee-project.com/823

git-svn-id: svn://cherokee-project.com/CTK/trunk@4977 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
alobbs committed Apr 27, 2010
1 parent 53f1c05 commit c0e0501
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CTK/Dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ def py2js_dic (d):
for key in d:
val = d[key]
if type(val) == bool:
js_pairs.append ('%s: %s' %(key, ('false', 'true')[val]))
js_pairs.append ("'%s': %s" %(key, ('false', 'true')[val]))
elif type(val) == int:
js_pairs.append ('%s: %d' %(key, val))
js_pairs.append ("'%s': %d" %(key, val))
elif type(val) == str:
if '/* code */' in val:
js_pairs.append ("%s: %s" %(key, val))
js_pairs.append ("'%s': %s" %(key, val))
else:
js_pairs.append ("%s: '%s'" %(key, val))
js_pairs.append ("'%s': '%s'" %(key, val))
else:
assert false, "Unknown data type"

Expand Down

0 comments on commit c0e0501

Please sign in to comment.