j2labs / listsurf

Simple website implemented in Brubeck
62 stars 11 forks source link

Does not work with brubeck 0.3.8 and dictshield 0.4.1 #2

Closed sausaw closed 12 years ago

sausaw commented 12 years ago

Traceback (most recent call last): File "listsurf.py", line 9, in from handlers import (AccountLoginHandler, File "/home/saur/redjohn/listsurf/handlers.py", line 12, in from models import ListItem File "/home/saur/redjohn/listsurf/models.py", line 19, in class UserProfile(Document): File "/home/saur/.virtualenvs/redjohn/lib/python2.7/site-packages/dictshield/document.py", line 606, in wrap klass = _swap_field(klass, id_field, field_list) File "/home/saur/.virtualenvs/redjohn/lib/python2.7/site-packages/dictshield/document.py", line 577, in _swap_field if f is klass._meta['id_field']: AttributeError: type object 'UserProfile' has no attribute '_meta' Exception KeyError: KeyError(139645144617344,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

yolk -l Cython - 0.15.1 - active Jinja2 - 2.6 - active Python - 2.7.2 - active development (/usr/lib/python2.7/lib-dynload) brubeck - 0.3.8 - active dictshield - 0.4.1 - active gevent-zeromq - 0.2.2 - active gevent - 0.13.6 - active greenlet - 0.3.4 - active pip - 1.1 - active py-bcrypt - 0.2 - active pymongo - 2.1.1 - active python-dateutil - 2.1 - active pyzmq - 2.1.11 - active setuptools - 0.6c11 - active six - 1.1.0 - active ujson - 1.18 - active wsgiref - 0.1.2 - active development (/usr/lib/python2.7) yolk - 0.4.3 - active

j2labs commented 12 years ago

Thanks for pointing this out. I will have a fix for you soon.

This code is not using DictShield's new metaclass system and needs an update.

On Mar 29, 2012, at 7:31 AM, sausaw reply@reply.github.com wrote:

Traceback (most recent call last): File "listsurf.py", line 9, in from handlers import (AccountLoginHandler, File "/home/saur/redjohn/listsurf/handlers.py", line 12, in from models import ListItem File "/home/saur/redjohn/listsurf/models.py", line 19, in class UserProfile(Document): File "/home/saur/.virtualenvs/redjohn/lib/python2.7/site-packages/dictshield/document.py", line 606, in wrap klass = _swap_field(klass, id_field, field_list) File "/home/saur/.virtualenvs/redjohn/lib/python2.7/site-packages/dictshield/document.py", line 577, in _swap_field if f is klass._meta['id_field']: AttributeError: type object 'UserProfile' has no attribute '_meta' Exception KeyError: KeyError(139645144617344,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

yolk -l Cython - 0.15.1 - active Jinja2 - 2.6 - active Python - 2.7.2 - active development (/usr/lib/python2.7/lib-dynload) brubeck - 0.3.8 - active dictshield - 0.4.1 - active gevent-zeromq - 0.2.2 - active gevent - 0.13.6 - active greenlet - 0.3.4 - active pip - 1.1 - active py-bcrypt - 0.2 - active pymongo - 2.1.1 - active python-dateutil - 2.1 - active pyzmq - 2.1.11 - active setuptools - 0.6c11 - active six - 1.1.0 - active ujson - 1.18 - active wsgiref - 0.1.2 - active development (/usr/lib/python2.7) yolk - 0.4.3 - active


Reply to this email directly or view it on GitHub: https://github.com/j2labs/listsurf/issues/2

j2labs commented 12 years ago

Hello. I have fixed the issue in this commit: https://github.com/j2labs/listsurf/commit/498c55c5dcae0dd277ef8c04896f89b4429e4ec1

I will close the issue, but feel free to reopen if the fix doesn't work for you.

sausaw commented 12 years ago

I did exactly what you did while I was trying to fix it. Also did you happen to run the whole app? I get a 404 after loggin in.

j2labs commented 12 years ago

Oh I will check that out.

On Mar 31, 2012, at 2:04 AM, sausaw reply@reply.github.com wrote:

I did exactly what you did while I was trying to fix it. Also did you happen to run the whole app? I get a 404 after loggin in.


Reply to this email directly or view it on GitHub: https://github.com/j2labs/listsurf/issues/2#issuecomment-4856256

j2labs commented 12 years ago

I tested it and see the issue.

I don't have a solution yet.

On Mar 31, 2012, at 2:04 AM, sausaw reply@reply.github.com wrote:

I did exactly what you did while I was trying to fix it. Also did you happen to run the whole app? I get a 404 after loggin in.


Reply to this email directly or view it on GitHub: https://github.com/j2labs/listsurf/issues/2#issuecomment-4856256

j2labs commented 12 years ago

I found a solution. I am going to check in code soon.

j2labs commented 12 years ago

OK. Fetch latest and everything should work now. Update DictShield to 0.4.2 too.

sausaw commented 12 years ago

Thanks! It works now.

j2labs commented 12 years ago

Great!

On Apr 3, 2012, at 2:32 AM, sausaw reply@reply.github.com wrote:

Thanks! It works now.


Reply to this email directly or view it on GitHub: https://github.com/j2labs/listsurf/issues/2#issuecomment-4895353