Yes, exactly:
{
   "name": "...",
   "jobs": {
      "common" : {
          "settings": {
            "your.setting": "abc"
         }
      }
   }
}
qx.core.Setting.get("your.setting");

You'll have to generate your source again (generate.py source).

On Thu, Sep 30, 2010 at 3:26 PM, b a <[email protected]> wrote:

> "app_name": {
>
> ....
>
> "jobs": {
>    "common": {
>       "settings" : {
>               <stuff I need?>
>        }
>    }
> }
>
>
> }
>
> On 9/30/10, b a <[email protected]> wrote:
> > so how does my config.json need to look ?
> >
> > On 9/30/10, Guilherme Aiolfi <[email protected]> wrote:
> >> Are you sure that you are calling "this.base(arguments); " in your main
> >> method?
> >>
> >> And your keys should be inside the "jobs > common > settings" entry in
> >> your
> >> config.json.
> >>
> >> On Thu, Sep 30, 2010 at 2:14 PM, b a <[email protected]> wrote:
> >>
> >>> so is there any way for me to get at runtime things from config.json ?
> >>>
> >>> On 9/30/10, b a <[email protected]> wrote:
> >>> > actually now I put some alerts and realized that even in the code
> >>> sections
> >>> > that
> >>> > I thought I was getting config values from qx.core.Setting , I
> wasn't.
> >>> > I am getting undefined on
> >>> > qx.core.Setting.get("some_key_that_exists_in_config.json");
> >>> > and getting undefined on
> >>> > qx.core.Setting.some_key_that_exists_in_config.json
> >>> > ...
> >>> >
> >>> >
> >>> > On 9/30/10, b a <[email protected]> wrote:
> >>> >> Hi,
> >>> >>
> >>> >> I have a native Qooxdoo app which I wrote and I noticed that in main
> >>> >> {}
> >>> >> I don't have access to qx.core.Setting(which from what I've seen
> >>> >> exposes the contents of config.json).
> >>> >>
> >>> >> I need to have access to qx.core.Setting, so I want to move part of
> >>> >> my
> >>> >> code from main {} to some listener on some event exactly after main
> >>> >> {}
> >>> >> is run.
> >>> >>
> >>> >> What event should I listen to ?
> >>> >> Is there any other way I can get the qx.coreSetting in main {} ?
> >>> >>
> >>> >> Any suggestions are welcome
> >>> >>
> >>> >> Thanks
> >>> >>
> >>> >
> >>>
> >>>
> >>>
> ------------------------------------------------------------------------------
> >>> 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
> >>> _______________________________________________
> >>> qooxdoo-devel mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >>>
> >>
> >
>
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
------------------------------------------------------------------------------
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
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to