Hi, the name string is just bad for such "object". In fact we need a "rawobject" property that will just do not touch it, just put as default. String was used because we just do not touch them in the configuration part, that's all. So we can add a new property class, rawobject or something like it, for such object we do not want to "Pythonize".
Jean On Mon, Feb 28, 2011 at 10:06 PM, Hartmut Goebel <h.goe...@goebel-consult.de > wrote: > Hi, > > when looking at the source, there are a lot of StringsProps like this: > > shinken/objects/host.py: 'act_depend_of': > StringProp(default=[]), > > As the name says, "StringProp" is meant to hold strings. Why is the > default an empty list then? Can somebody please explain this to me? > > -- > Schönen Gruß - Regards > Hartmut Goebel > Dipl.-Informatiker (univ.), CISSP, CSSLP > > Goebel Consult > Spezialist für IT-Sicherheit in komplexen Umgebungen > http://www.goebel-consult.de > > Monatliche Kolumne: http://www.cissp-gefluester.de/ > Goebel Consult mit Mitglied bei http://www.7-it.de > > > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Shinken-devel mailing list > Shinken-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/shinken-devel > >
------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________ Shinken-devel mailing list Shinken-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shinken-devel