nevermind, just being atwit
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMA
On 10/29/07, schlam <[EMAIL PROTECTED]> wrote:
>
>
> using 0.96 am trying to iterate through a MultiValueDict using
>
> for i,j in MultiValueDict.items():
> print i, j
>
> is this a problem/feature/bug if so does someone know of a workaround?
Is what a problem
using 0.96 am trying to iterate through a MultiValueDict using
for i,j in MultiValueDict.items():
print i, j
is this a problem/feature/bug if so does someone know of a workaround?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
t AFTER fetching from the cache the multivalue list is now
part of another list. list(list). Cache and fetch again and we have
list(list(list)). Now it's just taunting me:
In [11]: m=MultiValueDict()
In [12]: m['Testing']
In [13]: m['Testing']='Single element in a s
While the __get__ function gives same results as a dict would,
iteritems() doesn't. I'd like to use my GET/POST values in a function
that uses iteritems, but it outputs even single values as lists.
Is there a nice way to transform MultiValueDict into a normal dict, or
the
the place. new_data = place.__dict__however, when having a model with many-to-many and foreign-key-relationships I seem to need a MultiValueDict as the keys for the relations are not included in the dict.
How can I get at such a MultiValueDict?T
Hi Andrew,This isn't a bug -- it's intended behavior. When you access an element
in a MultiValueDict, it returns the last item, as a string. See thedocs for more info:http://www.djangoproject.com/documentation/request_response/#querydict-objects
If you want to get a list instead o
'3'
>
> There is regular string - last value from 'costs'. Don't know is it fixed
> or not, if yes, could you give me patch or solution for Django 0.91
> how I can obtain list instead of string?
Hi Andrew,
This isn't a bug -- it's intended be
Hello!
I'm using Django 0.91 and found some stranges related to MultiValueDict.
Here is some code based on reciept from Django cookbook (manipulator related):
class ServiceEdit(Manipulator):
.
def complete(self, request, data):
debug('complete: %s' %repr(data)
On 12/28/05, patrick k <[EMAIL PROTECTED]> wrote:
> {'body': ['some body text'], 'project': ['1'], 'note': ['1'], 'user':
> ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]'],
> 'byuser': ['1']}
>
> now i´m trying to get all "users" to send them an email.
> but with something like pos
thanks a lot.
>
> On 12/28/05, patrick k <[EMAIL PROTECTED]> wrote:
>> now i´m trying to get all "users" to send them an email.
>> but with something like post_data["user"] i only get "[EMAIL PROTECTED]".
>>
>> so, how can i get all the values for "user" within my dict?
>
> You might want to t
On 12/28/05, patrick k <[EMAIL PROTECTED]> wrote:
> now i´m trying to get all "users" to send them an email.
> but with something like post_data["user"] i only get "[EMAIL PROTECTED]".
>
> so, how can i get all the values for "user" within my dict?
You might want to take a look at Simon's respons
i´m having some trouble with a MultiValueDict and hope that somebody can
help me.
my request.POST looks like this:
{'body': ['some body text'], 'project': ['1'], 'note': ['1'], 'user':
['[EMAIL PROTECTED]', '
13 matches
Mail list logo