| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
suggestions.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
This tool creates an initial media entry for a given user.
No magic. It just prefills the license with the user's
default license and adds the user as uploader.
|
|
|
|
| |
And fix tests.
|
|
|
|
|
| |
This allows to return piwigo xml errors.
Those can also be matched into html error codes.
|
| |
|
| |
|
|
|
|
|
| |
wtforms.validators.Optional doesn't take an argument.
I don't know, why I gave it one.
|
| |
|
|
|
|
| |
If there is a user logged in, show his name.
|
|
|
|
|
|
|
| |
Using the brand new itsdangerous sessions to power the
sessions for piwigo.
The real point is: Clients want to have the session in a
"pwg_id" cookie and don't accept any other cookie name.
|
|
|
|
|
| |
To make things a bit easier, switch to WTForms
for validating the received data.
|
|
|
|
|
| |
This one was a fake thing to make clients happy.
Real sessions coming sonn.
|
|
|
|
|
| |
It shouldn't reference the config until in the setup_plugin() method,
else there's a race condition.
|
| |
|
| |
|
|
|
|
| |
That's somewhat, what piwigo does.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Initially I was going to write a failing test for refresh tokens. Thus
this fix includes an orphaned 'expect_failure' method in test utils.
I ended up writing support for OAuth refresh tokens, as well as a lot of
cleanup (hopefully) in the OAuth plugin code.
**Rebase**: While waiting for this stuff to be merged, the testing
framework changed, it comes with batteries included regarding fails.
Removed legacy nosetest helper.
Also added a lot of backref=backref([...], cascade='all, delete-orphan')
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* JDShu/649_use_form_data_field:
Use WTForms data field in user_pages/views.py
Use WTForms data field in auth/views.py
auth: whitespace cleanup in views.py
Use WTForms data field in plugins/oauth/views.py
Use WTForms data field in submit/views.py
Use WTForms data field in edit/views.py
|
| | |
|
|\ \ |
|
| |/
| |
| |
| |
| | |
When uploading, the file field needs some checks, it seems.
So refactor them into check_file_field and use around.
|
| |
| |
| |
| |
| | |
This one needs to return just "2.5.0 (Mediagoblin)" instead
of "Piwigo 2...".
|
| |
| |
| |
| |
| |
| |
| |
| | |
Without a session and a logged in user, this can't go much
further.
Misses check for the file upload field.
Need refactored test tool for this.
|
|/ |
|
|
|
|
|
|
|
|
| |
This function receives part of an upload. Does most
parameter validation, but does not safe the data anywhere
for now.
Also fake pwg.images.exist
|
|
|
|
|
|
|
|
|
|
|
| |
- pwg.session.getStatus returns the current user as
"fake_user". When we have a session, we'll return
something better.
- pwg.categories.getList add a name and the parent id for
its one and only "collection".
- Improve logging a bit.
|
|
|
|
|
|
|
| |
shotwell needs a pwg_id cookie to continue.
And really, it's the only cookie it supports, so in the
long run, we need to send a proper session cookie as
pwg_id.
|
| |
|
| |
|
|
|
|
|
|
| |
- The xml formatting is now in the main function.
- Add PwgNamedArray to have named lists in xml output.
- Remove gmg.test method
|
| |
|
|
|
|
|
|
|
| |
This one just puts up the basic endpoint, some
infrastructure and a fake login method.
Lots more needed.
|
| |
|
|
|
|
|
|
|
| |
- Added wrap_wsgi, celery_setup, celery_logging_setup hooks
- Updated raven plugin docs
- Updated production considerations docs
- Added raven logging setup
|
|
|
|
|
|
| |
Check for CELERY_CONFIG_MODULE before we import raven.contrib.celery. It
seems that the import otherwise sets up the celery client before we get
to pass it our mediagoblin-specific settings.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Removed the translation marking and passed in empty strings to avoid
WTForms automagically creating the labels from the field names (i.e.
client_id => 'Client Id').
|
|
|
|
|
|
| |
As Elrond points out, the "extra" is implied by it being a hook!
This commit sponsored by Andrew Fustini. Thanks, Drew!
|
|
|
|
|
|
| |
The response headers were never getting set because of a bug in the 7c552c0
commit. This expands the loop into a more readable form and results in the
headers getting set.
|
|
|
|
|
|
|
|
| |
The template in the geolocation plugin still used the old
config option. Just remove that. To enable it, you enable
the plugin. No need for extra config.
Tested by manwesulimo2004 (via IRC).
|