3035 Commits

Author SHA1 Message Date
Christopher Allan Webber
c139d49d83 ./bin/gmg dbupdate, not ./bin/dbupdate
Thanks to Tsyesica for catching this :)
2013-06-06 17:56:00 -05:00
Joar Wandborg
3c48bb39b7 CloudFiles: Default to SSL URIs 2013-06-07 00:28:17 +02:00
Christopher Allan Webber
ee4687752f Make sure that the pytest revision is at least at 2.3. 2013-06-03 13:29:04 -05:00
Christopher Allan Webber
0e4d6221fa Commenting out the max-height restriction on thumbnails. 2013-05-30 10:23:50 -05:00
Christopher Allan Webber
ea49f37821 Explained more clearly why it's okay for interface classes to be keys.
This commit sponsored by Nick Glynn.  Thank you!
2013-05-29 18:10:09 -05:00
Christopher Allan Webber
9d881aeeb4 Provide a tip on how to do interfaces via our plugin API.
Uses a frogputer science approach to frobbing as an example (which is
total nonsense, but fun).

This commit sponsored by Ryan Kelln.  Thank you!
2013-05-29 17:21:15 -05:00
Christopher Allan Webber
4001909574 Actually use the right underlining for the wtforms hooks section 2013-05-29 16:12:24 -05:00
Christopher Allan Webber
baf2c1c96e Additional hook tips! Documentation on how to modify a wtforms form.
This commit sponsored by Gian-Maria Daffré.  Thank you!
2013-05-29 15:57:58 -05:00
Christopher Allan Webber
8ae5d20f19 Where do you find hooks? How do you add them? An explaination!
This commit about talking to community members sponsored by
community member Aeva Palecek.  Thanks!
2013-05-29 15:35:37 -05:00
Christopher Allan Webber
b21220e931 Actually link to the release notes when we say "see the release notes".
This commit sponsored by Brian Kemp.  Thank you!
2013-05-29 14:13:12 -05:00
Christopher Allan Webber
d861ffc9ad Link to the plugin api stuff and the database plugin sections from the quickstart.
This commit sponsored by Nathan Stephenson.  Thank you!
2013-05-29 14:10:07 -05:00
Christopher Allan Webber
d28c5066e8 The pdf.js iframe view is awesome so I'm making it the default. So there! ;)
This commit sponsored by Jay Turley.  Thank you!
2013-05-28 16:36:27 -05:00
Christopher Allan Webber
ab4cbb103e Fixing bug where non-image types might break if app_config['original_date_visible'] is true
Not all media managers have the .get_original_date attribute, so of
course break.  This is fixed by making a new space where individual
media types can define this if they like.

This commit sponsored by Matthieu Dupont de Dinechin.  Thank you!
2013-05-28 16:35:14 -05:00
Rodney Ewing
f9e032212d added a register_user function
cherry picked from rodney757 and fixed for out of order
picking.
2013-05-28 01:22:19 +02:00
Rodney Ewing
75fc93686d created a check_login_simple function
cherry-picked from rodney757, fixed few conflicts due to
out of order cherry-picking. Thanks to rodney757 for making
my idea even better.
2013-05-28 00:11:36 +02:00
Rodney Ewing
02b6892c29 moved email_debug_message to gmg/tools/mail 2013-05-27 23:33:18 +02:00
Rodney Ewing
97aebda7de moved send_verification_email to auth/tools 2013-05-27 23:29:39 +02:00
Rodney Ewing
41258916f2 removed unused import 2013-05-27 23:23:34 +02:00
Christopher Allan Webber
cff285b1cb Committing extracted and compiled translations 2013-05-27 13:55:06 -05:00
Elrond
199685831d Extract footer into bits/base_footer.html. 2013-05-26 13:29:02 +02:00
Christopher Allan Webber
b75eb88fab No more of this find_packages nonsense.
Explicitly declare mediagoblin as the only package.  find_packages has
caused messes in the past :)

This commit sponsored by Pedro Ângelo.  Thanks!
2013-05-24 18:49:19 -05:00
Joar Wandborg
5471e08e7e Improved docs
- Fixed an outdated URL
- Rewrote "Separate Celery" section
- Changed literal blocks to bash code-blocks
- Changed wording when referring to the MediaGoblin WSGI application
2013-05-24 23:07:09 +02:00
Rodney Ewing
7cb7653c64 moved normalize_user_or_email_field to auth/tools.py from auth/forms.py 2013-05-23 14:29:19 -07:00
Christopher Allan Webber
5de402781f Moving statcdirect automodule doc reference to autoclass per Elrond's suggestion.
Cleaner!
2013-05-23 15:56:33 -05:00
Joar Wandborg
14aa2eaa19 Cleaned up EXIF view
The last update made the assumption that EXIF metadata is in some way
consistent between camera models, images, manufacturers. This update
takes into account that nothing is certain whenever EXIF is involved.
2013-05-23 22:21:02 +02:00
Christopher Allan Webber
24ede04415 Documentation changes to reflect new plugin assetlink stuff
- updated old theme assetlink section to reflect new location of
   ./bin/gmg assetlink and removed comment about the plugin command
   being temporary.
 - Added a new section to the standard config file on where to put the
   plugin_static section
 - Added release notes about said section

