#import todolib, web
logo #if todolib.valid_cookie() #set session = todolib.getSession() TODOS  |  USERS  |    MyTODOtool ($session['username'])  |  Logout #else Login  |  Register #end if
 
#if $message
$message
#else   #end if
   
#if todolib.valid_cookie() == True #if $web.ctx.path.split('/')[1] == 'todo'

TODO

Add
List

#end if #if $web.ctx.path.split('/')[1] == 'user'

USER

#if $web.ctx.path.split('/')[1] != 'my' #if session['admin'] == 1 Add
#end if List #end if #end if #if $web.ctx.path.split('/')[1] == 'my'

MyTODOtool

My TODOs
#set userid = todolib.getSession()['userid'] Preferences

#end if

#end if