def get_template_path(cls, style, fieldname): return url_join("/moya.forms/styles", style, "fields", "%s.html" % fieldname)
def set_template_base(self, template_base): if not self.template: self.template = url_join(template_base, 'fields', '%s.html' % self.fieldname)
def test_url_join(self): assert ( tools.url_join("http://moyaproject.com/", "/foo/") == "http://moyaproject.com/foo/" )
def test_url_join(self): assert tools.url_join('http://moyaproject.com/', '/foo/') == 'http://moyaproject.com/foo/'