David Larlet is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

david / django-roa http://welldev.org/

Turn your models into remote resources that you can access through Django's ORM. ROA stands for Resource Oriented Architecture.

Clone this repository (size: 579.8 KB): HTTPS / SSH
hg clone https://bitbucket.org/david/django-roa
hg clone ssh://hg@bitbucket.org/david/django-roa

Issues

#6 Tests fail immediately with TypeError

Reported by tmallen

:examples/django_roa_client % python manage.py test
Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    execute_manager(settings)
  File "/opt/local/lib/python2.5/site-packages/django/core/management/__init__.py", line 362, in execute_manager
    utility.execute()
  File "/opt/local/lib/python2.5/site-packages/django/core/management/__init__.py", line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/opt/local/lib/python2.5/site-packages/django/core/management/base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/opt/local/lib/python2.5/site-packages/django/core/management/base.py", line 222, in execute
    output = self.handle(*args, **options)
  File "/opt/local/lib/python2.5/site-packages/django/core/management/commands/test.py", line 23, in handle
    failures = test_runner(test_labels, verbosity=verbosity, interactive=interactive)
  File "/opt/local/lib/python2.5/site-packages/django/test/simple.py", line 181, in run_tests
    for app in get_apps():
  File "/opt/local/lib/python2.5/site-packages/django/db/models/loading.py", line 100, in get_apps
    self._populate()
  File "/opt/local/lib/python2.5/site-packages/django/db/models/loading.py", line 58, in _populate
    self.load_app(app_name, True)
  File "/opt/local/lib/python2.5/site-packages/django/db/models/loading.py", line 74, in load_app
    models = import_module('.models', app_name)
  File "/opt/local/lib/python2.5/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/Users/tallen/Desktop/py/django-roa/django_roa/remoteauth/models.py", line 13, in <module>
    class Permission(Model, DjangoPermission):
  File "/Users/tallen/Desktop/py/django-roa/django_roa/db/models.py", line 60, in __new__
    or (ObjectDoesNotExist,), module))
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/db/models/base.py", line 664, in subclass_exception
    return type(name, (parent,), {'__module__': module})
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Status: wontfix Responsible: nobody Type: bug Priority: major
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 David Larlet

    written

    • Changed status from new to open.

    Hello,

    Which version of Django do you use?

  2. #2 tmallen

    written

    I am using Django 1.1.1.

  3. #3 David Larlet

    written

    • Changed status from open to wontfix.

    The issue probably comes from the definition of ModelBase which evolves in Django 1.2 vs. 1.1.1 and I didn't worry on backward compatibility because it's easier to maintain (#lazyme), you can choose to get a previous version of the lib or apply a patch.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?