I'm developing a system to control the domains and their services in a server.
The structure is quite simple. I have a base class, called "Habilitavel", which is responsible for keeping log information about service instalation and enable. Than I have a derived class "Servico" which is the base class for all domain services and each service is derived from it.
Everything was going fine until the 15th service. Now, for some strange reason, if I add another service, the following code stops to work:
email = ServicoEnderecoEmail.select(AND(
Servico.q.dominioID == self.dominio.id,
ServicoEnderecoEmail.q.username == 'jose'
))[0]
Before adding the 16th service, the following code produces the query:
SELECT habilitavel.id, habilitavel.instalado, habilitavel.habilitado, habilitavel.data_criacao, habilitavel.child_name FROM servico_endereco_email, habilitavel, servico WHERE (((((( servico.dominio_id) = (1)) AND ((servico_endereco_email.username) = ('jose'))) AND ((servico.child_name) = ('ServicoEnderecoEmail'))) AND ((servico_endereco_email.id) = (servico.id))) AND ((servico_endereco_email.id) = ( servico.id))) LIMIT 1
instead of the following, produced before adding the service:
SELECT habilitavel.id, habilitavel.instalado, habilitavel.habilitado , habilitavel.data_criacao, habilitavel.child_name FROM servico_endereco_email, habilitavel, servico WHERE ((((((((servico.dominio_id) = (1)) AND ((servico_endereco_email.username) = ('jose'))) AND ((servico.child_name) = ('ServicoEnderecoEmail'))) AND ((servico_endereco_email.id) = ( servico.id))) AND ((servico.id) = (habilitavel.id))) AND ((servico_endereco_email.id) = (servico.id ))) AND ((servico.id) = (habilitavel.id))) LIMIT 1
Note that after importing the service in the main calling code, the query changes, stopping at the "Servico" inheritance part, not joining Servico and Habilitavel. Nothing else besides importing trigger this error.
I experimented a little and it seems that the problem is to include the inheritance. The code added is the following:
from csi.entidades.servico import *
class ServicoEGW(Servico):
"""Just this triggers the error"""
If I change to:
from csi.entidades.servico import *
class ServicoEGW:
"""This doesn't trigger the error"""
It`s a very wied problem. Could someone help me?
Thanks in advance,
--
Raphael Derosso Pereira
Engenheiro da Computação
icq: 4517421
msn: [EMAIL PROTECTED]
Phone: +55 41 3024-7430
Cel: +55 41 9661-4442
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ sqlobject-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
