Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update contents.lr #244

Closed
wants to merge 1 commit into from

Conversation

@jirib
Copy link

commented Sep 2, 2018

.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                                                                                                                                     
...`
.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

This comment has been minimized.

Copy link
Member

commented Oct 13, 2018

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

This comment has been minimized.

Copy link
Contributor

commented Oct 9, 2019

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

@runfalk runfalk closed this Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.