res helped me through celEntityTemplateParams on IRC, thanks a lot
again. Now when I try to actually use them, things get really
interesting...
What I use them for is simply setting pcproperties property values:
        params = celEntityTemplateParams()
        params.Put("x", str(x))
        params.Put("y", str(x))
        e = CreateEntity(template, name, params)
In the template I set up properties to store those values:
      <propclass name="pctools.properties">
        <property string="$x" name="x"/>
        <property string="$y" name="y"/>
      </propclass>
What I expected to see when using celconsole and print() to inspect
the properties was something like "x: 7". Instead I got:
prop: STRING id=234/tivate ro=0 v=0 (none)
prop: STRING id=241/vate ro=0 v=0 (none)
The values are okay, but the names/id's are... strange.

On Sat, Sep 25, 2010 at 4:46 PM, Sebastian Hoffmann
<null.s.hoffm...@googlemail.com> wrote:
> That *is* how I created that presumably empty parameter block, leading up to:
>
>  File "chessboard.py", line 17, in __init__
>    self.createTile(x,y)
>  File "chessboard.py", line 73, in createTile
>    e = CreateEntity(PhysicalLayer, template, name, params)
>  File "/home/baribal/src/CEL_latest/scripts/blcelc.py", line 465, in
> CreateEntity
>    def CreateEntity(*args): return _blcelc.iCelPlLayer_CreateEntity(*args)
> NotImplementedError: Wrong number of arguments for overloaded function
> 'iCelPlLayer_CreateEntity'.
>  Possible C/C++ prototypes are:
>    CreateEntity(iCelPlLayer *)
>    CreateEntity(iCelPlLayer *,uint)
>    CreateEntity(iCelPlLayer *,char const *,iCelBlLayer *,char const *,...)
>    CreateEntity(iCelPlLayer *,iCelEntityTemplate *,char const
> *,celEntityTemplateParams const &)
>
> On Sat, Sep 25, 2010 at 3:37 PM, res <re...@gmx.ch> wrote:
>> On 25.09.2010 08:57, Sebastian Hoffmann wrote:
>>>     params = celEntityTemplateParams({})
>>
>> What does " ... = celEntityTemplateParams()" (i.e., no params at all) do?
>>
>> -f.r.
>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> Cel-main mailing list
>> Cel-main@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/cel-main
>>
>>
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Cel-main mailing list
Cel-main@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cel-main

Reply via email to