Jessica Tallon
a02de38f91
Let parser handle typing for deletuser command
2015-01-20 12:24:13 +00:00
Christopher Allan Webber
a4768df0ca
Context objects now use a contextmanager (and update gmg shell to use it)
...
This means that we have a really convenient way to make sure that you
have a context/request that threads its way through the application,
where everything needed gets "shut down" appropriately by the end.
You always get a context object via a context manager! And by the time
you're done with it, things should be cleaned up.
2014-12-03 15:40:57 -06:00
Christopher Allan Webber
f08e31522d
Make "gmg shell" work with the new globals-less setup
2014-12-03 15:40:57 -06:00
Christopher Allan Webber
692e8e7848
This import_export stuff is mongodb days leftovers. Removing!
...
This commit sponsored by Ray Redd. Thanks!
2014-11-26 16:44:28 -06:00
Berker Peksag
9d85dcdf11
Fix unicode handling in "gmg addmedia".
2014-11-22 18:12:19 +00:00
Christopher Allan Webber
4c03d45f6a
Make a mediagoblin.ini file for the user if needed.
...
This is to prevent our docs from confusing people in this
transitionary time period...
2014-10-10 19:35:09 -05:00
Berker Peksag
b36c84e68a
Port "gmg batchaddmedia" command to Python 3.
2014-10-02 20:18:29 +03:00
Christopher Allan Webber
0c78f41ac7
Switch print statement to print function
2014-09-24 09:32:13 -05:00
Christopher Allan Webber
c2059c4a74
Making alembic happen with python 3 only... for now.
...
We want to make sure it works nicely first.
2014-09-22 14:09:59 -05:00
Christopher Allan Webber
a6252cbf21
Merge branch 'merge-python3-port'
...
Conflicts:
setup.py
2014-09-22 13:58:13 -05:00
ayleph
f0e795df82
Modify deleteuser to fail gracefully
...
bin/gmg deleteuser will produce a traceback error if you attempt to delete a
user who does not exist. This commit provides a fix to allow deletuser to fail
gracefully.
This commit addresses https://issues.mediagoblin.org/ticket/969
2014-09-16 15:29:09 -07:00
Christopher Allan Webber
f6bad0eb26
Merge branch 'master' into merge-python3-port
...
Has some issues, will iteratively fix!
Conflicts:
mediagoblin/gmg_commands/__init__.py
mediagoblin/gmg_commands/deletemedia.py
mediagoblin/gmg_commands/users.py
mediagoblin/oauth/views.py
mediagoblin/plugins/api/views.py
mediagoblin/tests/test_api.py
mediagoblin/tests/test_edit.py
mediagoblin/tests/test_oauth1.py
mediagoblin/tests/test_util.py
mediagoblin/tools/mail.py
mediagoblin/webfinger/views.py
setup.py
2014-09-16 14:01:43 -05:00
Berker Peksag
39a9035487
Implement ServeCommand.{loadserver, loadapp}.
...
This is partly port from PasteScript.
2014-08-15 23:07:35 +03:00
Berker Peksag
051c728c6e
Add an initial "gmg serve" implementation.
...
The CLI is similar to "paster serve".
2014-08-15 23:02:22 +03:00
Berker Peksag
2064ad9450
Move the AlembicMigrationManager to top of the module.
...
Also, add a simple docstring.
2014-08-15 15:40:35 +03:00
Berker Peksag
65f20ca435
Add initial Alembic migrations.
2014-08-13 19:30:23 +03:00
Berker Peksag
7df0793441
Fix dict.keys() in Python 3.
2014-08-13 19:27:49 +03:00
Berker Peksag
4930c2adbd
Fix a comment.
2014-08-13 19:27:23 +03:00
tilly-Q
4285fc67b3
This was a very simple update. The gmg command adduser
was generating an
...
unncessary error because we were searching for a non-unicode string value in a
Unicode column of the core__users table.
2014-07-10 10:28:34 -05:00
Berker Peksag
f9d93c0e9a
Fix print statements.
2014-06-29 04:13:23 +03:00
Natalie Foust-Pilcher
446cece470
Used the codecs library to read the csv file in batchaddmedia as unicode.
2014-06-21 15:26:23 -04:00
Berker Peksag
9da03b739f
Convert media_ids to int safely.
...
With this commit, "gmg deletemedia spam,12" will not raise
ValueError anymore.
2014-06-13 10:30:46 -05:00
Berker Peksag
25b1296ded
Properly exit when "gmg deletemedia" succeed.
...
Also, fixed a typo: "to will be" -> "will be"
2014-06-13 10:30:46 -05:00
Loïc Le Ninan
8c7ba963af
#303 : enhancement : add a command to delete users
2014-06-11 16:42:26 -05:00
Berker Peksag
d9aced73f1
The file() builtin has been removed in Python 3. Use open() instead.
2014-06-07 13:51:42 +03:00
Berker Peksag
e49b7e02b2
Use six.text_type instead of unicode().
...
I will be switch to use ``from __future__ import unicode_literals`` later.
2014-06-02 20:59:28 +03:00
Berker Peksag
386c9c7c55
Use six.iteritems() instead of dict.iteritems().
2014-05-26 19:50:38 +03:00
tilly-Q
65f5714118
Adjusted batchaddmedia to make use of more internal nodes. Added to the docs.
2014-05-13 18:24:26 -04:00
tilly-Q
80fefb8514
Removed unused imports.
2014-05-13 16:59:02 -04:00
tilly-Q
c0ea2bad04
Prepared for input without an 'id' column and made all of the internal nodes
...
into free floating nodes so that compact_and_validate will remove them.
2014-05-13 16:57:12 -04:00
tilly-Q
1d09e8b4f1
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin into metadata
...
Conflicts:
mediagoblin/gmg_commands/__init__.py
2014-05-13 15:24:59 -04:00
tilly-Q
8524a6bdc5
Added documentation for the batchaddmedia gmg tool to the mediagoblin docs.
2014-05-12 17:02:31 -04:00
tilly-Q
7d52eb7705
Modified the batchaddmedia script so that it only looks for one csv file instead
...
of the previous method which looked for two files.
2014-05-12 14:10:29 -04:00
tilly-Q
e8d64d453b
Cleaned up the 'batchaddmedia' command a bit
2014-05-12 13:19:03 -04:00
Christopher Allan Webber
6fab7734d6
Updating batchaddmedia to use new metadata tools
2014-05-07 18:50:48 -05:00
Christopher Allan Webber
a448628636
Removing unused variables
2014-05-07 15:21:58 -05:00
Christopher Allan Webber
2a2c534e51
Removing build_json_ld_metadata
2014-05-07 15:21:10 -05:00
Christopher Allan Webber
af3a9107a9
The URL format checker now works correctly
...
...though it isn't checking the right thing
2014-05-07 13:39:03 -05:00
tilly-Q
9f5d388ec0
In the middle of some major changes
2014-04-21 19:07:28 -04:00
tilly-Q
7ff99dabfb
Fixed a problem that was causing errors in batch uploading remote files.
2014-04-21 12:29:00 -04:00
tilly-Q
e00ce53ef6
I had imported requests twice
2014-04-21 12:18:29 -04:00
tilly-Q
45f426ddee
Made it possible to submit media with the metadata provided
2014-04-21 12:11:12 -04:00
tilly-Q
ecea4847e8
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-21 12:11:11 -04:00
tilly-Q
18a9c50db6
Fixed incorrectly coded references to filesystem paths
2014-04-21 12:10:20 -04:00
tilly-Q
77d51d4f33
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-21 12:10:20 -04:00
tilly-Q
907d9626e3
Wrote more comprehensive error messages.
2014-04-21 12:10:19 -04:00
tilly-Q
e46760d315
Fixed a minor error in the batch upload script and modified the json-ld context.
2014-04-21 12:10:19 -04:00
tilly-Q
8c7cccf6cc
Fixed up some fatal errors. Is still not ready.
2014-04-21 12:10:19 -04:00
tilly-Q
26b3d6cf27
Added exception handling into the metadata format checking function.
2014-04-21 12:10:19 -04:00
tilly-Q
3e76b2bc77
Began work on metadata validation
2014-04-21 12:10:19 -04:00