ShuffleBox / django-rcsfield

Automatically exported from code.google.com/p/django-rcsfield
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

syncdb fails with AttributeError for backend.__name__ #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make an app using RcsTextField.
2. Add it to INSTALLED_APPS
3. run syncdb

What is the expected output? What do you see instead?

I wasn't really expecting any output, but I got "AttributeError: 'GitBackend' 
object has no attribute 
'__name__'".

What version of the product are you using? On what operating system?

I'm using the most recent trunk -- looks like r93 with Python 2.6 on Ubuntu 
9.04 Server.

Please provide any additional information below.

The management command is trying to print the backend name, but it isn't 
available where the 
command is looking.  It seems like the intent was to print the name of the 
backend module, so 
I've included a patch doing that.  I added an __str__ to the BaseBackend class, 
but if you didn't 
want to touch the backends it would work just as well to access the module name 
directly in the 
management command.

Original issue reported on code.google.com by jpwa...@gmail.com on 28 Apr 2009 at 10:48

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

thanks for reporting this issue. I think this problem was introduced while I
refactored the backend-loading code in r92.

I've committed a fix in r94 which "works for me". If the error still persists 
for you
please inform me.

Original comment by a...@rcs4u.de on 29 Apr 2009 at 8:00