Yes, it uploads a file when IS_NULL_OR(IS_UPLOAD_FILENAME()) is
changed to IS_UPLOAD_FILENAME(). Same goes for IS_NULL_OR(IS_IMAGE()).



On Sep 14, 1:20 am, mdipierro <[email protected]> wrote:
> Does it work without the validator? I suspect this is a bug with
> IS_UPLOAD_FILENAME.
> If that is the case I will fix it in the next couple of days.
>
> On Sep 13, 8:57 pm, weheh <[email protected]> wrote:
>
> > I'm running v1.66.2 source. I installed by downloading the source from
> > the server and overlaying it on an existing web2py installation. I
> > installed with "python web2py.py --upgrade yes".
>
> > On Sep 13, 11:08 am, mdipierro <[email protected]> wrote:
>
> > > what is in your web2py/VERSION file?
>
> > > On Sep 13, 8:11 am, weheh <[email protected]> wrote:
>
> > > > I'm not 100% sure, but I think it was svn.
>
> > > > On Sep 13, 2:26 am, mdipierro <[email protected]> wrote:
>
> > > > > Can you remind me which version of web2py? stable or trunk?
>
> > > > > On Sep 12, 8:52 pm, weheh <[email protected]> wrote:
>
> > > > > > I might also add that IS_NULL_OR(IS_IMAGE()) is also probably an
> > > > > > invalid statement, since IS_IMAGE() also requires an image file by
> > > > > > default.
>
> > > > > > Question -- should IS_UPLOAD_FILENAME() and IS_IMAGE() be changed to
> > > > > > allow for no entry? Then perhaps modify IS_NOT_EMPTY() to accept an
> > > > > > argument so you could do IS_NOT_EMPTY(IS_IMAGE()) or IS_NOT_EMPTY
> > > > > > (IS_UPLOAD_FILENAME)? I don't know the wider implications of such a
> > > > > > change, but it seems like you should be able to do something like 
> > > > > > this
> > > > > > in validators. Otherwise, you have to use the more verbose
> > > > > > readable=writable=False trick.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to