コード例 #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)
コード例 #2
0
ファイル: models.py プロジェクト: vinod-sesetti/wrecks
 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)
コード例 #3
0
ファイル: models.py プロジェクト: arun-skaria/eracks
 def tag(self):
     #i = self.image
     return tags.img(src=self.image.url,
                     title=self.title,
                     width=self.image.width,
                     height=self.image.height)
コード例 #4
0
ファイル: models.py プロジェクト: satyadevi-nyros/eracks
 def tag (self):
     #i = self.image
     return tags.img (src=self.image.url, title=self.title, width=self.image.width, height=self.image.height)