wiki uses deprecated method (per trunk) and will break on first use

Bug #483856 reported by Andre Terra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Softwarefabrica django crud
Fix Committed
Medium
Marco Pantaleoni
Softwarefabrica django utils
Fix Committed
Medium
Marco Pantaleoni

Bug Description

"AttributeError at /wiki/ 'Settings' object has no attribute 'get_all_members'"

get_all_members() has been replaced with __dir__() on latest django versions. I'd fix it myself, but you must have a better idea of where things are in this project, given that I haven't been working with it for more than 15 minutes, now.

See http://code.djangoproject.com/changeset/11636 for further info.

Best regards,
André Terra

Revision history for this message
Andre Terra (andreterra) wrote :

IIRC, one change I made was in line 73 of ~/lib/python2.6/site-packages/softwarefabrica.django.utils-1.0dev_BZR_r99_panta_elasticworld.org_20091108103118_d0qlvtj52q236au0-py2.6.egg/softwarefabrica/django/utils/viewshelpers.py

But that's just one of many, I presume.

As a side note and I guess feedback, is there any chance this path could have a shorter name? There's a lot of redundancy to be quite honest.

Changed in sf-django-crud:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Marco Pantaleoni (marco-pantaleoni)
Changed in sf-django-utils:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Marco Pantaleoni (marco-pantaleoni)
Revision history for this message
Marco Pantaleoni (marco-pantaleoni) wrote :

Thanks Andre` for the report.
The bug actually was in sf-django-utils, as you find out with your fix.
Now it *should* work with both Django post- and pre- r11636. Andre`, could you please confirm this with trunk?

Regarding the long name, it bugs me too, but I'm not sure on how to handle this. I believe we need the nested directory structure, since we make use of the package mechanisms from setuptools (so we can provide package integrations with separate eggs, for example). Maybe we could change the package name in setup.py to something shorter (like "sf_django_utils", ...). What's your opinion on this matter?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.