Opened 11 years ago

Last modified 11 years ago

#321 closed defect (FIXED)

'User' object has no attribute '_id'

Reported by: joar Owned by: Elrond
Priority: minor Milestone:
Component: programming Keywords:
Cc: Parent Tickets:

Description

File '/srv/mg.wandborg.se/mediagoblin/mediagoblin/submit/views.py',
line 65 in submit\_start entry['uploader'] = request.user.\_id File
'/srv/mg.wandborg.se/mediagoblin/lib/python2.7/site-packages/mongokit-0.7.2-py2.7.egg/mongokit/schema\_document.py',
line 379 in **getattr** return dict.**getattribute**(self, key)
AttributeError: 'User' object has no attribute '\_id'



Subtickets

Change History (8)

comment:1 Changed 11 years ago by Elrond

Owner: set to Elvenlord Elrond
Priority: NormalHigh
Okay, I broke it!
No idea, why the unit tests did not catch this.
I'll investigate tomorrow.



comment:2 Changed 11 years ago by Elrond

-  I can't reproduce this. I can happily upload to my local
   instance (revision ``3618a9ac5``).
-  Can you please check if the unit tests pass for you?
   ``./runtests.sh``
-  Can you replace the ``._id`` by ``['_id']`` and see, if this
   fixes it for you? (effectively locally reverting my changes)
-  I need some more info to understand this, really...



comment:3 Changed 11 years ago by joar

Tried to reply via the replying to the notice email, didn't work.

The error occured when submitting an image, in the POST req.

Kind regards.



comment:4 Changed 11 years ago by Christopher Allan Webber

Might also be useful to know if you two are running the same
mongokit version.



comment:5 Changed 11 years ago by joar

My version:

::

    >>> mongokit.__version__
    '0.7.2'



comment:6 Changed 11 years ago by Elrond

Priority: HighNormal
As even Joar seems to have issues reproducing this, I'm lowering
the Priority back to "Normal".

I will hold back all my other ``["field"]`` to ``.field``
conversions until this bug is closed.



comment:7 Changed 11 years ago by joar

Status: NewClosed
The issue seems to be gone since
``6950c6c77c2daf4a47810e05a7c3f64f8995059d``.



comment:8 Changed 11 years ago by Will Kahn-Greene

The original url for this bug was http://bugs.foocorp.net/issues/669 .

Note: See TracTickets for help on using tickets.