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

#10 IndexError: list index out of range

Reported by switchtower

Not sure if this is a bug or not, but I can't use the examples or run some of the code from the models from inside ipython.

The system is a Ubuntu 10.04 KVM child with python 2.6 and Django 1.3.

Thanks for all the hard work! :)

In [48]: class RemotePageWithBooleanFields(Model):
    boolean_field = models.BooleanField()
    null_boolean_field = models.NullBooleanField()
   ....:     
   ....:     
---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)

/var/www/testapps/<ipython console> in <module>()

/usr/local/lib/python2.6/dist-packages/django/db/models/base.pyc in __new__(cls, name, bases, attrs)
     50             # For 'django.contrib.sites.models', this would be 'sites'.

     51             model_module = sys.modules[new_class.__module__]
---> 52             kwargs = {"app_label": model_module.__name__.split('.')[-2]}
     53         else:
     54             kwargs = {}

IndexError: list index out of range
Status: invalid 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 switchtower

    written

    • Changed status from new to invalid.

Add comment / attachment

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

captcha

Is that you, Humanoid? Is this me?