Hi All I am kind of new to pylons and atm just testing it out.
i have an url variable called RAPid so my url looks like /radar/DiscoAsset/?RAPid=11993798156038932 This works perfectly but when if i leave RAPid out i get an error from my controller's __init__() /radar/DiscoAsset/ File '/nisusers/juw/checkout/rap/rap/rap/controllers/radar/ DiscoAsset.py', line 12 in __init__ self.RAPid = request.params['RAPid'] File '/usr/local/lib64/python2.4/site-packages/Paste-1.4.2-py2.4.egg/ paste/util/multidict.py', line 259 in __getitem__ return self._decode_value(self.multi.__getitem__(key)) File '/usr/local/lib64/python2.4/site-packages/Paste-1.4.2-py2.4.egg/ paste/util/multidict.py', line 36 in __getitem__ raise KeyError(repr(key)) KeyError: "'RAPid'" it comes from this line self.RAPid = request.params['RAPid'] it seems an exception is raised if request.params cant findt the variable defined. Is there some other way to get URL variabels or to change the behavior of request.params. Hope you can help me -Jeppe Walther --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
