One more feature in trunk....

    db.define_table('image',SQLField('file','upload'))

and

    db.image.file.authorize=lambda record: True or False

then controller

    def download(): return response.download(request,db)

will let you download the file if and only if the lambda returns True.
works on GAE too.
the idea to include something like T2.has_access into the lambda and
you can do authorization of media files uploaded by users almost
without coding.

Massimo




On Jan 14, 1:25 pm, mdipierro <[email protected]> wrote:
> T2 needs to be fixed to account for this. for now set comment=''.
>
> On Jan 14, 1:19 pm, Fran <[email protected]> wrote:
>
> > On Jan 14, 6:04 pm, mdipierro <[email protected]> wrote:
>
> > > Please TEST TEST TEST
>
> > I get this appended to each row in my T2 forms unless they have
> > already specified their own table.name.comment:
> > <td>None</td>
>
> > F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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