def get_url(self, urlbase, *args, **kw):
        #~ kw[constants.URL_PARAM_USER_LANGUAGE] = self.language
        if self.ar.bound_action.action.action_name == 'detail':
            if len(args) == 0:
                try:
                    args = [str(iter(self.ar).next().pk)]
                except __HOLE__:
                    return None
        return urlbase + self.ar.get_request_url(*args, **kw)
        #~ return '%s%s?ul=%s' % (root,url,self.language.django_code)

#~ def register_screenshot(*args,**kw):
    #~ ss = Screenshot(*args,**kw)
    #~ SCREENSHOTS[ss.name] = ss
    #~ return ss
dataset/ETHPy150Open lsaffre/lino/lino/utils/screenshots.py/Screenshot.get_url