Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Switching non-forms back to using normal pass_to_ugettext | Christopher Allan Webber | 2013-04-24 | 1 | -1/+1 |
| | |||||
* | Fix-bug-667-Use-lazy_pass_to_ugettext-for-forms. | Aditi Mittal | 2013-04-24 | 1 | -1/+1 |
| | |||||
* | Create set_thread_locale and use it. | Elrond | 2013-04-24 | 2 | -3/+7 |
| | | | | | | Setting up a new template env should not directly touch the translation tools, but go through a function in translations.py. | ||||
* | removing old callable utilities and porting stuff over. | Christopher Allan Webber | 2013-04-19 | 1 | -67/+1 |
| | |||||
* | we should be returning the result, not None! | Christopher Allan Webber | 2013-04-19 | 1 | -1/+1 |
| | |||||
* | fixing hook_handle for when result is never assigned, avoid reference ↵ | Christopher Allan Webber | 2013-04-19 | 1 | -0/+2 |
| | | | | without assignent | ||||
* | As Elrond points out, we might as well .pop() default_handler | Christopher Allan Webber | 2013-04-19 | 1 | -1/+1 |
| | |||||
* | Hooks: the Next Generation! | Christopher Allan Webber | 2013-04-19 | 1 | -0/+90 |
| | | | | I have not tested any of this but it looks right ;) | ||||
* | And... pyblosxom code removed again :) | Christopher Allan Webber | 2013-04-19 | 1 | -114/+0 |
| | | | | We agreed on a new direction on IRC last night... | ||||
* | pyblosxom run_callback hoisted | Christopher Allan Webber | 2013-04-18 | 1 | -0/+114 |
| | |||||
* | Start to use six for basestring. | Elrond | 2013-04-18 | 1 | -1/+2 |
| | | | | | | six allows us to smoothly get more forward compatible with py3. The idea is to change things over to use six, when/if we feel a need for it. | ||||
* | Merge remote-tracking branch 'refs/remotes/tsyesika/394-fuzzy-timestamp' | Christopher Allan Webber | 2013-04-13 | 3 | -0/+120 |
|\ | |||||
| * | Adds the unit tests and removes useless function we don't use | Jessica T | 2013-04-12 | 1 | -7/+0 |
| | | |||||
| * | Adds the timesince ability which fixes #394 | Jessica T | 2013-04-11 | 3 | -0/+127 |
| | | |||||
* | | Merge branch '637_friendlier_hooks' | Christopher Allan Webber | 2013-04-10 | 1 | -0/+67 |
|\ \ | |/ |/| | |||||
| * | Remove unhandled_okay from kwargs if it's there before passing to functions. | Christopher Allan Webber | 2013-04-10 | 1 | -1/+3 |
| | | |||||
| * | callable hook convenience functions.. now work, and with tests! | Christopher Allan Webber | 2013-04-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | - Added three "callables" test plugins. - updated callable_runone to check for unhandled_okay in the kwargs dict. All passing! | ||||
| * | Convenience functions for callable hooks | Christopher Allan Webber | 2013-04-07 | 1 | -0/+65 |
| | | |||||
* | | Fix sessions so they work across the site. | Christopher Allan Webber | 2013-04-10 | 1 | -3/+1 |
| | | |||||
* | | Make session cookies more secure. | Elrond | 2013-04-09 | 1 | -3/+6 |
| | | | | | | | | | | | | | | | | | | 1. Our session cookies only need to be available to http, so mark them appropiately. 2. Send the cookie to the subpath for mediagoblin. And instantiate a session manager on the app, once. | ||||
* | | Fix left over from variable renaming. | Elrond | 2013-04-09 | 1 | -1/+4 |
| | | |||||
* | | Call is_updated instead of testing it boolean. | Brett Smith | 2013-03-25 | 1 | -1/+1 |
| | | |||||
* | | Harden It's Dangerous key management. | Brett Smith | 2013-03-24 | 1 | -20/+45 |
| | | | | | | | | | | | | | | | | | | | | The previous code was theoretically subject to timing attacks, where an attacker could read the key in between the time it was saved to the file and when the chmod happened. This version prevents that by using umasks to ensure the files always have the right permissions. This version also avoids using a key that cannot be saved due to some system setup bug. | ||||
* | | Set a starting value for session.send_new_cookie. | Brett Smith | 2013-03-24 | 1 | -1/+5 |
| | | | | | | | | | | | | This makes session.__init__ slightly more complicated but probably simplifies everything else, especially if we make the class smarter later by having it track changes itself. | ||||
* | | Delete the session cookie on an empty session. | Brett Smith | 2013-03-24 | 1 | -1/+4 |
| | | |||||
* | | Back sessions with It's Dangerous. | Brett Smith | 2013-03-24 | 2 | -1/+61 |
| | | | | | | | | This is a contribution to #668. | ||||
* | | Improve fs security for itsdangerous secret. | Elrond | 2013-03-22 | 1 | -2/+6 |
| | | | | | | | | Set mode 700 on the directory, mode 600 on the file. | ||||
* | | Docs for get_timed_signer_url. | Elrond | 2013-03-22 | 1 | -0/+26 |
| | | |||||
* | | Basic itsdangerous infrastructure. | Elrond | 2013-03-22 | 1 | -0/+55 |
|/ | | | | | Implement the basic infrastructure for using itsdangerous in mediagoblin. Usage instructions will follow. | ||||
* | A more realistic "con" explaination in the docstring of ↵ | Christopher Allan Webber | 2013-03-15 | 1 | -1/+4 |
| | | | | | | | | exif_fix_image_orientation Thanks to dnet for catching this. This commit sponsored by Chester Zeller. Thanks! | ||||
* | Huge amount of work to (mostly) allow .ogg (and maybe other) formats to skip ↵ | Christopher Allan Webber | 2013-03-02 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | | | | transcode - Update get_display_media in several ways: - now uses the media type's own declaration of the order of things - returns both the media_size and the media_path, as per the docstring - implicitly uses self.media_files as opposed to forcing you to pass it in - update videos to use get_display_media - update images to declare media_fetch_order in the media manager (videos also) - update stl to use media.media_files['original'] instead of weird use of get_display_media - update sidebar to only conditionally show webm_640 TODO still: identify video type information *during* processing, show that in the <video><source /></video> element. This commit sponsored by Nathan Yergler. Thanks, nyergler! | ||||
* | simplified get_useful | András Veres-Szentkirályi | 2013-02-22 | 1 | -6/+1 |
| | |||||
* | use dict.iteritems() instead of dict.items() | András Veres-Szentkirályi | 2013-02-22 | 1 | -1/+1 |
| | |||||
* | use list expression instead of 3-deep for | András Veres-Szentkirályi | 2013-02-22 | 1 | -7/+2 |
| | |||||
* | simplified clean_exif | András Veres-Szentkirályi | 2013-02-22 | 1 | -6/+2 |
| | |||||
* | close file properly and remove unneeded variable | András Veres-Szentkirályi | 2013-02-22 | 1 | -6/+2 |
| | |||||
* | typofix in comment | András Veres-Szentkirályi | 2013-02-22 | 1 | -1/+1 |
| | |||||
* | use key in dict instead of key in dict.keys() | András Veres-Szentkirályi | 2013-02-22 | 1 | -1/+1 |
| | |||||
* | Merge remote-tracking branch 'pythonsnake/537_version' | Elrond | 2013-02-19 | 1 | -0/+2 |
|\ | | | | | | | | | | | * pythonsnake/537_version: Added "version" before the version Fix bug 537 | ||||
| * | Fix bug 537 | pythonsnake | 2013-02-10 | 1 | -0/+2 |
| | | |||||
* | | Fix deleting media with attachments. | Elrond | 2013-02-18 | 1 | -1/+1 |
|/ | | | | | | | | | | | | | | If one deletes a media with attachments, there have been various problems: 1) If the file in the storage did not exist any more (maybe because due to a previous deletion attempt?), the error propagation failed, because the wrong thing was gathered. 2) The attachment database entries were not deleted. Using cascade for this, for now. Also add a simple unit test, that tests both by having a broken attachment on a media. | ||||
* | Use system wide EXIF package, if available. | Elrond | 2013-02-07 | 1 | -1/+5 |
| | | | | | | Created and tested by Simon Fondrie-Teitler. Thanks! | ||||
* | Improve formatting for hook template docs. | Elrond | 2013-01-31 | 1 | -1/+8 |
| | |||||
* | Switching set syntax to python2.6 compatible | Christopher Allan Webber | 2013-01-31 | 1 | -1/+1 |
| | |||||
* | Even better documentation for get_hook_templates! | Christopher Allan Webber | 2013-01-30 | 1 | -1/+9 |
| | | | | Tells how you *can* use it in templates if you really like. | ||||
* | Improved documentation for get_hook_templates, noting the template tag | Christopher Allan Webber | 2013-01-30 | 1 | -0/+9 |
| | |||||
* | Moved the docstring for the plugin template stuff from the class to module ↵ | Christopher Allan Webber | 2013-01-30 | 1 | -13/+19 |
| | | | | method | ||||
* | No need for an __init__ at all in the TemplateHookExtension, really. | Christopher Allan Webber | 2013-01-30 | 1 | -4/+1 |
| | |||||
* | Move template hook over to a template_hook tag. Seems to work! :) | Christopher Allan Webber | 2013-01-30 | 1 | -1/+37 |
| | |||||
* | Geolocation stuff, including including templates seems to be working-ish | Christopher Allan Webber | 2013-01-30 | 2 | -1/+12 |
| | | | | | | | - I'm having trouble seeing if the geolocation stuff actually works, but plugins are included - including a list of template hooks works, however the macro to include them does not, so it's kinda verbose |