I am struggling to get the syntax correct. What is my mistake?

response.menu = [
   [T('Home'), False,
    URL(request.application,'default','index'), []],
   [T('Service Providers'),  False,
    URL(request.application,'default','sp'), []],
   [T('Forms'), False, None,[['Curriculum Management', False,
                              URL(request.aplication, 'default' ,
'clm_forms'),[]]]],
   [T('Schools'), False,
    URL(request.application,'default','index'), []],
   [T('Learners'), False,
    URL(request.application,'default','learner'), []],
   [T('Teachers'), False,
    URL(request.application,'default','teacher'), []],
   [T('Reports'), False,
    URL(request.application,'default','reports'), []]

Traceback (most recent call last):
  File "/Users/js/Programmeer/zenex/web2py/gluon/restricted.py", line
188, in restricted
    exec ccode in environment
  File "/Users/js/Programmeer/zenex/web2py/applications/zenex2/models/menu.py",
line 21, in <module>
    URL(request.aplication, 'default' , 'clm_forms'),[]]]],
  File "/Users/js/Programmeer/zenex/web2py/gluon/html.py", line 228, in _URL
    return URL(*args, **kwargs)
  File "/Users/js/Programmeer/zenex/web2py/gluon/html.py", line 188, in URL
    raise SyntaxError, 'not enough information to build the url'
SyntaxError: not enough information to build the url
   ]
Regards
Johann


-- 
 May grace and peace be yours in abundance through the full knowledge
of God and of Jesus our Lord!  His divine power has given us
everything we need for life and godliness through the full knowledge
of the one who called us by his own glory and excellence.
                                                    2 Pet. 1:2b,3a

Reply via email to