4049 Commits

Author SHA1 Message Date
tilly-Q
268f243074 The script now officially works! It works in many different situations, whether
the media is to be uploaded is stored locally or on the web. Still have to clean
up the code and look for errors. I may also refactor some of this into a functi-
on to be used with a GUI frontend in another project. Lastly, I need to merge
this with the metadata branch I've been working on, and convert the metadata.csv
information into the proper format for the new metadata column.
2014-04-21 12:10:18 -04:00
tilly-Q
8aa015978c This branch will create a commandline bulk-upload script. So far, I have written
the code to read csv files into a usable dictionary.
2014-04-21 12:10:18 -04:00
tilly-Q
ec5a385ada Big update. I added in a json-ld context file which will be used in all our
metadata columns in the future. The context describes the dublin core elements.
It still has not been finalized however.
2014-04-21 12:10:18 -04:00
tilly-Q
2dd966b5e2 In this commit, I added a new column which will be used for RDFa metadata of
media.
2014-04-21 12:07:59 -04:00
tilly-Q
89b6b55766 Changed the name of the metadata column 2014-04-15 14:17:43 -04:00
tilly-Q
b91df79041 Moved the metadata column to MediaEntry rather than MediaFile 2014-04-15 13:51:27 -04:00
tilly-Q
fbb13abe9a Added the 'requests' library as a dependency and switched over to using it to
fetch remote pieces of media in the batchupload script
2014-04-15 13:35:22 -04:00
tilly-Q
6fa9b06f9a Fixed incorrectly coded references to filesystem paths 2014-04-11 13:06:09 -04:00
Christopher Allan Webber
e36bb0ee18 Adding Berker to the AUTHORS list 2014-04-10 15:27:42 -05:00
Berker Peksag
de6a313c5a Issue #686: Create User.url_for_self() method.
*Note from cwebber on merge of this branch:*
  Thanks also to Sturm who provided an early version of this patch.
2014-04-10 15:23:09 -05:00
Berker Peksag
521824da5c Issue #824: Add gmg deletemedia command. 2014-04-10 15:08:29 -05:00
Berker Peksag
f4a5325e67 Tweak the trim whitespace plugin documentation.
- Fix code highlighting
- Wrap all lines to 80 chars
- Add more markup (eg. Response() to ``Response()``)
2014-04-10 13:28:27 -05:00
Christopher Allan Webber
2edd6b0b91 Adding a general purpose context hook for the media display page.
Since the media template name gets swapped out for each media
type, normal context hooks don't work if you want to affect all
media displays.  This gives a general purpose hook.

This commit sponsored by Kẏra.  Thanks! :)
2014-04-07 16:58:54 -05:00
Christopher Allan Webber
bfb99d65f4 No more EXIF, for real. Use exifread. This should fix recent import EXIF failures.
This commit sponsored by Aaron Whitehouse.  Thank you!
2014-04-06 13:58:47 -05:00
Christopher Allan Webber
b19491c535 specify older sqlalchemy-migrate because pbr ruins everything. 2014-04-03 14:20:44 -05:00
tilly-Q
fb60426ed1 Took out all of the references to the temporary url I was using
/metadata_context/v1
2014-04-03 12:20:30 -04:00
tilly-Q
8e33666813 Fixed a bad get of 'dcterms:rights' and am throwing away the idea of an external
context file for the json-ld because it feels unnecessary seeing as we are just
using the dc core terms
2014-04-03 12:18:17 -04:00
Christopher Allan Webber
4a0778b3c1 Move ./bootstrap.sh to experimental-bootstrap.sh 2014-04-03 10:13:02 -05:00
Christopher Allan Webber
5526150e1a Make the MediaGoblin databse user creation more deterministic.
Thanks RuiSeabra for the suggestion!

This commit sponsored by Chad Glendenin.  Thanks, Chad!
2014-03-29 12:28:19 -05:00
tilly-Q
0e4144abaf Wrote more comprehensive error messages. 2014-03-27 17:29:34 -04:00
tilly-Q
32aec1e533 Fixed a minor error in the batch upload script and modified the json-ld context. 2014-03-27 17:10:31 -04:00
Christopher Allan Webber
052d3d985a Removing extlib submodule and switching it to being a package.
Much nicer!

