Merge lp:~toote/lalita/url-rename into lp:lalita
Proposed by
Matías Bellone
Status: | Merged |
---|---|
Merged at revision: | 168 |
Proposed branch: | lp:~toote/lalita/url-rename |
Merge into: | lp:lalita |
Diff against target: |
61 lines (+36/-1) 1 file modified
lalita/plugins/url.py (+36/-1) |
To merge this branch: | bzr merge lp:~toote/lalita/url-rename |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Facundo Batista | Approve | ||
Review via email: mp+51390@code.launchpad.net |
Description of the change
Agrega la opción de renombrar URLs en la base de datos.
Muy útil para poder buscar links sin título, en particular imágenes o páginas que no fueron parseadas correctamente.
También corrige un problema en la configuración por defecto al reportar una URL ya que el ":" al final de la misma pasa a ser parte de la URL
To post a comment you must log in.
It's better to do...
self.say(channel, u"%s: necesito un ID a renombrar válido", user)
...than using '%' there, to be able to build a translation table later.
Also, it's funny the comparison len(what) -1 == 0
You should include tests for this, but as the module is not tested at all, it could be ok.