我刚刚添加ppa:ondrej/php到我的 ubuntu 服务器上,它提示我以下消息。
为什么建议我也添加ppa:ondrej/nginx(稳定)?这样做的具体目的是什么?
有关信息我已经从官方文档安装了 Nginx 。
\n$ sudo add-apt-repository ppa:ondrej/php\nNote: PPA publishes dbgsym\n You need to add \'main/debug\' component to install the ddebs,\n but apt update will print warning if the PPA has no ddebs\nRepository: \'deb http://ppa.launchpad.net/ondrej/php/ubuntu/ groovy main\'\nDescription:\nCo-installable PHP versions: PHP 5.6, PHP 7.x and most requested extensions are included. Only Supported Versions of PHP (http://php.net/supported-versions.php) for Supported Ubuntu Releases (https://wiki.ubuntu.com/Releases) are provided. Don\'t ask for end-of-life PHP versions …Run Code Online (Sandbox Code Playgroud) 我在现有的 Node 项目上尝试 Volta 工具。这是非常好的工具:)
但是,我可以使用全局包吗?例如,我运行过:
npm i -g gitmoji-cli
然后,我尝试使用gitmoji,但它在命令行上未定义。我使用的是正确的节点版本,但我不太明白为什么找不到 gitmoji。
你知道我是否需要其他参数吗?
如果有人已经使用过这个工具并安装全局包..:)
我有名为theme_test的基本主题 ,这是模板代码(此模板添加在清单的数据中)。
<template id="product_catg_test" name="Product Category">
<t t-if="categories">
<code for print category>
</t>
</template>
Run Code Online (Sandbox Code Playgroud)
所以我创建了一个名为test_theme_extended的扩展模块,并尝试了两种继承方法来替换t-if条件
<template id="product_catg_test_extended" inherit_id="theme_test.product_catg_test" name="Test">
<xpath expr="//t[@t-if='categories']" position="replace"></xpath>
</template>
Run Code Online (Sandbox Code Playgroud)
第一种方法给了我一个错误
odoo.tools.convert.ParseError:“元素 '' 无法位于父视图中
<t t-extend="theme_test.product_catg_test">
<t t-jquery="t[t-if='categories']" t-operation="replace"/>
</t>
Run Code Online (Sandbox Code Playgroud)
这也行不通。
我认为主视图是从主题创建的,并且没有外部 ID,这就是我面临这个问题的原因。但是如何继承扩展模块中的基本主题视图呢?