Hi peter, since you are a beginner of web2py even python, why not just come back to learn Python [1] and then web2py [2]? Don't expect to learn their "syntax" on a maillist. Please, cherish your time, as well as others. If, after your syntax learning, you have some design question or puzzles, feel free to come back and lots of people will be glad to help you. By the way, you join this maillist one year ago and sent 100+ posts. Didn't you learn some python and web2py since then?
[1] http://docs.python.org/tutorial/ [2] http://www.web2py.com/book On May11, 12:21am, pk <peter.kirch...@youngdesigners.de> wrote: > ok thank you very much, > but i am a beginner of web2py and python. > what i have to do into a controller, what into the view? > how is the syntax? > > peter > > On 10 Mai, 18:17, Vasile Ermicioi <elff...@gmail.com> wrote: > > > > > here is a sketch: > > > db.define_table('what_to_see', Field('html_code', 'text')) > > db.define_table('what_to_see_queue', Field('user', db.users), > > Field('when_allowed_to_see', 'datetime')) > > > if user_not_in_queue: > > if last_user_allowed_time + 5minutes < time_now: > > when_allowed_to_see = time_now > > else: > > when_allowed_to_see = time_now > > add_user_to_queue_with_his_time > > if when_allowed_to_see > time_now: > > display_refresh_in (when_allowed_to_see - time_now) > > and_a_script_to_refresh_page_after_a_period_of_time > > else: > > display_html_code > > delete_user_from_queue