Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Adding and making use of the new 404 error page :) | Christopher Allan Webber | 2011-08-20 | 1 | -2/+12 |
| | |||||
* | Allow a user to pass in a status to render_to_response | Christopher Allan Webber | 2011-08-20 | 1 | -2/+4 |
| | |||||
* | Switch the grid over to using a... erk... table! :) | Christopher Allan Webber | 2011-08-18 | 1 | -0/+32 |
| | | | | Also changes the gridification routine a bit. | ||||
* | Utilities to lazily translate strings and also fake a translation for extraction | Christopher Allan Webber | 2011-08-10 | 1 | -1/+47 |
| | |||||
* | Provide a pass_to_ugettext method and set up gettext to default to English. | Christopher Allan Webber | 2011-08-08 | 1 | -0/+16 |
| | |||||
* | We should pass ugettext instead of gettext into the jinja template env | Christopher Allan Webber | 2011-08-08 | 1 | -1/+1 |
| | | | | Otherwise we might get UnicodeDecodeErrors :) | ||||
* | Changed mediagoblin translations directory to the one we actually use. | Christopher Allan Webber | 2011-08-07 | 1 | -1/+1 |
| | |||||
* | Removing option to make tags lowercase | Christopher Allan Webber | 2011-07-30 | 1 | -6/+2 |
| | | | | ...that's basically handled by the slugification | ||||
* | Merge branch 'remotes/gullydwarf-cfdv/f360_tagging' (early part) into mergetags | Christopher Allan Webber | 2011-07-30 | 1 | -1/+60 |
|\ | | | | | | | | | | | | | Conflicts: mediagoblin/config_spec.ini mediagoblin/edit/views.py mediagoblin/util.py | ||||
| * | modifies duplicate tag check for list of dict tag type change | Caleb Forbes Davis V | 2011-07-28 | 1 | -2/+2 |
| | | |||||
| * | changes tags to a list of dicts in the db, adding tag slugs | Caleb Forbes Davis V | 2011-07-27 | 1 | -7/+21 |
| | | | | | | | | | | | | | | | | | | - adds a function to convert the tag list of dicts to a text string properly delimited for loading into forms - tag string conversion function updated to generate list of dicts - updates all mentions of the conversion of the string to the tags db object - adds a tags template utility and updates the media template accordingly | ||||
| * | use config_spec.ini to store tag parsing directives | Caleb Forbes Davis V | 2011-07-25 | 1 | -9/+6 |
| | | |||||
| * | raises tag length error in form context instead of in message queue | Caleb Forbes Davis V | 2011-07-21 | 1 | -14/+21 |
| | | |||||
| * | enforces maximum tag length with (in)appropriate messaging | Caleb Forbes Davis V | 2011-07-13 | 1 | -3/+23 |
| | | |||||
| * | ensures no duplicate tags per media entry | Caleb Forbes Davis V | 2011-07-12 | 1 | -1/+1 |
| | | |||||
| * | uses standard functions instead of form filters and fixes taglist default | Caleb Forbes Davis V | 2011-07-12 | 1 | -3/+8 |
| | | | | | | | | | | | | | | | | | | - seems simpler to use the same tag field processing procedures on media submit and edit, so now processing with a regular function instead of a form filter. Filters run on form load and post by default. - moved tags to sidebar - taglist defaults to [] instead of None - adds case sensitivity toggle | ||||
| * | displays the tags on edit correctly now | Caleb Forbes Davis V | 2011-07-12 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | -before it was running the tags field through the submit filter. that was kind of dumb -removes the filter function from the edit form -adds unicode syntax in the filter function -uses split correctly when saving the edited tags to mongodb | ||||
| * | adds filter function to parse and clean tags field input | Caleb Forbes Davis V | 2011-07-12 | 1 | -1/+18 |
| | | | | | | | | | | - for some reason the tags are showing up in the media edit form with u'..' and surrounded with []. I don't know why, grr | ||||
* | | Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page' | Christopher Allan Webber | 2011-07-16 | 1 | -0/+2 |
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/process_media/__init__.py mediagoblin/templates/mediagoblin/user_pages/media.html mediagoblin/util.py | ||||
| * | | Feature #400 - Resize images to fit on page - Additions | Joar Wandborg | 2011-07-03 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `migrations.py` * Removed empty line * Added empty line * `models.py` * Added `MediaEntry.get_display_media()` helper function * `process_media.__init__.py` * Updated `process_media_initial()` * Renamed `main` => `original`. * Added condition to `medium`, it's only created if the original dimensions exceed the MEDIUM_SIZE dimensions. * `media.html` * The image tag is now populated by `MediaEntry.get_display_media()` * `util.py` * Added `DISPLAY_IMAGE_FETCHING_ORDER`, used by `MediaEntry.get_display_media()` | ||||
* | | | removed email variables from globals module | Deb | 2011-07-12 | 1 | -3/+3 |
| | | | |||||
* | | | Issue #431 - Prevent comment link expiry - Added functionality for comment ↵ | Joar Wandborg | 2011-07-07 | 1 | -4/+32 |
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linking * `media.html` * Changed comment textarea handle from `comment` => `field_comment` * Active comment is hilighted with the CSS class name `comment_active` and also with the hyperlink anchor #comment * Changed media.html so that pagination always uses Route('mediagoblin.user_pages.media_home') as base_url * `user_pages/forms.py` * Renamed MediaComment form field `comment` => `field_comment` * `user_pages/routing.py` * Added route for `/u/joar/m/123..456/c/234..567/`, points to `media_home` * `user_pages/views.py` * `media_home` now checks if the request contains a comment id parameter then acts accordingly with pagination whether to call it with a `jump_to_id` or not. * `media_post_comment` - Updated MediaCommentForm field name `comment` => `field_comment` * `util.py` * `redirect` now supports querystring arguments. - NOT USED (should we keep it? I think so, it might be useful, sometime [don't call me a code hoarder]). * `Pagination.__init__` now accepts one further argument, the `jump_to_id`. It assist the comment linking functionality in finding and returning the proper page for a comment. This feature will work for all kinds of objects. It might not be optimal, but it is well functional :) | ||||
* | | Move get_jinja_loader to init submodule. | Elrond | 2011-07-02 | 1 | -16/+0 |
|/ | |||||
* | removes messages.add_message from the global template context | Caleb Forbes Davis V | 2011-06-27 | 1 | -2/+0 |
| | | | | templates don't add messages. views are responsible for that. | ||||
* | adds message queue | Caleb Forbes Davis V | 2011-06-27 | 1 | -0/+7 |
| | | | | | | | | | Feature #368 - messaging framework * message levels are debug, info, success, warning, and error * display mechanism - base.html includes messages.html for now * fetch_messages and add_message are available to all templates using jinja2 environment.globals * messages are displayed and cleared. no persistence | ||||
* | Also fix clean_html so that it doesn't barf on an empty string. | Christopher Allan Webber | 2011-06-21 | 1 | -0/+4 |
| | |||||
* | Fix cleaned_markdown_conversion so that it doesn't bork on empty strings | Christopher Allan Webber | 2011-06-20 | 1 | -0/+5 |
| | | | | | Basically, clean_html would throw an error on '', so we just return '' "if not text" | ||||
* | Adds util.cleaned_markdown_conversion() and uses it in the submission process | Christopher Allan Webber | 2011-06-19 | 1 | -0/+11 |
| | | | | | | This simplifies the markdown processing & html cleaning of descritions and etc by providing a wrapper function that we can use in multiple locations. | ||||
* | Merge remote branch 'remotes/jwandborg/issue_363' | Christopher Allan Webber | 2011-06-19 | 1 | -2/+1 |
|\ | | | | | | | | | Conflicts: setup.py | ||||
| * | Merge branch 'master' of http://git.gitorious.org/mediagoblin/mediagoblin | Joar Wandborg | 2011-06-15 | 1 | -7/+34 |
| |\ | |||||
| * | | Added Markdown rendering for `media_entry` | Joar Wandborg | 2011-06-12 | 1 | -2/+1 |
| | | | |||||
* | | | Removing a couple of unused imports from util.py | Christopher Allan Webber | 2011-06-19 | 1 | -2/+0 |
| | | | |||||
* | | | util.read_config_file() no longer needed; removing. | Christopher Allan Webber | 2011-06-19 | 1 | -22/+0 |
| |/ |/| | |||||
* | | A super strict HTML cleaner method with mediocre tests. | Christopher Allan Webber | 2011-06-13 | 1 | -0/+27 |
| | | |||||
* | | mediagoblin.globals->mediagoblin.mg_globals | Christopher Allan Webber | 2011-06-12 | 1 | -7/+7 |
|/ | |||||
* | A clear_test_buckets() method | Christopher Allan Webber | 2011-06-06 | 1 | -0/+20 |
| | |||||
* | Merge remote branch 'remotes/elrond/idea/shortcuts' | Christopher Allan Webber | 2011-06-05 | 1 | -0/+11 |
|\ | |||||
| * | Create redirect shortcut and use it around | Elrond | 2011-06-05 | 1 | -1/+6 |
| | | | | | | | | | | This is just replacing exc.HTTPFound(location=request.urlgen(...)) by redirect(request, ...). No magic. | ||||
| * | Create render_to_reponse and use it everywhere. | Elrond | 2011-06-05 | 1 | -0/+6 |
| | | | | | | | | Just a shortcut for Response(render_template(...)) | ||||
* | | We should store the template path, not the template object, as the key | Christopher Allan Webber | 2011-06-05 | 1 | -3/+3 |
|/ | | | | in our testing cache | ||||
* | Cache template environments and gettexts so we don't have to reproduce | Christopher Allan Webber | 2011-06-04 | 1 | -2/+21 |
| | | | | them on every request. | ||||
* | Added new render_template method which will make our lives nicer and | Christopher Allan Webber | 2011-06-04 | 1 | -0/+27 |
| | | | | also will be useful for unit testing purposes :) | ||||
* | Proper webtest infrastructure... seems to be about right anyway :) | Christopher Allan Webber | 2011-06-04 | 1 | -4/+29 |
| | |||||
* | A more explicit version of get_page_url that doesn't use the request | Christopher Allan Webber | 2011-05-22 | 1 | -5/+12 |
| | | | | is still an option now ;) | ||||
* | Fix doc string of get_page_url() | Elrond | 2011-05-21 | 1 | -3/+1 |
| | |||||
* | Give Pagination.get_page_url() a request instead of path and GET | Elrond | 2011-05-21 | 1 | -4/+4 |
| | | | | Makes calling Pagination.get_page_url() much simpler. | ||||
* | I think 30 is a good default number of items per page. | Christopher Allan Webber | 2011-05-19 | 1 | -1/+3 |
| | |||||
* | Another minor formatting change. | Christopher Allan Webber | 2011-05-19 | 1 | -3/+4 |
| | |||||
* | We don't really need to use a \ here so let's not do so. | Christopher Allan Webber | 2011-05-19 | 1 | -2/+2 |
| | |||||
* | Adjusting docstrings a bit to my taste. | Christopher Allan Webber | 2011-05-19 | 1 | -5/+7 |
| |