Mats Sjöberg
94d3192041
Piwigo: some sanity checks before adding to collection as per Elrond's suggestions.
2013-05-21 22:46:57 +03:00
Mats Sjöberg
7da90d56d1
Piwigo: return collections list only to logged in users.
2013-05-21 22:42:41 +03:00
Mats Sjöberg
4150110607
Rudimentary collections support for piwigo plugin.
2013-05-21 22:40:02 +03:00
Mats Sjöberg
18e64476e9
Fixed minor typo in piwigo logging.
2013-05-21 22:39:37 +03:00
Elrond
d5e035e919
Merge remote-tracking branch 'rodney757/change_pass'
...
* rodney757/change_pass:
fixed translation, and changed tabs to spaces, and change it so the user can view their password as they're typing.
modified change_pass tests
moved change pass to a seperate view and fixed issues 709
2013-05-21 18:34:23 +02:00
Rodney Ewing
2ba7603469
fixed translation, and changed tabs to spaces, and change it so the user can view their password as they're typing.
2013-05-21 08:51:21 -07:00
Elrond
6c1467d570
Refactor submit util new_upload_entry
...
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.
2013-05-21 00:28:37 +02:00
Rodney Ewing
eb396abc4a
modified change_pass tests
2013-05-20 14:28:43 -07:00
Rodney Ewing
39aa1db4d6
moved change pass to a seperate view and fixed issues 709
2013-05-20 14:28:43 -07:00
Elrond
4adc3a85dd
piwigo: Return proper error for wrong user/password.
...
And fix tests.
2013-05-20 19:36:28 +02:00
Elrond
68910f6797
piwigo: Add PwgError class.
...
This allows to return piwigo xml errors.
Those can also be matched into html error codes.
2013-05-20 19:35:16 +02:00
Elrond
d6c3375a78
A bit of pep8 and small typo fix.
2013-05-20 19:35:16 +02:00
Joar Wandborg
1b6a2b85e1
Only calculate aperture if fnumber is provided
2013-05-20 00:46:29 +02:00
Joar Wandborg
907bba318a
Take into account incomplete EXIF data
2013-05-20 00:25:19 +02:00
Joar Wandborg
c5323f29f3
Fixed EXIF tests
2013-05-20 00:11:00 +02:00
Gabriel Saldana
420e1374d8
Modifies EXIF section with Camera Info, display toggle and template styling
2013-05-20 00:06:14 +02:00
Gabriel Saldana
b3566e1dc7
Changes to display all EXIF information
2013-05-20 00:06:07 +02:00
Joar Wandborg
c732f422ae
Added upload processing to the piwigo/addSimple
2013-05-19 22:55:54 +02:00
Christopher Allan Webber
041d2fd785
Just word-wrapping the recent changes to the deployment docs.
2013-05-17 15:10:34 -05:00
Christopher Allan Webber
d4f402b9c4
Merge remote-tracking branch 'refs/remotes/merge-requests/58'
2013-05-17 15:08:53 -05:00
Christopher Allan Webber
fbe8edc21c
Noting why we don't have an email uniqueness constraint in the db.
...
This commit sponsored by Guido Günther. Thanks!
2013-05-17 14:10:29 -05:00
Christopher Allan Webber
b69dd85304
Merge remote-tracking branch 'refs/remotes/elrond/misc/pytest_enable_testing'
2013-05-17 11:13:17 -05:00
Christopher Allan Webber
9a9bafc078
Reverting "Always activate testing in every test module ever."
...
Revert "Always activate testing in every test module ever."
This reverts commit 0536306048daa0970d2e43411ba2a9bf073e570e.
2013-05-17 11:12:56 -05:00
Elrond
5fa843f31f
Always activate testing using pytest fixture.
...
This is possibly the cleaner approach to the problem solved
in the previous commit.
The previous commit makes sure, that testing is enabled at
import time. While this one enables it just before the
individual test is run. So this one takes a bit more CPU.
Maybe revert the previous commit?
References: 0536306048daa0970d2e43411ba2a9bf073e570e
2013-05-17 01:46:20 +02:00
Christopher Allan Webber
0536306048
Always activate testing in every test module ever.
...
Kind of a dorky way to implement this, but...
2013-05-16 17:51:21 -05:00
Christopher Allan Webber
0ae3829048
Fixing bug in dbupdate where it would explode on plugin that is missing MODELS or MIGRATIONS
...
The reason it blew up was because in the latter caught exception, it
wouldn't set models/migrations to an empty set, so it would actually
use the previous run's models/migrations! That's what we get for
"leaky" variables on python for loops :)
This commit sponsored by Pascal Diogo Antunes. Thank you!
2013-05-16 16:56:20 -05:00
Christopher Allan Webber
ff97bbe944
Merge branch '623_context_hooks'
2013-05-15 11:40:51 -05:00
Christopher Allan Webber
a1099bba79
Testing the template_context_prerender hook
...
This allows for modifying any context *right before render*, including
access to the variables that are passed in. This test takes advantage
of that and takes one of the variables, "doubleme", and modifies
it (doubles it!)
In our case it turns "happy" and "joy" into "happyhappy" and "joyjoy".
This commit sponsored by Mark Holmquist. Thank you!
2013-05-15 11:40:28 -05:00
Christopher Allan Webber
38ebd05d1a
Simple tyop, view->test... I was writing too many tests at the time :)
2013-05-15 11:29:43 -05:00
Christopher Allan Webber
1c6d2e87f7
Oh right, actually add that hook we just documented, "template_context_prerender" :)
...
This commit sponsored by William Goudie. Thanks Bill! :)
2013-05-15 11:11:24 -05:00
Christopher Allan Webber
0553976187
Hook->hooks since there's more than one of them :)
2013-05-15 11:10:25 -05:00
Christopher Allan Webber
1344c561a0
Adding global context hooks & fixing method names->symbolic view names in docs
...
This commit sponsored by Sheila Miguez. Thanks Sheila!
2013-05-15 10:37:41 -05:00
Christopher Allan Webber
b312d2cd83
Added documentation on view specific hooks
...
This commit sponsored by Matthew Woodward. Thank you!
2013-05-14 16:09:55 -05:00
Christopher Allan Webber
8154ecaf3a
Normalizing indentation a bit in media.html
...
This commit sponsored by Christian Frank. Thank you!
2013-05-14 14:57:37 -05:00
Rodney Ewing
7c41b9d721
fix for bug when comments are disabled, link attribute is never closed
2013-05-14 12:36:13 -07:00
Christopher Allan Webber
5046ca2433
Documenting the test_modify_context and context_modified_app methods
2013-05-14 14:29:23 -05:00
Christopher Allan Webber
f7a5c7c78c
Fully working context hooks, both template/view and global level, with tests
...
Needs documentation though... that's coming next :)
This commit sponsored by Luca Tius. Thanks Luca!
2013-05-14 14:24:27 -05:00
Elrond
76f0fb8cca
piwigo: Start first tests.
...
This first test checks the session logic of the piwigo
plugin. login, logout, getStatus.
2013-05-12 23:19:58 +02:00
Elrond
388daab77c
piwigo: Fix validator usage.
...
wtforms.validators.Optional doesn't take an argument.
I don't know, why I gave it one.
2013-05-12 23:19:18 +02:00
Christopher Allan Webber
725404236e
Merge branch 'master' into 623_context_hooks
2013-05-12 16:17:35 -05:00
Christopher Allan Webber
2dee97ef48
Removing reference to nose (thanks for catching, Elrond!)
...
This commit sponsored by Kevin McCarthy. Thank you!
2013-05-12 16:07:28 -05:00
Christopher Allan Webber
a98c95b41d
Tests should no longer use the environment-variable-related-setup and set up in app instead
...
This should remove a bunch of confusing cruft. I hate using that
environment variable! Also that old code was fragile.
This commit sponsored by Stephen Milton. Thanks!
2013-05-12 15:55:59 -05:00
Christopher Allan Webber
8145547437
Making the uncomment-able db string match the one that we use in the install docs
...
This commit sponsored by Denise Merkel. Thanks, Mom! Happy Mother's Day!
2013-05-12 11:46:38 -05:00
Christopher Allan Webber
33ddf4b1ef
Moving the get_original_date method over to the MediaManager.
...
This fixes a bug so that it doesn't explode if the media_data doesn't
exist.
This commit sponsored by Ole-Morten Duesund. Thank you!
2013-05-11 17:02:26 -05:00
Christopher Allan Webber
34d304441d
Updated "created on" feature to reflect new "hover for real time" tooling
2013-05-11 13:56:02 -05:00
Christopher Allan Webber
058226d0d2
Merge remote-tracking branch 'refs/remotes/tryggvib/532-exif-creation-date'
...
Conflicts:
mediagoblin/config_spec.ini
mediagoblin/templates/mediagoblin/user_pages/media.html
2013-05-11 13:48:42 -05:00
Christopher Allan Webber
aac428bac2
Merge remote-tracking branch 'gabithume/146_debug_message'
2013-05-11 10:19:31 -05:00
Christopher Allan Webber
98dacfe67e
Use the controller's symbolic/lookup name as part of the key for context hooks
...
This commit sponsored by David Collins. Thank you!
2013-05-10 20:26:55 -05:00
Christopher Allan Webber
e39feb041b
Merge branch 'master' into 623_context_hooks
2013-05-10 20:19:16 -05:00
Christopher Allan Webber
94fadafe09
Merge remote-tracking branch 'refs/remotes/dthompson/453_disable_comments'
2013-05-10 16:33:52 -05:00