This commit sponsored by Thomas Webber.  Thanks, Dad!
2013-05-23 13:43:04 -05:00
Christopher Allan Webber
23055eb394 Full unit test for the plugin assetlink command.
Tests:
 - if the link doesn't exist yet
 - if the link already exists
 - if it is a symlink to something else
 - if it exists but is not a symlink

This commit sponsored by Lon Koenig.  Thank you!
2013-05-23 13:33:08 -05:00
Christopher Allan Webber
9230968f7e Cleaning a bit: os.path.sep.join -> os.path.join 2013-05-23 13:33:08 -05:00
Christopher Allan Webber
247759caa7 docstring update: link theme... and plugins! 2013-05-23 13:33:08 -05:00
Christopher Allan Webber
6afc8364e0 Generalize "gmg theme assetlink" -> "gmg assetlink" and cover both theme and plugins
We've moved the module... probably I'll re-add theme just to give a
warning that this is deprecated.

This commit sponsored by Kevin Williams.  Thank you!
2013-05-23 13:33:08 -05:00
Christopher Allan Webber
bdd23c0eae test_plugin_staticdirect now works and passes.
This commit sponsored by Samuel Vale.  Thank you!
2013-05-23 13:33:08 -05:00
Christopher Allan Webber
1b2cf1e823 Simple "staticstuff" plugin for writing unit tests on plugin static asset linking.
It doesn't do much... it just has a static directory with a "bunnify"
CSS file and has a unit test that returns a json encoded set of a
staticdirect with both this plugin enabled and also
with (theoretically) a file distributed with MediaGoblin (it isn't
really, but in our case that doesn't matter.)

Also set up the static_setup hook / PluginStatic object for this
plugin; testing that with `./bin/gmg theme assetlink` seemed to work.
(And argh, need to update that command name, I know.)

This commit sponsored by Bradley Kuhn.  Thanks bkuhn!
2013-05-23 13:33:07 -05:00
Christopher Allan Webber
df69695d9e Various fixes to plugin assetlinking command.
Actually trying to run the command helps figure out what needs to be
fixed :)

This commit sponsored by Justin Nichol.  Thank you!
2013-05-23 13:33:07 -05:00
Christopher Allan Webber
491029bc36 Moving test_user_dev->user_dev in plugin app configs & adding plugin static serving
The test_user_dev (as opposed to user_dev) was a legacy before we had
each application running in its own directory (as they now do in
pytest).  Move that name to just user_dev... this is more consistent
with the rest of our naming and will make writing these config files
easier.  (If we want to test that changing these still works, that
should be a separate unit test with special config files.)

Additionally, add plugin static serving to the common test paste
config file.

This commit sponsored by Juan Jose Marin Martinez.  Thank you!
2013-05-23 13:33:07 -05:00
Christopher Allan Webber
505b4b39b8 Document assetlink and staticdirect usage for plugins.
Still a bit to clean up around what the command to be run actually is,
since that will likely change.

This commit sponsored by David Decker.  Thank you!
2013-05-23 13:33:07 -05:00
Christopher Allan Webber
2f21842159 Oh right, actually mount /plugin_static/ :) 2013-05-23 13:33:07 -05:00
Christopher Allan Webber
5ccb16ca20 Work towards getting plugin static linking/serving to work
- add link_plugin_assets.  For now, incorrectly running from
   ./bin/gmg theme assetlink... uh, will fix ;)
 - Update paste and config_spec.ini configs to handle the locations
   and serving of the plugins' static resources

This commit sponsored by Marko Dimjašević.  Thank you!
2013-05-23 13:33:07 -05:00
Christopher Allan Webber
d6d2c771bd Start of ability to have plugins provide static resources!
Note I have not tested any of this yet ;)  But we're already on our way:
 - We've got docs
 - The hook is there

Lots to do still though.  But, progress! :)

This commit sponsored by Laura Arjona Reina.  Thanks larjona!
2013-05-23 13:33:07 -05:00
Christopher Allan Webber
8ca51d32b6 Move "bits" templates with dashes in them to underscores
Moved all references and also added a note to our release notes.

This commit sponsored by Juan Rodriguez.  Thank you!
2013-05-22 16:44:50 -05:00
Christopher Allan Webber
ae9eca1bf2 Moved frontpage "welcome" stuff into its own bits file.
This should make it easier to override just that part of the page.

This commit sponsored by David Rylander.  Thank you!
2013-05-22 16:33:07 -05:00
Mats Sjöberg
cac478e5aa Piwigo minor fix in categories_getList. 2013-05-21 22:55:55 +03:00
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