This commit sponsored by Cameron Merkel.  Thanks Cameron!  Good luck
with yer projects!
2014-03-27 15:05:25 -05:00
tilly-Q
8f054a6b99 Fixed up some fatal errors. Is still not ready. 2014-03-27 14:12:50 -04:00
tilly-Q
680faaaa85 Added exception handling into the metadata format checking function. 2014-03-27 13:55:15 -04:00
tilly-Q
6b43a6f432 Began work on metadata validation 2014-03-27 13:31:04 -04:00
Christopher Allan Webber
9caaff48af Okay, nm, that didn't fix it. Setting it back. Sigh. 2014-03-26 16:41:56 -05:00
Christopher Allan Webber
a946908d0f I guess this also fixes it and is nicer 2014-03-26 16:35:46 -05:00
Christopher Allan Webber
0b3b9a291f six==1.5.2 2014-03-26 16:17:29 -05:00
Christopher Allan Webber
5d04469315 Babel now requires >= 1.0 2014-03-26 14:17:18 -05:00
Christopher Allan Webber
6d27a79271 EXIF returns less data than it used to... 2014-03-26 12:07:42 -05:00
tilly-Q
a372c30531 Merge branch 'bulk-upload' into metadata 2014-03-23 16:43:20 -04:00
tilly-Q
9d4e9de76b Changed some of the print messages as well as tweaked the order of
the commands attempts to figure out what type of file the target file
is.
2014-03-23 16:40:51 -04:00
tilly-Q
579a6b574f I made it so the command no longer requires the "Target type" to be provided,
it now recognizes whether the target is a directory or an archive on its own.

I added in a help message, which is still incomplete, but should make it easier
for admins to know how to use this new command. I believe we should also provi-
-de an example of the location.csv and metadata.csv files, so there is no conf-
-usion. Also, I made it possible for the command to recognize zip files as a
valid archive. I also made some minor changes to the commands description w/i
the larger gmg command help menu.
2014-03-23 16:40:50 -04:00
tilly-Q
27b7d94896 Minor change in the wording of argparsing. 2014-03-23 16:40:50 -04:00
tilly-Q
714c4cb7d7 The script now officially works! It works in many different situations, whether
the media is to be uploaded is stored locally or on the web. Still have to clean
up the code and look for errors. I may also refactor some of this into a functi-
on to be used with a GUI frontend in another project. Lastly, I need to merge
this with the metadata branch I've been working on, and convert the metadata.csv
information into the proper format for the new metadata column.
2014-03-23 16:40:50 -04:00
tilly-Q
3214aeb238 This branch will create a commandline bulk-upload script. So far, I have written
the code to read csv files into a usable dictionary.
2014-03-23 16:40:50 -04:00
tilly-Q
74d7ff9614 Big update. I added in a json-ld context file which will be used in all our
metadata columns in the future. The context describes the dublin core elements.
It still has not been finalized however.
2014-03-23 16:40:12 -04:00
tilly-Q
7a29c67bf9 In this commit, I added a new column which will be used for RDFa metadata of
media.
2014-03-23 16:38:45 -04:00
Christopher Allan Webber
023cda0974 Fix Babel version restriction. Onward and upward!
(Fix suggested by simonft... thanks!)
2014-03-22 11:02:24 -05:00
Christopher Allan Webber
c07bb3123c Fix version conflicts we were hitting with six 2014-03-20 23:25:25 -05:00
Boris Bobrov
36990574cf fixes to blog url generation 2014-03-11 11:29:09 -05:00
Christopher Allan Webber
002da63bce The default failures are just way too verbose. Quieting them down a bit.
This commit sponsored by Chad Glendenin.  Thanks!
2014-03-11 11:28:46 -05:00
Christopher Allan Webber
d07712394d Adding Boris to AUTHORS 2014-03-11 11:07:35 -05:00
Boris Bobrov
2636dddfa6 added new slugify with unidecode 2014-03-11 11:01:04 -05:00
Christopher Allan Webber
1e80c976e2 Remove mention of blog plugin in config 2014-03-09 14:13:04 -05:00
Christopher Allan Webber
f055b47507 Explicitly use /bin/bash even if shell is /bin/false 2014-03-08 12:38:41 -06:00
Christopher Allan Webber
a040f72ded Changing "su -" to just "su"... considerably simpler.
I don't think inheriting environment stuff is a serious issue.
2014-03-08 12:28:23 -06:00
Alon Levy
5e262d8bf5 make exif a submodule
Updates it to latest which includes a fix for a 100% hang on a jpg without any EXIF data:
https://www.dropbox.com/s/m5l185qxq9w5mzk/raspberry-pi-gpio-cheat-sheet.jpg

Signed-off-by: Alon Levy <alon@pobox.com>
2014-03-02 01:07:13 +02:00
Christopher Allan Webber
1b4a9f2605 Tyops in deployment docs as pointed out by @latchkeyed@identi.ca.
Thanks for noticing and correcting!
2014-02-20 14:06:36 -06:00
Christopher Allan Webber
e27e04a390 mediagoblin -> mediagoblin
Thanks Luismi for pointing this out!
2014-02-19 17:30:57 -06:00