Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | Merge remote branch 'remotes/hanaku/pagination' | Christopher Allan Webber | 2011-05-19 | 1 | -0/+68 |
|\ | | | | | | | | | Conflicts: mediagoblin/user_pages/views.py | ||||
| * | moved check for correct page values into decorator for view function | Bernhard Keller | 2011-05-19 | 1 | -2/+4 |
| | | |||||
| * | removed request arg from Pagination class | Bernhard Keller | 2011-05-19 | 1 | -12/+26 |
| | | | | | | | | | | added get_page_url() in Pagination class, to generate proper urls without losing other get arguments | ||||
| * | changed some coding styles and changed the interface for pagination from ↵ | Bernhard Keller | 2011-05-19 | 1 | -45/+11 |
| | | | | | | | | | | | | __call__ to the __init__, also getting a cursor as input, instead of the query details | ||||
| * | added Pagination class, usage description in Pagination,__call__ | Bernhard Keller | 2011-05-18 | 1 | -0/+86 |
| | | | | | | | | added pagination.html, object_gallery.html as templates | ||||
* | | Move ObjectId, DESCENDING to db.util | Elrond | 2011-05-18 | 1 | -2/+2 |
|/ | | | | | | We used to import those from pymongo and mongokit directly. We should import them from a single place. So let's try db.util for this. | ||||
* | Generate unique slugs for newly submitted images. | Aaron Williamson | 2011-05-13 | 1 | -1/+14 |
| | |||||
* | locale rather than target_lang in the get parameters | Christopher Allan Webber | 2011-05-12 | 1 | -2/+2 |
| | |||||
* | Load gettext, and load it into the template environment | Christopher Allan Webber | 2011-05-12 | 1 | -1/+32 |
| | |||||
* | Separation between setting up the template env and the template loader | Christopher Allan Webber | 2011-05-12 | 1 | -6/+14 |
| | | | | for a glorious future where we have gettext in template context | ||||
* | Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin | Christopher Allan Webber | 2011-05-12 | 1 | -3/+2 |
|\ | | | | | | | | | Conflicts: mediagoblin/util.py | ||||
| * | Fix the email debug inbox | Christopher Allan Webber | 2011-05-12 | 1 | -4/+2 |
| | | |||||
* | | Added some locale determination tools | Christopher Allan Webber | 2011-05-12 | 1 | -0/+56 |
|/ | |||||
* | Add the jinja2 extension to the jinja loader | Christopher Allan Webber | 2011-05-12 | 1 | -1/+4 |
| | |||||
* | Added an email debug mode which, by default, is enabled | Christopher Allan Webber | 2011-05-07 | 1 | -3/+14 |
| | |||||
* | A simple, maybe obvious, docstring for util.send_email() | Christopher Allan Webber | 2011-05-04 | 1 | -0/+10 |
| | |||||
* | send_email tool and email sending tests | Christopher Allan Webber | 2011-05-04 | 1 | -0/+87 |
| | |||||
* | Use request.app.db, not request.db | Christopher Allan Webber | 2011-04-19 | 1 | -1/+1 |
| | |||||
* | Moved app.load_controller -> util.import_component and added tests. | Christopher Allan Webber | 2011-04-17 | 1 | -0/+18 |
| | |||||
* | documentation for get_jinja_env | Christopher Allan Webber | 2011-04-17 | 1 | -0/+7 |
| | |||||
* | Changes Mediagoblin -> MediaGoblin. | Will Kahn-Greene | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | Since we're searching by id, that try: except: was superfluous. | Christopher Allan Webber | 2011-04-03 | 1 | -12/+5 |
| |