When I cause an error these are the values stored:

Variables  global request <Storage {'function': 'whoWeAre', 'body': 
<cStri.../applications/init/', 'post_vars': <Storage {}>}>  request.args 
['5']  function 'whoWeAre'  global session <Storage {'response_args': '5', 
'_user_agent': {...eTable/5']], 'homepage': True, 'accountID': 2}>}>  

  Context 

locals request session response 
locals
function:
'whoWeAre'
session5:
about_dropdown:
who_we_are
False
/about/whoWeAre/5
what_we_do
False
/about/whatWeDo/5
how_we_work
False
/about/howWeWork/5
where_we_are
False
/about/whereWeAre/5
aboutnav:
True
accountID:
2
address:
addressType:
1
houseNumber:
houseNumberExtension:
locality:
nodeID:
5
postalCode:

street:

type:
WORK
calendar_dropdown:
opening_hours
False
/calendar/openingHours/5
event_list
False
/calendar/eventList/5
timetable
False
/calendar/timetable/5
course_table
False
/calendar/courseTable/5
calendarnav:
True
container:
False
courseTable:
True
customtheme:
None
eventList:
True
googlemaps:
True
hero:
isImage:
True
isLogo:
False
nodeID:
5
url:
nodeID5.jpg
herotext:
None
homepage:
True
howWeWork:
True
id:
5
navbarfixedtop:
False
node:
computedName:
computedSubClass:
1
id:
5
openingHours:
True
pluralID:
2
promounit:
True
relatednames:
True
site_menu:
home
False
/site/index/5
about
False
#
calendar
False
#
sitenav:
True
socialmedia:
True
telecom:
nodeID:
5
telecomTypeID:
1
type:
WORK
value:

nodeID:
5
telecomTypeID:
4
type:
WORK
value:
nodeID:
5
telecomTypeID:
5
type:
WORK
value:
theme:
None
timetable:
True
whatWeDo:
True
whereWeAre:
True
whoWeAre:
True
auth:
None
flash:
None
response_args:
5






So function is 'whoWeAre' session[5] stores whoWeAre is True, why doesn't:

elif session[request.args(0)].function:
        return True

work?


Kind regards,

Annet






-- 



Reply via email to