Custom Query (1173 matches)
Results (118 - 120 of 1173)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#119 | FIXED | Submitting an image should redirect you back to user's page w/ a message | ||
Description |
When you submit an image it should give you a friendly redirect back to your gallery, and should show you a message saying your media submitted (maybe also it might take a moment to process?) jwandborg said he could do this. Thanks Joar! |
|||
#120 | FIXED | User bio should be Markdown-enabled | ||
Description |
The user bio should be Markdown enabled with the ``mediagoblin.util.cleaned_markdown_conversion()`` function. Proposal: - Add a field to User (``mediagoblin/db/models.py``) which is named ``bio_html`` (see the description\_html field in ``MediaEntry`` [same file] for refernce). - When the user updates the bio field (``mediagoblin/edit/views.py:edit_profile()``), run the ``cleaned_markdown_conversion()`` and put the output in the ``bio_html`` field. - Edit ``mediagoblin/templates/mediagoblin/utils/profile.html`` to output ``user.bio_html`` instead of ``user.bio`` and to NOT autoescape the output of ``{{ user.bio_html }}`` (see @mediagoblin/templates/mediagoblin/user\_pages/media.html for reference). |
|||
#121 | FIXED | Handle migrations ourselves (NOT through mongokit) | ||
Description |
Mongokit's migrations system stuff is complex and way confusing. Here's something much simpler. - migrations are simple functions, iterated by number. You create them and register them with a decorator registering what "number" they are like so: @register\_migration(1) def ponies\_to\_unicorns(database): database['quadrapeds'].find( {'animal': 'pony'}).update{ {'$set': {'animal': 'unicorn'}}) or whatever else you need to do with that connection. The first and only argument passed in (database) is a simple pymongo database connection (**not** mongokit!). Otherwise, it's just a simple python function. Do what you need to do. - current migration status is stored in the ['\_id'] = 'mediagoblin' document of database['app\_metadata'] in the field ['migration\_number'] - if no migrations have been run yet, migration\_number set to current max - otherwise all unrun migrations are run, and migration\_number updated after each migration finishes. |
Note:
See TracQuery
for help on using queries.