2006年07月24日 星期一 21:44
刚看到在woodlog中有这样的处理:
def get_portrait_thumbnail_url(self):
if self.portrait:
url = self.get_portrait_url()
return image.get_default_thumbnail_filename(url)
else:
return join_app_path('medias', settings.DEFAULT_PORTRAIT_IMAGE)
def theme_img(self):
return join_app_path('medias', 'themeindex', self.themename +
'.jpg')
位于apps.profile.models中
大概作用是什么呢? 主要是image模块那里 它返回一个什么地址呢?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060724/b58c1dcb/attachment.html
Zeuux © 2025
京ICP备05028076号