小编Sté*_*ein的帖子

在2013年,我需要使用nose1或nose2?鼻子的未来是什么?

我想知道我需要在2013年使用哪种鼻子版本?
我想知道鼻子的未来是什么:nose1还是nose2?

我在nose1 github上看到比nose2 github存储库更多的活动.

几个月来,我总是尝试使用nose2,但我发现我一个人,每个人都在我周围使用nose1.

你对nose2有何评论?

最诚挚的问候,
Stéphane

python testing nose

8
推荐指数
0
解决办法
1108
查看次数

如何在不创建的情况下从目录生成ConfigMap?

如何在不创建的情况下从目录生成ConfigMap?

如果我使用:

$ kubectl create configmap my-config --from-file=configuration/ -o yaml
apiVersion: v1
   data:
...
Run Code Online (Sandbox Code Playgroud)

显示ConfigMap yaml输出,但是my-config在当前Kubernetes项目上下文中创建.

我想只生成ConfigMap文件,有可能吗?有kubectl create"干"模式吗?

最诚挚的问候,
Stéphane

kubernetes

4
推荐指数
1
解决办法
4288
查看次数

如何在Ember.Object中观察Array字段?

我有这个代码(http://jsfiddle.net/stephane_klein/gyHmS/2/):

App = Ember.Application.create({});

App.Item = Ember.Object.extend({
    title: null,
    parent: null
});

App.MyList = Ember.Object.extend({
    title: null,
    content: [],
    changed: function() {
        console.log('here');
    }.observes('content')
});

App.list = App.MyList.create({
    title: "foobar",
    content: [
        App.Item.create({
            item: "item1"
        }),
        App.Item.create({
            item: "item2"
        })
    ]
});
console.log(App.list.content);

App.list.content.pushObject(
    App.Item.create({
        item: "item3"
    })
);
console.log(App.list.content);
Run Code Online (Sandbox Code Playgroud)

为什么"console.log('here')"从未被调用过?

我想在App.Iy中插入App.Item时设置App.Item.parent.我不知道如何观察App.MyList.content字段.

谢谢你的帮助.

最好的问候,Stephane

ember.js

2
推荐指数
1
解决办法
4229
查看次数

标签 统计

ember.js ×1

kubernetes ×1

nose ×1

python ×1

testing ×1