def add(self, **kwargs):
        """Just a shortcut to change the current url, equivalent to Url(self, **kwargs)"""
        if "path" in kwargs:
            path = kwargs["path"]
            if isinstance(path, bytes):
                path = String(path)
            if not path[0].startswith("/"):
                paths = self.normalize_paths(self.path, path)
            else:
                paths = self.normalize_paths(path)
            kwargs["path"] = "/".join(paths)
        return self.create(self, **kwargs)
def add ( self , ** kwargs ) : if "path" in kwargs : path = kwargs [ "path" ] if isinstance ( path , bytes ) : path = String ( path ) if not path [ 0 ] . startswith ( "/" ) : paths = self . normalize_paths ( self . path , path ) else : paths = self . normalize_paths ( path ) kwargs [ "path" ] = "/" . join ( paths ) return self . create ( self , ** kwargs )
Just a shortcut to change the current url, equivalent to Url(self, **kwargs)