gpt4 book ai didi

python-2.7 - 扩建还是不扩建?

转载 作者:行者123 更新时间:2023-12-02 21:54:16 25 4
gpt4 key购买 nike

我有一个问题,当我使用 zopeskel 创建附加组件时,它在我网站上的附加组件中看不到。与 zopepy 类似 - 无法导入包。这是我的 buildout.cfg:

[buildout] 
extends =
http://dist.plone.org/release/4.1/versions.cfg
parts =
instance
zopeskel
zopepy


eggs-directory=../buildout-cache/eggs
download-cache=../buildout-cache/downloads

develop =
src/*

[instance]
recipe = plone.recipe.zope2instance
user = admin:admin
eggs = Plone

[zopeskel]
recipe = zc.recipe.egg
eggs =
ZopeSkel
zopeskel.diazotheme
zopeskel.dexterity
Plone

[zopepy]
recipe = zc.recipe.egg
eggs = Plone
interpreter = zopepy
scripts = zopepy


[versions]
Cheetah = 2.2.1
ZopeSkel = 2.21.2
zopeskel.dexterity = 1.5.2
zopeskel.diazotheme = 1.1

我正在使用 plone3_theme 模板。对 setup.py 进行一些更改。然后我创建一个目录 src 并将包移到其中。

./bin/buildout 
Develop: '/home/demonoid67/iPlone4/zinstance/src/collective.plonelearning'
Updating instance.
Updating zopeskel.
Updating zopepy.
./bin/instance fg
2013-08-03 14:35:07 INFO ZServer HTTP server started at Sat Aug 3 14:35:07 2013
Hostname: 0.0.0.0
Port: 8080
2013-08-03 14:35:09 WARNING ZODB.blob (7081) Blob dir /home/demonoid67/iPlone4/zinstance/var/blobstorage/ has insecure mode setting
2013-08-03 14:35:17 INFO Zope Ready to handle requests

有人可以帮助我吗?这是我的 buildout.cfg 的问题还是附加组件的配置问题?

最佳答案

您没有将鸡蛋添加到鸡蛋部分:

[instance] 
recipe = plone.recipe.zope2instance
user = admin:admin
eggs =
Plone
collective.plonelearning

如果没有该条目,实例将永远不会看到鸡蛋。

关于python-2.7 - 扩建还是不扩建?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18032779/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com