I'm saying the db holds the actual image file, in png or.jpeg. See model
below
apps.define_table('application',
Field('name', requires=IS_NOT_EMPTY()),
Field('category', requires=IS_IN_SET(['Accounting', 'Payroll',
'Inventory_Mngmnt', 'Office_Productivity', 'Email_Calendering',
'Human_Resource_Mgmnt', 'Business_Planning', 'Server Related', 'Content
Management'])),
Field('descn', 'text'),
Field('website'),
Field('logo', 'upload', requires=IS_IMAGE()))
apps.application.name.requires = [IS_NOT_EMPTY(), IS_NOT_IN_DB(apps,
apps.application.name)]
On Sat, 2010-03-13 at 10:59 -0800, DenesL wrote:
>
> On Mar 13, 1:15 pm, Matthew McNaughton <[email protected]> wrote:
> > Thanks for the quick response. The database holds the actual image not the
> > URL?
>
> Are you asking or telling?.
> Without your model definition I can't tell, it all depends on how you
> defined the logo field.
>
> web2py helpers like IMG create the corresponding HTML element and
> follow their syntax.
> In HTML IMG has a required SRC attribute which specifies the location
> of the image so that is what you have to provide.
>
--
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.