﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	parents
36	Need a way to generate slugs for media entries, etc	Christopher Allan Webber	Aaron Williamson	"{{{
#!rst
We need to be able to generate URL slugs for media entries.

I'd really like to use
`http://flask.pocoo.org/snippets/5/ <http://flask.pocoo.org/snippets/5/>`_
but have to clear it with the FSF that that public domain assertion
is okay for our codebase and to merge.

Regardless, we need to generate slugs for each entry anyway.
Probably during the submission phase after setting the title there
should be an entry.generate\_slug() method which sets the slug on
the MediaEntry instance.

This way we have a nice way of accessing for example the fictional
address:

[http://mediagoblin.example.org/\ :sub:`cwebber/w/a-walk-in-the-park/](http://mediagoblin.example.org/`\ cwebber/w/a-walk-in-the-park/)

that last bit of the URL being the entry slug.



}}}"	defect	closed	minor	0.0.2		FIXED			
