One more comment. If your app is simple enough (most are), to use just
one controller, it does not have much difference between define your
menu in models/menu.py or at the beginning of controllers/default.py,
and the latter gives you most flexibility to control what your menu
shows up.
On Jul12,
Hello Casey,
the problem is models files (including menu.py) are executed
alphabetically before the controller.py. It is possible that your menu
is built before the session variables are updated. This is likely the
case if the session is modified in the controller.
If only a few functions make ch
2 matches
Mail list logo