[web2py] Re: Google app engine and DAL

2011-07-10 Thread Shark
We want to save a blob to datastore in GAE
not only save the name
is this the same as upload field

On Jul 9, 9:51 pm, Shark shark4...@gmail.com wrote:
 Ok thank very much Anthony

 On Jul 9, 4:32 pm, Anthony abasta...@gmail.com wrote: On Saturday, July 9, 
 2011 8:07:48 AM UTC-4, Shark wrote:

   I need help in updating list field can anyone give example of how to
   update list field ?

   also I have problem in uploading files in GAE as web2py store them in
   files and google app engine need to store them in big table

  web2py is supposed to store uploaded files in the datastore -- are you
  saying that's not happening? 
  Seehttp://web2py.com/book/default/chapter/11#Avoid-the-Filesystem.

  Anthony


[web2py] Re: Google app engine and DAL

2011-07-10 Thread Massimo Di Pierro
In web2py a Field(...,'upload') makes both a StringProperty and a
BlobProperty. The filename goes in one and the data in the other.
I think BlobProperty has a 10MB limitation but I am not sure. These
numbers change as GAE evolves.

Massimo

On Jul 10, 8:22 am, Shark shark4...@gmail.com wrote:
 We want to save a blob to datastore in GAE
 not only save the name
 is this the same as upload field

 On Jul 9, 9:51 pm, Shark shark4...@gmail.com wrote:







  Ok thank very much Anthony

  On Jul 9, 4:32 pm, Anthony abasta...@gmail.com wrote: On Saturday, July 
  9, 2011 8:07:48 AM UTC-4, Shark wrote:

I need help in updating list field can anyone give example of how to
update list field ?

also I have problem in uploading files in GAE as web2py store them in
files and google app engine need to store them in big table

   web2py is supposed to store uploaded files in the datastore -- are you
   saying that's not happening? 
   Seehttp://web2py.com/book/default/chapter/11#Avoid-the-Filesystem.

   Anthony


[web2py] Re: Google app engine and DAL

2011-07-10 Thread Shark
Thanks massimo for reply
but my question
will upload field work in GAE and will save the data in datastore or I
have to define field as anther type ?

example
b.define_table('person',
Field('image', 'upload'))


As it by default save data in upload folder


thanks in advance
On Jul 10, 5:18 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
 In web2py a Field(...,'upload') makes both a StringProperty and a
 BlobProperty. The filename goes in one and the data in the other.
 I think BlobProperty has a 10MB limitation but I am not sure. These
 numbers change as GAE evolves.

 Massimo

 On Jul 10, 8:22 am, Shark shark4...@gmail.com wrote:







  We want to save a blob to datastore in GAE
  not only save the name
  is this the same as upload field

  On Jul 9, 9:51 pm, Shark shark4...@gmail.com wrote:

   Ok thank very much Anthony

   On Jul 9, 4:32 pm, Anthony abasta...@gmail.com wrote: On Saturday, 
   July 9, 2011 8:07:48 AM UTC-4, Shark wrote:

 I need help in updating list field can anyone give example of how to
 update list field ?

 also I have problem in uploading files in GAE as web2py store them in
 files and google app engine need to store them in big table

web2py is supposed to store uploaded files in the datastore -- are you
saying that's not happening? 
Seehttp://web2py.com/book/default/chapter/11#Avoid-the-Filesystem.

Anthony


[web2py] Re: Google app engine and DAL

2011-07-10 Thread howesc
Shark,

the upload field will work (though you might have to pass the flag to tell 
it to store the file in the DB).  it's been a while since i have used that 
on GAE.

if your uploaded file will be larger than 1MB (the current limit for blob 
fields assuming the online docs here are correct 
http://code.google.com/appengine/docs/python/datastore/datamodeling.html#Property_Classes_and_Types),
 
then you can try storing in the blobstore: 
http://www.web2pyslices.com/slices/take_slice/63




[web2py] Re: Google app engine and DAL

2011-07-10 Thread Shark
Thanks howesc for your help

On Jul 10, 6:36 pm, howesc how...@umich.edu wrote:
 Shark,

 the upload field will work (though you might have to pass the flag to tell
 it to store the file in the DB).  it's been a while since i have used that
 on GAE.

 if your uploaded file will be larger than 1MB (the current limit for blob
 fields assuming the online docs here are 
 correcthttp://code.google.com/appengine/docs/python/datastore/datamodeling.h...),
 then you can try storing in the 
 blobstore:http://www.web2pyslices.com/slices/take_slice/63


[web2py] Re: Google app engine and DAL

2011-07-09 Thread Anthony
On Saturday, July 9, 2011 8:07:48 AM UTC-4, Shark wrote: 

 I need help in updating list field can anyone give example of how to 
 update list field ? 

 also I have problem in uploading files in GAE as web2py store them in 
 files and google app engine need to store them in big table

 
web2py is supposed to store uploaded files in the datastore -- are you 
saying that's not happening? See 
http://web2py.com/book/default/chapter/11#Avoid-the-Filesystem.
 
Anthony


[web2py] Re: Google app engine and DAL

2011-07-09 Thread Shark
Ok thank very much Anthony

On Jul 9, 4:32 pm, Anthony abasta...@gmail.com wrote:
 On Saturday, July 9, 2011 8:07:48 AM UTC-4, Shark wrote:

  I need help in updating list field can anyone give example of how to
  update list field ?

  also I have problem in uploading files in GAE as web2py store them in
  files and google app engine need to store them in big table

 web2py is supposed to store uploaded files in the datastore -- are you
 saying that's not happening? 
 Seehttp://web2py.com/book/default/chapter/11#Avoid-the-Filesystem.

 Anthony