Esempio n. 1
0
 def tag(self):
     i = self.image
     obj = getattr(self, self.fk_name)
     #title = self.title or ('eRacks %s %s' % (obj.sku, i.filename))
     title = self.title or ('%s %s' % (obj.name, i.filename))
     return tags.img(src=i.url,
                     title=title,
                     alt=title,
                     width=i.width,
                     height=i.height)
Esempio n. 2
0
 def tag (self):
     i = self.image
     obj = getattr (self, self.fk_name)
     #title = self.title or ('eRacks %s %s' % (obj.sku, i.filename))
     title = self.title or ('%s %s' % (obj.name, i.filename))
     return tags.img (src=i.url, title=title, alt=title, width=i.width, height=i.height)
Esempio n. 3
0
 def tag(self):
     #i = self.image
     return tags.img(src=self.image.url,
                     title=self.title,
                     width=self.image.width,
                     height=self.image.height)
Esempio n. 4
0
 def tag (self):
     #i = self.image
     return tags.img (src=self.image.url, title=self.title, width=self.image.width, height=self.image.height)