'__proxy__' object has no attribute '_proxy____unicode_cast': in save shop tab

38 views
Skip to first unread message

Pedro Serrano

unread,
Jan 24, 2015, 2:53:21 PM1/24/15
to djang...@googlegroups.com
Hi, 
I'm deploying my first LFS shop. I've isntalled LFS successfully and migrate comand ran well. 
When i try to save the manage shop form, the server give me a 500 error. 
Debuging i've saw that the problem is in the line 134, in data_tab function:

result = json.dumps({
->      "html": [["#data", data_tab(request, shop, form)]],
        "message": message,
    }, cls=LazyEncoder)

The exception says: *** AttributeError: '__proxy__' object has no attribute '_proxy____unicode_cast'

Any idea about this?

Noe Nieto

unread,
Jan 26, 2015, 10:23:05 AM1/26/15
to djang...@googlegroups.com
Hi. What version of LFS are you running?

--
Noe

--
You received this message because you are subscribed to the Google Groups "django-lfs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-lfs+...@googlegroups.com.
To post to this group, send email to djang...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-lfs.
For more options, visit https://groups.google.com/d/optout.



--
---
Noe Nieto
NNieto Consulting Services
M: nni...@noenieto.com
W: http://noenieto.com
T:  @tzicatl
Li: Perfil en LinkedIn

Pedro Serrano

unread,
Jan 26, 2015, 1:03:38 PM1/26/15
to djang...@googlegroups.com
I'm using LFS 0.9.0a1 with lfs-installer. 

Pedro Serrano

unread,
Jan 26, 2015, 2:57:33 PM1/26/15
to djang...@googlegroups.com
SOLVED:

On  lfs/core/widgets/image.py  in line 20, I've replaced:

 trans._proxy__unicode_cast() 

for: 
 
 unicode(trans) 

and this solve it. 

Is the first time that I see the proxy unicode cast method. With explicit cast: unicode(trans) run fine. 

El sábado, 24 de enero de 2015, 20:53:21 (UTC+1), Pedro Serrano escribió:
Reply all
Reply to author
Forward
0 new messages