Joar Wandborg
bee079f36f
Fixed pylint/pep8 warnings in test/tools.py
2012-09-29 21:08:20 +02:00
Joar Wandborg
f1d06e1d6c
Switch from webob.Request to werkzeug.wrappers.Request
2012-09-29 21:08:20 +02:00
Joar Wandborg
8518e95eb6
Grammar re: libasound2-dev
2012-09-29 20:39:17 +02:00
Joar Wandborg
34a853133f
Added note about libasound2-dev to docs.
2012-09-29 20:35:49 +02:00
Joar Wandborg
942084fbfd
Added cascade all, delete-orphan to ProcessingMetaData
2012-09-27 11:59:17 +02:00
Joar Wandborg
0df00eb68f
Added tests for HTTP callbacks
2012-09-27 00:45:25 +02:00
Joar Wandborg
a11aa2d17a
Added some OAuth plugin tests
2012-09-26 23:53:51 +02:00
Joar Wandborg
939d57a022
HTTP callback fixes
...
- Added HTTPError catching around the callback request, to not mark the
entry as failed, just log the exception.
- Fixed bug where I forgot to actually fetch the entry before passing it
to json_processing_callback.
- Changed __main__ migration #6 to create the ProcessingMetaData table
as it is currently, to prevent possible breakage if a siteadmin
is lagging behind with his db migrations and more than one migration
wants to fix stuff with the ProcessingMetaData table.
2012-09-26 23:53:51 +02:00
Joar Wandborg
5354f954dc
Added support for http callbacks on processing
...
Sends an HTTP POST request back to an URL given on submission to the API
submit view.
2012-09-26 23:53:51 +02:00
Christopher Allan Webber
20d01daed7
Committing extracted and compiled translations
2012-09-24 14:01:53 -05:00
Christopher Allan Webber
21fee42b84
Committing present MediaGoblin translations before pushing extracted messages
2012-09-24 14:01:20 -05:00
Christopher Allan Webber
a648102890
Too much was marked for translation this gettext message.
...
Thanks for catching AVRS!
2012-09-24 14:00:34 -05:00
LotusEcho
2b28f95b31
Changed a <p/> to </p> in user.html. Removed the <p></p> wrappers in profile.html which was included in user.html.
2012-09-24 20:31:20 +02:00
Christopher Allan Webber
f2bcd91d20
Committing extracted and compiled translations
2012-09-24 11:42:17 -05:00
Christopher Allan Webber
e49a17c097
Committing present MediaGoblin translations before pushing extracted messages
2012-09-24 11:41:43 -05:00
Christopher Allan Webber
315ac0a2d3
Correcting a couple of spelling errors. Thanks elesa, for finding them!
2012-09-24 11:40:47 -05:00
Joar Wandborg
4f8508f664
Removed logging entry from sniff_handler
...
The logging entry caused the submit page to crash if you tried to upload
an SVG with a non-ascii filename.
2012-09-22 14:19:51 +02:00
Joar Wandborg
5ee1ab2abb
Fixed typos visisble, appplication
2012-09-22 12:03:32 +02:00
Christopher Allan Webber
d2eb7440d2
Committing extracted and compiled translations
2012-09-21 15:38:14 -05:00
Joar Wandborg
6b8c66d44c
Added name kwarg to Column(Enum(...)) in OAuth models
2012-09-21 13:20:56 +02:00
Joar Wandborg
0e21b2342f
Added flask-wtf html5 fields to extlib
2012-09-21 13:16:24 +02:00
Joar Wandborg
88a9662be4
Added client registration caps to OAuth plugin
...
THE MIGRATIONS SUPPLIED WITH THIS COMMIT WILL DROP AND RE-CREATE YOUR
oauth__tokens AND oauth__codes TABLES. ALL YOUR OAUTH CODES AND TOKENS
WILL BE LOST.
- Fixed pylint issues in db/sql/migrations.
- Added __repr__ to the User model.
- Added _disable_cors option to json_response.
- Added crude error handling to the api.tools.api_auth decorator
- Updated the OAuth README.
- Added client registration, client overview, connection overview,
client authorization views and templates.
- Added error handling to the OAuthAuth Auth object.
- Added AuthorizationForm, ClientRegistrationForm in oauth/forms.
- Added migrations for OAuth, added client registration migration.
- Added OAuthClient, OAuthUserClient models.
- Added oauth/tools with require_client_auth decorator method.
2012-09-21 13:09:42 +02:00
Joar Wandborg
d4c066abf0
Fixed typo in OAuth README
2012-09-19 22:13:16 +02:00
Joar Wandborg
6ed236d5b5
Added security warning to OAuth README
2012-09-19 22:12:13 +02:00
Joar Wandborg
f26224d433
Fixed a horrible security issue in the OAuth plugin.
...
Also added some real triggering logic to the OAuthAuth Auth object.
2012-09-19 21:57:59 +02:00
Joar Wandborg
a7b8c214e9
Added some more helpful links to the OAuth docs
...
- OAuth v2.25 draft
- IRC channel
- OAuth plugin source code
2012-09-18 21:51:22 +02:00
Joar Wandborg
4427b1bea4
Fixed typo in OAuth docs, recieve => receive
2012-09-18 21:44:02 +02:00
Joar Wandborg
df3147b986
Added documentation for the OAuth plugin
2012-09-18 21:42:10 +02:00
Joar Wandborg
6d1e55b262
Style fixes
2012-09-18 18:19:26 +02:00
Aaron Williamson
c9ac6841c4
Fixed post-collect redirect to always take user to image collected.
2012-09-18 18:10:36 +02:00
Aaron Williamson
256f816f50
Fixed collection sidebar for media_home to user collection.url_for_self instead of incorrectly getting the session user
2012-09-18 18:10:36 +02:00
Aaron Williamson
cdb35b9717
Reference collection creator through already-existing collection_item's foreign key
2012-09-18 18:10:36 +02:00
Aaron Williamson
b5a64f7884
Removed unnecessary reference to may_edit_collection in edit views.py
2012-09-18 18:10:36 +02:00
Aaron Williamson
d8984df83f
Added default for 'collected' column to migration
2012-09-18 18:10:36 +02:00
Aaron Williamson
8926c94978
Fixed migrations for Collection and CollectionItem tables
2012-09-18 18:10:36 +02:00
Aaron Williamson
29fdd3bb7c
Added migrations for Collection and CollectionItem tables
2012-09-18 18:10:36 +02:00
Aaron Williamson
59fb87c944
Fixed collections migration to add 'collected' column to media_entries instead of 'collections'
2012-09-18 18:10:36 +02:00
Aaron Williamson
a0fdc00fab
Added new files for collections
2012-09-18 18:10:36 +02:00
Aaron Williamson
be5be1154f
Added basic collection functionality
2012-09-18 18:10:36 +02:00
Joar Wandborg
09e528acbb
Fixed validation in API post_entry.
...
Added state to API get_entry_serializable
2012-09-17 23:54:27 +02:00
Joar Wandborg
c92aa0d0b2
API: Fixed media file URLs, limits
...
- Added default limit and limit arg to get_entries
- Fixed URL generation for BasicFileStorage files in API
2012-09-15 22:34:34 +02:00
Joar Wandborg
965b39a84f
Added CORS headers to API json_response
2012-09-15 22:18:49 +02:00
Joar Wandborg
3a1993288f
Fixed ?next=<url> argument for require_active_login
...
It now includes the full URI, including GET args, not just the path.
2012-09-15 21:07:24 +02:00
Joar Wandborg
30520c92cc
Fixed tests
...
- Adapt tests to new global_config arg for run_dbupdate
- Account for [plugins] not being set in config
2012-09-15 17:54:34 +02:00
Joar Wandborg
999f91eb8a
Fixed typo in API post_entry
2012-09-15 16:54:14 +02:00
Joar Wandborg
4504dbba9b
Added post_entry at /api/submit
2012-09-15 16:51:29 +02:00
Joar Wandborg
85726f7360
Added fields to /api/entries, wrote docstrings for api.tools
2012-09-15 15:54:22 +02:00
Joar Wandborg
42c837523e
Added /api/entries view
2012-09-15 15:25:26 +02:00
Joar Wandborg
a062149e90
Created API plugin, moved api_auth to the API plugin
2012-09-13 20:59:00 +02:00
Joar Wandborg
f46e2a4db9
Add OAuth models, plugin DB migrations, api_auth
2012-09-13 20:38:59 +02:00