Update: It crashes when i try to print it from SetEntity(). From
__init__() or anywhere else it doesn't crash but still prints None.

2008/7/15 Piotr Podgórski <[EMAIL PROTECTED]>:
> Well i would probably be crazy if i wanted to SET but i want to GET
> ;). And for that I've tried self.GetTag() but it didn't work. Trying
> to print it crashes my propclass, while saying None anyway...
>
> 2008/7/15 Amir Taaki <[EMAIL PROTECTED]>:
>> Not sure why you'd want to do this... crazy!
>>
>> But you can do
>>
>> csRef<iCelPropertyClass> pcthis = scfQueryInterface<iCelPropertyClass>
>> (this);
>> pcthis->SetTag (blaa);
>>
>> So in python self.SetTag(blaa) should do.
>>
>> On Tue, Jul 15, 2008 at 6:59 PM, Piotr Podgórski <[EMAIL PROTECTED]>
>> wrote:
>>>
>>> Hi,
>>>
>>> A short question: How can i get a tag assigned to my Python Property
>>> Class from the inside of that Property Class?
>>>
>>> Don't know if that matters but i use CEL 1.4 and set the tag in XML
>>> map file using <propclass name="mypc" tag="mytag"/>. Also, i'd like to
>>> be able to get that tag from the inside of the PC's __init__() or
>>> SetEntity() functions.
>>>
>>> Thanx in advance,
>>>
>>> Peter "Coppertop" Podgorski
>>>
>>> -------------------------------------------------------------------------
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>>> challenge
>>> Build the coolest Linux based applications with Moblin SDK & win great
>>> prizes
>>> Grand prize is a trip for two to an Open Source event anywhere in the
>>> world
>>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>>> _______________________________________________
>>> Cel-main mailing list
>>> Cel-main@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/cel-main
>>
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Cel-main mailing list
>> Cel-main@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cel-main
>>
>>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to