Now understand. No there is no list:blob, only list:string, list:integer, list:reference. The reason is that list:blob would be a problem to implement on relational databases. It would run on unknown space limitations. Moreover this would require a new class of widgets.
On Jan 21, 6:59 am, Jacob Gur <[email protected]> wrote: > Sure. The following example field are not supported by web2py: > Field('myBlobs', 'list:blob'), > Field('myDates', 'list:date') > > A workaround is to do the following: > db.define_table('blobTable', Field('myBlob', 'blob')) > db.define_table('myTable, Field('myBlobs', 'list:reference > blobTable')) > > It would be great to support list of any type directly as in first two > examples. GAE supports this with its ListProperty(item_type). You can > make it work with other database systems by using text field, > serializing each element of the list into a string and separating with > pipe character. That is what web2py does for list of integers and list > of references. > > Thanks. > > On Jan 20, 11:54 am, Massimo Di Pierro <[email protected]> > wrote: > > > > > > > > > I am not sure I fully understand. Can you please provide an example? > > > On Jan 20, 6:52 am,JacobGur<[email protected]> wrote: > > > > Hi- > > > > Is there a way to do list of blobs in db? Looks like only options are > > > list of strings, numbers and references. GAE supports list of > > > anything, but it looks like web2py has not implemented a way to > > > serialize all types into a string to store in the other databases it > > > supports. > > > > Obviously, I can create a table to store one blob per row and then use > > > list of references to achieve same effect, but I'm hoping there is a > > > simpler way. > > > > Thanks.

