[web2py] Re: many to many inline form

2010-11-17 Thread Joe Wakefield
, 11:27 am, mdipierro wrote: > We do not have a widget for that but it is time to make one. It is not > difficult. > If I have time I will do this over the week-end. Other users may have > already something working. > > On Nov 12, 10:17 am, Joe Wakefield wrote: > > > So I'

[web2py] many to many inline form

2010-11-12 Thread Joe Wakefield
So I'm trying to migrate an old rails app that broke a while back, and I came across a rather difficult situation. I boiled the problem down to this simplified mockup: http://yfrog.com/ghbeanjarsp The real app has nothing to do with jelly beans, but this is the issue at hand. Basically there are t

[web2py] Re: IS_IMAGE() broke?

2010-08-26 Thread Joe Wakefield
On Aug 25, 2010, at 8:33 AM, Joe Wakefield wrote: > > > > I'll do you one better. The problem is in "sqlhtml.py" at lines > > > 909-917. It changes ret=False to ret=True if the field already has a > > > value. > > > Good catch. This is a case whe

[web2py] Re: IS_IMAGE() broke?

2010-08-25 Thread Joe Wakefield
pierro wrote: > > > Something is wrong here > > >IS_IMAGE(extensions=('jpeg')) > > > should be > > >IS_IMAGE(extensions=('jpeg',)) > > > A tuple of one element must contain a comma. Not sure if that may be > > the caus

[web2py] Re: IS_IMAGE() broke?

2010-08-25 Thread Joe Wakefield
(extensions=('jpeg',)) > > > A tuple of one element must contain a comma. Not sure if that may be > > the cause of your problem. > > > On Aug 23, 3:16 pm, Joe Wakefield wrote: > > > > I was also experiencing this issue, but found that rebuilding the >

[web2py] Re: IS_IMAGE() broke?

2010-08-24 Thread Joe Wakefield
06 pm, mdipierro wrote: > Something is wrong here > > IS_IMAGE(extensions=('jpeg')) > > should be > > IS_IMAGE(extensions=('jpeg',)) > > A tuple of one element must contain a comma. Not sure if that may be > the cause of your problem. > > On Aug 23,

[web2py] Re: IS_IMAGE() broke?

2010-08-23 Thread Joe Wakefield
I was also experiencing this issue, but found that rebuilding the database only worked until the first valid upload, after which it is broken again. In my case, I am using: Field('photo', 'upload', uploadfield='photo_data', requires=IS_IMAGE(extensions=('jpeg'))), Field('photo_data', 'blob', requi