Custom Query (1174 matches)
Results (130 - 132 of 1174)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #5441 | fixed | raw_input is depreceated in python3 | ||
| Description |
Was trying out python3 and was trying to add a new user via gmg. I was getting this error: Traceback (most recent call last):
File "/srv/www/media/bin/gmg", line 9, in <module>
load_entry_point('mediagoblin', 'console_scripts', 'gmg')()
File "/srv/www/media/mediagoblin/gmg_commands/__init__.py", line 148, in main_cli
args.func(args)
File "/srv/www/media/mediagoblin/gmg_commands/users.py", line 46, in adduser
args.email = commands_util.prompt_if_not_set(args.email, "Email:")
File "/srv/www/media/mediagoblin/gmg_commands/util.py", line 36, in prompt_if_not_set
variable=raw_input(text + u' ')
NameError: name 'raw_input' is not defined
Did a little searching and noticed: https://www.codecademy.com/forum_questions/535b85237c82ca9f46000f87#answer-535ba57f52f86373e30012ce In Python 3.x, input() replaces raw_input(), for input from the console. So I edited mediagoblin/gmg_commands/util.py and changed the only raw_input occurrence to input, re-ran the gmg command, and it created the user successfully (or said it did anyway; haven't tested it yet :p). Outside of this one situation, I'm not sure if raw_input affects anything else. |
|||
| #5440 | fixed | Typo in blog views | ||
| Description |
--- a/mediagoblin/media_types/blog/views.py
+++ b/mediagoblin/media_types/blog/views.py
@@ -313,7 +313,7 @@ def blog_delete(request, **kwargs):
blog_slug = request.matchdict.get('blog_slug', None)
blog = get_blog_by_slug(request, blog_slug, author=owner_user.id)
if not blog:
- return render_404(reequest)
+ return render_404(request)
form = blog_forms.ConfirmDeleteForm(request.form)
if request.user.id == blog.author or request.user.has_privilege(u'admin'):
|
|||
| #5436 | fixed | Add "gmg raw_alembic" command | ||
| Description |
For certain types of tasks, it's helpful (and perhaps necessary) to be able to use Alembic's own tooling. We don't want users to have to use this often, but it's particularly helpful for developers. In particular, solving #5424 will probably require having access to Alembic's tool.
Attached is a patch which adds a |
|||
