plisk wrote: > Yeah, its OK to have more than one value of the same param and wrap all > of them in the list. But when you have only one parameter value passed > making a list for it is at least inconsistent with the value you get > from request.GET['param'] which is just a scalar and this also breaks > some parts in admin as was mentioned.
If you have only one parameter simply use [0] to access it. Returning a list or a string depending on the number of arguments is a bad idea, because you have to check everytime which type of value it is. Generating more code and a easy target for mistakes and security flaws. You can't trust any values comming from the client, somebody could try to attack your site by altering the urls by hand. I think its the best solution that way. request.GET['param'] should also return a list or tuple of values. kindly regards Daniel