On Oct 19, 6:35 pm, "Jason S." <[email protected]> wrote:
> I ran into this too. I think it's the same issue. 
> See:http://pylonshq.com/project/pylonshq/ticket/620
>
> On Oct 19, 4:24 pm, Mariano Mara <[email protected]> wrote:
>
> > I'm building a data warehouse front end with pylons and for this, I
> > found very useful SqlAlchemy's reflection feature. I place all the
> > mappers in reports/models/__init__.py following the stub I found right
> > there when I started the project. I played a little bit with paster
> > shell and so far it's working great. The thing is that I quickly
> > decided to start building my tests before my model gets bigger and
> > when I try to run it (I didin't even added a proper test) I hit the
> > following error:
>
> > ArgumentError: Class '<class 'repotrs.model.User'>' already has a
> > primary mapper defined. Use non_primary=True to create a non primary
> > Mapper.  clear_mappers() will remove *all* current mappers from all
> > classes.

Thanks Jason, it seems that made the trick (I have a new error now but
look like my fault now)

Mariano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to