Here is a possible fix.
The problem is when you have tags like <crossChat/>, in
xmlconfig.importFile getattr(config,tag) is 0 and
type(getattr(config,tag) is int and not bool and that's why we are
running into the problem.
So when checking for <crossChat/> type types, change
From
if(type(getattr(config, tag)) != bool):
To
if((getattr(config, tag))):
And it will work.
Daniel C
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Daniel
Henninger
Sent: Thursday, March 10, 2005 3:54 PM
To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
Subject: RE: [py-transports] Adding new tags to config.xml
It'll probably be an easy fix. I just don't have time to fix it right
this second. Probably tonight. Stay tuned.
Daniel
--
"The most addictive drug in the world is music."
- The Lost Boyz
> Looks like the default values for boolean are being treated as
strings.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
> Henninger
> Sent: Thursday, March 10, 2005 3:32 PM
> To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
> Subject: RE: [py-transports] Adding new tags to config.xml
>
> Yeah, looks like I'll have to fix the xmlconfig stuff. Joy
>
> Daniel
>
> --
> "The most addictive drug in the world is music."
> - The Lost Boyz
>
>> After adding the default value to config.py, now I get the same
>> behaviour as crossChat tag.
>> Error message complaining that tag is not boolean.
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of
> Chandran,
>> Daniel
>> Sent: Thursday, March 10, 2005 3:13 PM
>> To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
>> Subject: RE: [py-transports] Adding new tags to config.xml
>>
>> I was going to do that, but saw comment on the top of config.py,
> saying
>> not to edit the file.
>>
>> Thanks I"ll follow your suggestion, and test.
>>
>> Daniel C
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
>> Henninger
>> Sent: Thursday, March 10, 2005 3:11 PM
>> To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
>> Subject: Re: [py-transports] Adding new tags to config.xml
>>
>> Well, first thing first, you must put the variable in src/config.py
> (to
>> basically, 'create' the config option and give it a default)
>>
>> I'm not entirely sure why the crossChat type variable is being a
pain.
>> Sigh.
>>
>> Daniel
>>
>> --
>> "The most addictive drug in the world is music."
>> - The Lost Boyz
>>
>>>
>>> Did anything change in how config is managed? When I add a new tag
> to
>>> config.xml, the
>>> xmlconfig.importFile seems to always ignore the new tag as in:
>>>
>>> 03/10/05 - 14:32:44 - Ignoring configuration option sendSSI
>>>
>>>
>>> Also I tried uncommenting <crossChat/>, the transport exited with
an
>>> excetion
>>> message:
>>>
>>> Tag crossChat in your configuration file should be a boolean (ie, no
>>> cdata).
>>> Exiting...
>>>
>>> Thanks,
>>> Daniel Chandran
>>>
>>>
>>> IMPORTANT: The information contained in this email and/or its
>> attachments
>>> is confidential. If you are not the intended recipient, please
notify
>> the
>>> sender immediately by reply and immediately delete this message and
>> all
>>> its attachments. Any review, use, reproduction, disclosure or
>>> dissemination of this message or any attachment by an unintended
>> recipient
>>> is strictly prohibited. Neither this message nor any attachment is
>>> intended as or should be construed as an offer, solicitation or
>>> recommendation to buy or sell any security or other financial
>> instrument.
>>> Neither the sender, his or her employer nor any of their respective
>>> affiliates makes any warranties as to the completeness or accuracy
of
>> any
>>> of the information contained herein or that this message or any of
> its
>>> attachments is free of viruses.
>>> _______________________________________________
>>> py-transports mailing list
>>> [email protected]
>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>>
>>
>>
>> _______________________________________________
>> py-transports mailing list
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>>
>> IMPORTANT: The information contained in this email and/or its
>> attachments is confidential. If you are not the intended recipient,
>> please notify the sender immediately by reply and immediately delete
>> this message and all its attachments. Any review, use, reproduction,
>> disclosure or dissemination of this message or any attachment by an
>> unintended recipient is strictly prohibited. Neither this message
nor
>> any attachment is intended as or should be construed as an offer,
>> solicitation or recommendation to buy or sell any security or other
>> financial instrument. Neither the sender, his or her employer nor
any
>> of their respective affiliates makes any warranties as to the
>> completeness or accuracy of any of the information contained herein
or
>> that this message or any of its attachments is free of viruses.
>> _______________________________________________
>> py-transports mailing list
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>>
>> IMPORTANT: The information contained in this email and/or its
> attachments
>> is confidential. If you are not the intended recipient, please notify
> the
>> sender immediately by reply and immediately delete this message and
> all
>> its attachments. Any review, use, reproduction, disclosure or
>> dissemination of this message or any attachment by an unintended
> recipient
>> is strictly prohibited. Neither this message nor any attachment is
>> intended as or should be construed as an offer, solicitation or
>> recommendation to buy or sell any security or other financial
> instrument.
>> Neither the sender, his or her employer nor any of their respective
>> affiliates makes any warranties as to the completeness or accuracy of
> any
>> of the information contained herein or that this message or any of
its
>> attachments is free of viruses.
>> _______________________________________________
>> py-transports mailing list
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
>
> IMPORTANT: The information contained in this email and/or its
attachments
> is confidential. If you are not the intended recipient, please notify
the
> sender immediately by reply and immediately delete this message and
all
> its attachments. Any review, use, reproduction, disclosure or
> dissemination of this message or any attachment by an unintended
recipient
> is strictly prohibited. Neither this message nor any attachment is
> intended as or should be construed as an offer, solicitation or
> recommendation to buy or sell any security or other financial
instrument.
> Neither the sender, his or her employer nor any of their respective
> affiliates makes any warranties as to the completeness or accuracy of
any
> of the information contained herein or that this message or any of its
> attachments is free of viruses.
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
_______________________________________________
py-transports mailing list
[email protected]
http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
IMPORTANT: The information contained in this email and/or its attachments is
confidential. If you are not the intended recipient, please notify the sender
immediately by reply and immediately delete this message and all its
attachments. Any review, use, reproduction, disclosure or dissemination of
this message or any attachment by an unintended recipient is strictly
prohibited. Neither this message nor any attachment is intended as or should
be construed as an offer, solicitation or recommendation to buy or sell any
security or other financial instrument. Neither the sender, his or her
employer nor any of their respective affiliates makes any warranties as to the
completeness or accuracy of any of the information contained herein or that
this message or any of its attachments is free of viruses.
From [EMAIL PROTECTED] Thu Mar 10 23:42:08 2005
From: [EMAIL PROTECTED] (ilya)
Date: Thu Mar 10 23:42:12 2005
Subject: [py-transports] localizing PyICQ
Message-ID: <[EMAIL PROTECTED]>
Hi,
Did anybody managed PyICQ with local charsets? For example, CP1251...
You see, it is impossible not to talk in native lang!-(
Yours, Ilya.
From [EMAIL PROTECTED] Thu Mar 10 23:42:32 2005
From: [EMAIL PROTECTED] (Daniel Henninger)
Date: Thu Mar 10 23:42:34 2005
Subject: [py-transports] Adding new tags to config.xml
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
That's dodging the point of the checks though. ;D
I'll get a fix in in a moment. No worries.
Daniel
--
"The most addictive drug in the world is music."
- The Lost Boyz
> Here is a possible fix.
>
> The problem is when you have tags like <crossChat/>, in
> xmlconfig.importFile getattr(config,tag) is 0 and
> type(getattr(config,tag) is int and not bool and that's why we are
> running into the problem.
>
> So when checking for <crossChat/> type types, change
> From
> if(type(getattr(config, tag)) != bool):
> To
> if((getattr(config, tag))):
>
> And it will work.
>
> Daniel C
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
> Henninger
> Sent: Thursday, March 10, 2005 3:54 PM
> To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
> Subject: RE: [py-transports] Adding new tags to config.xml
>
> It'll probably be an easy fix. I just don't have time to fix it right
> this second. Probably tonight. Stay tuned.
>
> Daniel
>
> --
> "The most addictive drug in the world is music."
> - The Lost Boyz
>
>> Looks like the default values for boolean are being treated as
> strings.
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
>> Henninger
>> Sent: Thursday, March 10, 2005 3:32 PM
>> To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
>> Subject: RE: [py-transports] Adding new tags to config.xml
>>
>> Yeah, looks like I'll have to fix the xmlconfig stuff. Joy
>>
>> Daniel
>>
>> --
>> "The most addictive drug in the world is music."
>> - The Lost Boyz
>>
>>> After adding the default value to config.py, now I get the same
>>> behaviour as crossChat tag.
>>> Error message complaining that tag is not boolean.
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of
>> Chandran,
>>> Daniel
>>> Sent: Thursday, March 10, 2005 3:13 PM
>>> To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
>>> Subject: RE: [py-transports] Adding new tags to config.xml
>>>
>>> I was going to do that, but saw comment on the top of config.py,
>> saying
>>> not to edit the file.
>>>
>>> Thanks I"ll follow your suggestion, and test.
>>>
>>> Daniel C
>>>
>>> -----Original Message-----
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel
>>> Henninger
>>> Sent: Thursday, March 10, 2005 3:11 PM
>>> To: PyAIM-t/PyICQ-t/PyMSN-t Discussion
>>> Subject: Re: [py-transports] Adding new tags to config.xml
>>>
>>> Well, first thing first, you must put the variable in src/config.py
>> (to
>>> basically, 'create' the config option and give it a default)
>>>
>>> I'm not entirely sure why the crossChat type variable is being a
> pain.
>>> Sigh.
>>>
>>> Daniel
>>>
>>> --
>>> "The most addictive drug in the world is music."
>>> - The Lost Boyz
>>>
>>>>
>>>> Did anything change in how config is managed? When I add a new tag
>> to
>>>> config.xml, the
>>>> xmlconfig.importFile seems to always ignore the new tag as in:
>>>>
>>>> 03/10/05 - 14:32:44 - Ignoring configuration option sendSSI
>>>>
>>>>
>>>> Also I tried uncommenting <crossChat/>, the transport exited with
> an
>>>> excetion
>>>> message:
>>>>
>>>> Tag crossChat in your configuration file should be a boolean (ie, no
>>>> cdata).
>>>> Exiting...
>>>>
>>>> Thanks,
>>>> Daniel Chandran
>>>>
>>>>
>>>> IMPORTANT: The information contained in this email and/or its
>>> attachments
>>>> is confidential. If you are not the intended recipient, please
> notify
>>> the
>>>> sender immediately by reply and immediately delete this message and
>>> all
>>>> its attachments. Any review, use, reproduction, disclosure or
>>>> dissemination of this message or any attachment by an unintended
>>> recipient
>>>> is strictly prohibited. Neither this message nor any attachment is
>>>> intended as or should be construed as an offer, solicitation or
>>>> recommendation to buy or sell any security or other financial
>>> instrument.
>>>> Neither the sender, his or her employer nor any of their respective
>>>> affiliates makes any warranties as to the completeness or accuracy
> of
>>> any
>>>> of the information contained herein or that this message or any of
>> its
>>>> attachments is free of viruses.
>>>> _______________________________________________
>>>> py-transports mailing list
>>>> [email protected]
>>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>>>
>>>
>>>
>>> _______________________________________________
>>> py-transports mailing list
>>> [email protected]
>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>>
>>>
>>> IMPORTANT: The information contained in this email and/or its
>>> attachments is confidential. If you are not the intended recipient,
>>> please notify the sender immediately by reply and immediately delete
>>> this message and all its attachments. Any review, use, reproduction,
>>> disclosure or dissemination of this message or any attachment by an
>>> unintended recipient is strictly prohibited. Neither this message
> nor
>>> any attachment is intended as or should be construed as an offer,
>>> solicitation or recommendation to buy or sell any security or other
>>> financial instrument. Neither the sender, his or her employer nor
> any
>>> of their respective affiliates makes any warranties as to the
>>> completeness or accuracy of any of the information contained herein
> or
>>> that this message or any of its attachments is free of viruses.
>>> _______________________________________________
>>> py-transports mailing list
>>> [email protected]
>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>>
>>>
>>> IMPORTANT: The information contained in this email and/or its
>> attachments
>>> is confidential. If you are not the intended recipient, please notify
>> the
>>> sender immediately by reply and immediately delete this message and
>> all
>>> its attachments. Any review, use, reproduction, disclosure or
>>> dissemination of this message or any attachment by an unintended
>> recipient
>>> is strictly prohibited. Neither this message nor any attachment is
>>> intended as or should be construed as an offer, solicitation or
>>> recommendation to buy or sell any security or other financial
>> instrument.
>>> Neither the sender, his or her employer nor any of their respective
>>> affiliates makes any warranties as to the completeness or accuracy of
>> any
>>> of the information contained herein or that this message or any of
> its
>>> attachments is free of viruses.
>>> _______________________________________________
>>> py-transports mailing list
>>> [email protected]
>>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>>
>>
>>
>> _______________________________________________
>> py-transports mailing list
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>>
>> IMPORTANT: The information contained in this email and/or its
> attachments
>> is confidential. If you are not the intended recipient, please notify
> the
>> sender immediately by reply and immediately delete this message and
> all
>> its attachments. Any review, use, reproduction, disclosure or
>> dissemination of this message or any attachment by an unintended
> recipient
>> is strictly prohibited. Neither this message nor any attachment is
>> intended as or should be construed as an offer, solicitation or
>> recommendation to buy or sell any security or other financial
> instrument.
>> Neither the sender, his or her employer nor any of their respective
>> affiliates makes any warranties as to the completeness or accuracy of
> any
>> of the information contained herein or that this message or any of its
>> attachments is free of viruses.
>> _______________________________________________
>> py-transports mailing list
>> [email protected]
>> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>>
>
>
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>
>
> IMPORTANT: The information contained in this email and/or its attachments
> is confidential. If you are not the intended recipient, please notify the
> sender immediately by reply and immediately delete this message and all
> its attachments. Any review, use, reproduction, disclosure or
> dissemination of this message or any attachment by an unintended recipient
> is strictly prohibited. Neither this message nor any attachment is
> intended as or should be construed as an offer, solicitation or
> recommendation to buy or sell any security or other financial instrument.
> Neither the sender, his or her employer nor any of their respective
> affiliates makes any warranties as to the completeness or accuracy of any
> of the information contained herein or that this message or any of its
> attachments is free of viruses.
> _______________________________________________
> py-transports mailing list
> [email protected]
> http://www.modevia.com/cgi-bin/mailman/listinfo/py-transports
>