Can you show us your obeject and mapper code?

On Dec 17, 2007 2:54 PM, Paulino <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> I'm having this error in a query
> [[ session.query(Extrato).filter_by(t_bank='IF5',
> t_dtmv='2007/07/27') ]]
>
> If I execute the query in the shell, or webconsole, no error hapens,
> and get the results I expect!
>
> I have turbogears 1.0.4b3 with SQLAlchemy 0.4.1 running in Linux
> (Ubuntu7.10) and acessing a MSSQL database with pymssql.
>
>
>
> File "/home/paulino/Developer/tgears/tg/tg/subctrls/extrato/Ctrl.py",
> line 71, in guardar
>     session.query(Extrato).filter_by(t_bank='IF5',
> t_dtmv='2007/07/27')
>   File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/
> sqlalchemy/orm/scoping.py", line 74, in do
>     return getattr(self.registry(), name)(*args, **kwargs)
>   File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/
> sqlalchemy/orm/session.py", line 654, in query
>     q = self._query_cls(_class_mapper(mapper_or_class,
> entity_name=entity_name), self, **kwargs)
>   File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/
> sqlalchemy/orm/mapper.py", line 1649, in class_mapper
>     raise exceptions.InvalidRequestError("Class '%s' entity name '%s'
> has no mapper associated with it" % (class_.__name__, entity_name))
> InvalidRequestError: Class 'Extrato' entity name 'None' has no mapper
> associated with it
>
>
>
> thanks,
> Paulino
> >
>



-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to