On Thu, 2007-06-28 at 17:57 +0300, Alexander Pugachev wrote:
> I still have them as unicode strings in [5559]
Then please file a ticket with a simple example showing how to repeat
the problem so this doesn't get forgotten. I can't repeat this (I
obviously tested the first attempt at a fix).
Rega
I still have them as unicode strings in [5559]
2007/6/11, Malcolm Tredinnick <[EMAIL PROTECTED]>:
>
>
> On Mon, 2007-06-11 at 11:39 +, Christian Schmidt wrote:
> > I use at this time the ugly version with eval(). I really don't know
> > how ugly it is. Can I have problems if there is python co
On Mon, 2007-06-11 at 11:39 +, Christian Schmidt wrote:
> I use at this time the ugly version with eval(). I really don't know
> how ugly it is. Can I have problems if there is python code or
> something else in the uploaded file?
> What is the best solution for me until this is fixed?
With a
I use at this time the ugly version with eval(). I really don't know
how ugly it is. Can I have problems if there is python code or
something else in the uploaded file?
What is the best solution for me until this is fixed?
Christian.
--~--~-~--~~~---~--~~
You rec
On Fri, 2007-05-25 at 09:19 +1000, Malcolm Tredinnick wrote:
> On Thu, 2007-05-24 at 20:20 +, Christian Schmidt wrote:
> > Hi,
> >
> > I have a form to upload a picture and i try to validate it in
> > newforms. But i can not read the content-type. I get the error
> > "'unicode' object has no
On May 24, 4:20 pm, Christian Schmidt <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I have a form touploada picture and i try to validate it innewforms. But i
> can not read the content-type. I get the error
> "'unicode' object has no attribute 'get'".
>
I had the same problem. I was using a forms.CharFi
It looks ugly to me but did you try:
>>> ustr
u"{'var': 'val'}"
>>> dic = eval(ustr)
>>> dic
{'var': 'val'}
On 25 mai, 12:40, Christian Schmidt <[EMAIL PROTECTED]>
wrote:
> > To validate your images, just try to open it with PIL
>
> When I said I validate the image then did I mean that I try to
> To validate your images, just try to open it with PIL
When I said I validate the image then did I mean that I try to open it
with PIL. I do this in the view an if something went wrong I would
save an error variable in the postdata. It is the same like in
http://www.oluyede.org/blog/2007/03/18/d
I couldn't find ImageField validation in .96
To validate your images, just try to open it with PIL
from PIL import Image
from cStringIO import StringIO
try:
image = Image.open(StringIO(request.FILES['picture']
['content']))
except:
# raise error here
In practice, I handle pictu
ok, thats the fact. But I can not imagine whats wrong in my code. I
have nearly copy and paste all of it from
http://www.oluyede.org/blog/2007/03/18/django-image-uploading-validation-and-newforms/
There, it seems to work... how do you validate files or images with
django newforms? Is there somet
On Thu, 2007-05-24 at 20:20 +, Christian Schmidt wrote:
> Hi,
>
> I have a form to upload a picture and i try to validate it in
> newforms. But i can not read the content-type. I get the error
> "'unicode' object has no attribute 'get'".
>
> I use Python 2.5. This is my code:
>
> view.py
>
Hi,
I have a form to upload a picture and i try to validate it in
newforms. But i can not read the content-type. I get the error
"'unicode' object has no attribute 'get'".
I use Python 2.5. This is my code:
view.py
...
postdata = request.POST.copy()
if 'bild' in request.FILES:
postdata.
12 matches
Mail list logo