Thank you very much!!!

2010/8/23 Nick Johnson (Google) <[email protected]>

> Hi Massimiliano,
>
> On Wed, Aug 18, 2010 at 7:36 PM, Massimiliano <
> [email protected]> wrote:
>
>> Hi,
>> can someone help me with this?
>>
>> class UploadHandler(blobstore_handlers.BlobstoreUploadHandler):
>> def post(self):
>> upload_files = self.get_uploads('foto')
>>  blob_info = upload_files[0]
>> foto = FOTO.all()
>>
>
> This creates a query object for 'FOTO' entities, not a new FOTO entity, but
> you're treating it like an entity. Instead, you should be doing foto =
> FOTO(), or replace both lines with foto = FOTO(fotokey=blob_info.key()).
>
>
>> foto.fotokey = blob_info.key()
>>  foto.put()
>> self.redirect('/foto')
>>
>> Why it's not working? (It stop in a white page, showing the upload link in
>> the URL).
>> I want to to upload the file and store the blob_info.key() in a Expando
>> called FOTO.
>>
>
> It's likely you're getting a blank page because your app isn't handling
> errors correctly. Check the error logs.
>
> -Nick Johnson
>
>
>>
>> Thanks
>>
>> Max
>>
>> --
>>
>> My email: [email protected]
>> My Google Wave: [email protected]
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-appengine%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>
>
> --
> Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd.
> :: Registered in Dublin, Ireland, Registration Number: 368047
> Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
> 368047
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 

My email: [email protected]
My Google Wave: [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to