lektor / lektor-website

The main lektor website.
https://www.getlektor.com/
Other
160 stars 134 forks source link

Update contents.lr #244

Closed jirib closed 5 years ago

jirib commented 6 years ago

.iteritems() does not work in python3/jinja2


...
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)                                                                                                                                                                                                                     
Started source info update                                                                                                                                                                                                                                                      
Finished source info update in 0.03 sec                                                                                                                                                                                                                                         
Started build                                                                                                                                                                                                                                                                   
U index.html                                                                                                                                                                                                                                                                    
  E index.html (jinja2.exceptions.UndefinedError: 'collections.OrderedDict object' has no attribute 'iteritems')                                                                                                                                                                
U kontakt/index.html                                                                                                                                                                                                                                                            
  E kontakt/index.html (jinja2.exceptions.UndefinedError: 'collections.OrderedDict object' has no attribute 'iteritems')                                                                                                                                                        
U projects/index.html                                                                                                                                     
...`
nixjdm commented 5 years ago

How about we take your default, but have a note next to (or commented out within the snippet) for the Python 2 version? Lektor still does support Python 2.

runfalk commented 5 years ago

Closing this since it was fixed in #271 earlier this year.