12 Jun
2002
12 Jun
'02
6:52 p.m.
Marco Catunda writes:
.... It's right. The request.PARENTS[0] has no menu_array object, but, look the help of __getitem__(id) of objectmanager
"Returns a child object given a child id. If there is no child with the given id, returns None. This method makes it easy to refer to children that have id with file extensions. For example:"
I think the help is wrong. Is it true? Yes, it is obviously wrong.
What the best way to solution it? Do I have to use try: catch:? A "try: ... except KeyError: ..." around the access.
Dieter