Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Collection changes and migration for federation | Jessica Tallon | 2015-10-07 | 1 | -1/+0 |
| | | | | | | | - Adds a "type" column to the Collection object and allows the CollectionItem model to contain any object. - Changes "items" to "num_items" as per TODO - Renames "uploader", "creator" and "user" to a common "actor" in most places | ||||
* | Fix some unit tests and bugs | Jessica Tallon | 2015-08-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | This fixes a lot of the issues with the LocalUser changes that were merged recently. There was a problem where the attributes of LocalUser were not being eagerly loaded and because the Session was detached an exception was being raised when they were accessed. This also fixes some typo's which were introduced. Finally this adds a temporary fix for a potential SQLAlchemy bug, this is a bug where doing: User.query.filter(LocalUser.username == "some_username").first() does NOT yeild a user with the username "some_username" but all users on the site. The temp fix is to just query the LocalUser, this should be resolved when bug is confirmed and fixed upstream. | ||||
* | Change codebase to query or create correct User model | Jessica Tallon | 2015-07-31 | 1 | -1/+4 |
| | | | | | | | The code base had many references to User.username and other specific to LocalUser attributes as that was the way it use to exist. This updates those to query on the generic User model but filtering by attributes on the LocalUser. | ||||
* | Change all unicode() calls with six.text_type(). | Berker Peksag | 2015-06-25 | 1 | -1/+2 |
| | | | | Fixes #5329. | ||||
* | Port "gmg batchaddmedia" command to Python 3. | Berker Peksag | 2014-10-02 | 1 | -20/+26 |
| | |||||
* | Used the codecs library to read the csv file in batchaddmedia as unicode. | Natalie Foust-Pilcher | 2014-06-21 | 1 | -5/+18 |
| | |||||
* | Adjusted batchaddmedia to make use of more internal nodes. Added to the docs. | tilly-Q | 2014-05-13 | 1 | -8/+9 |
| | |||||
* | Removed unused imports. | tilly-Q | 2014-05-13 | 1 | -2/+1 |
| | |||||
* | Prepared for input without an 'id' column and made all of the internal nodes | tilly-Q | 2014-05-13 | 1 | -7/+4 |
| | | | | into free floating nodes so that compact_and_validate will remove them. | ||||
* | Added documentation for the batchaddmedia gmg tool to the mediagoblin docs. | tilly-Q | 2014-05-12 | 1 | -3/+9 |
| | |||||
* | Modified the batchaddmedia script so that it only looks for one csv file instead | tilly-Q | 2014-05-12 | 1 | -77/+46 |
| | | | | of the previous method which looked for two files. | ||||
* | Cleaned up the 'batchaddmedia' command a bit | tilly-Q | 2014-05-12 | 1 | -3/+11 |
| | |||||
* | Updating batchaddmedia to use new metadata tools | Christopher Allan Webber | 2014-05-07 | 1 | -87/+12 |
| | |||||
* | Removing unused variables | Christopher Allan Webber | 2014-05-07 | 1 | -3/+0 |
| | |||||
* | Removing build_json_ld_metadata | Christopher Allan Webber | 2014-05-07 | 1 | -16/+1 |
| | |||||
* | The URL format checker now works correctly | Christopher Allan Webber | 2014-05-07 | 1 | -33/+44 |
| | | | | ...though it isn't checking the right thing | ||||
* | In the middle of some major changes | tilly-Q | 2014-04-21 | 1 | -5/+21 |
| | |||||
* | Fixed a problem that was causing errors in batch uploading remote files. | tilly-Q | 2014-04-21 | 1 | -1/+1 |
| | |||||
* | I had imported requests twice | tilly-Q | 2014-04-21 | 1 | -1/+0 |
| | |||||
* | Made it possible to submit media with the metadata provided | tilly-Q | 2014-04-21 | 1 | -0/+1 |
| | |||||
* | Added the 'requests' library as a dependency and switched over to using it to | tilly-Q | 2014-04-21 | 1 | -5/+4 |
| | | | | fetch remote pieces of media in the batchupload script | ||||
* | Fixed incorrectly coded references to filesystem paths | tilly-Q | 2014-04-21 | 1 | -7/+3 |
| | |||||
* | Fixed a bad get of 'dcterms:rights' and am throwing away the idea of an external | tilly-Q | 2014-04-21 | 1 | -10/+11 |
| | | | | | context file for the json-ld because it feels unnecessary seeing as we are just using the dc core terms | ||||
* | Wrote more comprehensive error messages. | tilly-Q | 2014-04-21 | 1 | -7/+21 |
| | |||||
* | Fixed a minor error in the batch upload script and modified the json-ld context. | tilly-Q | 2014-04-21 | 1 | -4/+5 |
| | |||||
* | Fixed up some fatal errors. Is still not ready. | tilly-Q | 2014-04-21 | 1 | -22/+24 |
| | |||||
* | Added exception handling into the metadata format checking function. | tilly-Q | 2014-04-21 | 1 | -2/+18 |
| | |||||
* | Began work on metadata validation | tilly-Q | 2014-04-21 | 1 | -0/+33 |
| | |||||
* | Changed some of the print messages as well as tweaked the order of | tilly-Q | 2014-04-21 | 1 | -13/+17 |
| | | | | | the commands attempts to figure out what type of file the target file is. | ||||
* | I made it so the command no longer requires the "Target type" to be provided, | tilly-Q | 2014-04-21 | 1 | -22/+33 |
| | | | | | | | | | | | 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. | ||||
* | Minor change in the wording of argparsing. | tilly-Q | 2014-04-21 | 1 | -2/+2 |
| | |||||
* | The script now officially works! It works in many different situations, whether | tilly-Q | 2014-04-21 | 1 | -19/+111 |
| | | | | | | | | 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. | ||||
* | This branch will create a commandline bulk-upload script. So far, I have written | tilly-Q | 2014-04-21 | 1 | -0/+110 |
the code to read csv files into a usable dictionary. |