move id2url to tools

This commit is contained in:
Christophe Benz 2010-04-27 12:19:48 +02:00 committed by Romain Bignon
commit 0667774952
12 changed files with 119 additions and 18 deletions

View file

@ -23,6 +23,8 @@ import re
from weboob.capabilities.video import Video
from weboob.tools.browser import BasePage
from .. import tools
__all__ = ['IndexPage']
@ -59,4 +61,5 @@ class IndexPage(BasePage):
title=title,
duration=duration,
preview_url=preview_url,
nsfw=True)
nsfw=True,
id2url=tools.id2url)