bugAdvene - Bugs: bug #16166, Spurious "content"...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #16166: Spurious "content" attribut in Schema

Submitted by:  Olivier Aubert <oaubert>
Submitted on:  Tue Jun 15 09:18:32 2010  
Category: Data modelSeverity: 3 - Normal
Priority: 5 - NormalStatus: Confirmed
Assigned to: Pierre-Antoine Champin <pachampin>Open/Closed: Open
Release: NoneOperating System: None

Tue Jun 15 09:18:32 2010, original submission:

hasattr(sc, "content") is True. Indeed, it sc.content returns a Content object. However, trying to access sc.content.data raises an exception:

Traceback (most recent call last):
File "/home/oaubert/src/advene2/advene/gui/evaluator.py", line 389, in evaluate_expression
res=eval(expr, self.globals_, self.locals_)
File "<string>", line 1, in <module>
File "/home/oaubert/src/advene2/libadvene/model/core/content.py", line 588, in _get_data
return self._owner_elt._get_content_data()
File "/home/oaubert/src/advene2/libadvene/model/core/content.py", line 436, in _get_content_data
File "/home/oaubert/src/advene2/libadvene/model/core/content.py", line 176, in _load_content_info
o._backend.get_content_info(o._id, self._id, self.ADVENE_TYPE)
TypeError: 'NoneType' object is not iterable

There should not be any "content" attribute in the first place.

Olivier Aubert <oaubert>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by oaubert (Submitted the item)

    Error: not logged in



    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup