Custom Query (1174 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (361 - 363 of 1174)

Ticket Resolution Summary Owner Reporter
#1007 fixed Location error in edit_profile ayleph
Description
Error - <type 'exceptions.AttributeError'>: 'unicode' object has no attribute 'name'
URL: https://goblinrefuge.com/mediagoblin/u/umrohleder/edit/
File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/exceptions/errormiddleware.py', line 144 in __call__
  app_iter = self.application(environ, sr_checker)
File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py', line 203 in __call__
  return app(environ, start_response)
File '/path/to/mediagoblin/mediagoblin/app.py', line 268 in __call__
  return self.call_backend(environ, start_response)
File '/path/to/mediagoblin/lib/python2.7/site-packages/Werkzeug-0.9.6-py2.7.egg/werkzeug/wsgi.py', line 588 in __call__
  return self.app(environ, start_response)
File '/path/to/mediagoblin/mediagoblin/app.py', line 245 in call_backend
  response = controller(request)
File '/path/to/mediagoblin/mediagoblin/decorators.py', line 46 in wrapper
  return controller(request, *args, **kwargs)
File '/path/to/mediagoblin/mediagoblin/decorators.py', line 73 in new_controller_func
  return controller(request, *args, **kwargs)
File '/path/to/mediagoblin/mediagoblin/decorators.py', line 118 in wrapper
  return controller(request, *args, url_user=user, **kwargs)
File '/path/to/mediagoblin/mediagoblin/edit/views.py', line 225 in edit_profile
  location.name = unicode(form.location.data)
AttributeError: 'unicode' object has no attribute 'name'
#1010 fixed Typos in mediagoblin/media_types/image/migrations.py ayleph
Description

Three instances of media_entries have been misspelled as media_entires. This doesn't appear to cause any problems, as the misspelled variable is referred to by the same name later, but this should still be corrected.

diff --git a/mediagoblin/media_types/image/migrations.py b/mediagoblin/media_types/image/migrations.py
index 4af8f29..83f5dc8 100644
--- a/mediagoblin/media_types/image/migrations.py
+++ b/mediagoblin/media_types/image/migrations.py
@@ -31,7 +31,7 @@ def remove_gps_from_image(db):
     metadata = MetaData(bind=db.bind)
     image_table = inspect_table(metadata, "image__mediadata")
     location_table = inspect_table(metadata, "core__locations")
-    media_entires_table = inspect_table(metadata, "core__media_entries")
+    media_entries_table = inspect_table(metadata, "core__media_entries")

     # First do the data migration
     for row in db.execute(image_table.select()):
@@ -58,9 +58,9 @@ def remove_gps_from_image(db):
         location = db.execute(location_table.insert().values(position=fields))

         # now store the new location model on Image
-        db.execute(media_entires_table.update().values(
+        db.execute(media_entries_table.update().values(
             location=location.inserted_primary_key[0]
-        ).where(media_entires_table.c.id==row.media_entry))
+        ).where(media_entries_table.c.id==row.media_entry))

     db.commit()
#1016 fixed oauth sends invalid timestamp format for postgresql db ayleph
Description

When using a client such as pypump to post content to GMG via the API, postgresql complains about an invalid timestamp syntax. Postgresql seems to expect a datetime string instead of Unix epoch integer.

DataError: (DataError) invalid input syntax for type timestamp: "1414412402"
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.