Jump to content


Charly2001

Member Since 05 Dec 2013
Offline Last Active May 08 2014 05:21 AM
-----

Posts I've Made

In Topic: Chapter 10 App.yaml

29 April 2014 - 12:51 PM

app.yaml looks like this:

application: hfwwgapp-hrd
version: 4
runtime: python27
api_version: 1
threadsafe: true

handlers:
# - url: /static
# static_dir: static

- url: /.*
script: sayhello.app
# login: required


In Topic: Chapter 7

05 April 2014 - 01:22 PM

SORRY i'm having trouble with this editor:

for each_athlete in athletes:
print(yate.radio_button("which_athlete", athletes[each_athlete].name))
print(yate.end_form("Select"))
print(yate.include_footer({"Home": "/index.html"}))


Charly

In Topic: Chapter 7

05 April 2014 - 01:19 PM

Bille,

third line from the bottom (after
for each_athlete in athletes: )

There is an indentation missing: it should be:

for each_athlete in athletes:
print(yate.radio_button("which_athlete", athletes[each_athlete].name))


I tried it and it works.

Cheers
Charly

In Topic: Chapter 7

05 April 2014 - 01:17 PM

Bille,

third line from the bottom (after
for each_athlete in athletes: )

There is an indentation missing: it should be:

for each_athlete in athletes:
print(yate.radio_button("which_athlete", athletes[each_athlete].name))

In Topic: Chapter 7

29 March 2014 - 01:09 PM

I'm going to try an hypothesis: I bet the path to your executable python3 file is wrong

In my distribution of Ubuntu this executable is in folder /usr/bin . So the top of my generate_list.py would be #! /usr/bin/python3
Not /usr/lib64/python3

I hope that i guessed right and that you are successfull

Chao