Custom Query (1174 matches)
Results (97 - 99 of 1174)
|
Ticket
|
Resolution
|
Summary
|
Owner
|
Reporter
|
| #120 |
FIXED
|
User bio should be Markdown-enabled
|
Aaron Williamson
|
joar
|
| 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)
|
Christopher Allan Webber
|
Christopher Allan Webber
|
| 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.
|
| #123 |
FIXED
|
We need a margin between the media image and the sidebar
|
Jef van Schendel
|
joar
|
| Description |
|
Note:
See
TracQuery
for help on using queries.