team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00343
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 537: replace the functional dictionary initialization, doesn't work in py2.6
------------------------------------------------------------
revno: 537
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Tue 2013-01-08 21:03:20 +0100
message:
replace the functional dictionary initialization, doesn't work in py2.6
modified:
src/alfanous-django/wui/views.py
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-django/wui/views.py'
--- src/alfanous-django/wui/views.py 2013-01-08 14:45:07 +0000
+++ src/alfanous-django/wui/views.py 2013-01-08 20:03:20 +0000
@@ -112,7 +112,10 @@
# language direction properties
bidi_val = language_info['bidi']
fields_mapping_en_ar = raw_show["show"]["fields_reverse"]
- fields_mapping_en_en = { k:k for k in fields_mapping_en_ar.keys() }
+ fields_mapping_en_en = {}
+ for k in fields_mapping_en_ar.keys():
+ fields_mapping_en_en[k] = k
+ #python 2.7: { k:k for k in fields_mapping_en_ar.keys() }
bidi_properties = {
False : {
"val": bidi_val,