|
Dan Korostelev
|
Well, my patch will be just removing includeDependencies and z3c.autoinclude at all. :)
I think, it's an application (say "site") duty to include configuration it needs, not component's one. So, for example "z3ext.formatter" shouldn't autoinclude the "zope.app.pagetemplate" ZCML, but an application that use it (z3ext.portal, for example) should do it.
For those, who really like autoincludes, could use <includeDependencies package="z3ext.formatter" /> in their application. Or even it would be nice to have recursive autoincluder in the "z3c.autoinclude" package itself.
I'd gladly remove z3c.autoinclude from several packages, like already mentioned z3ext.formatter and z3ext.ownership. If you want - I can do it in Zope's SVN. And even make a PyPI release, if you give me rights (my pypi username is "nadako").
You can give me SF.net access, but I don't think I'll make much contribution, as I don't really use most of z3ext packages yet. My username there is "dankor".
|
|
Cykooz
|
Уже не первый раз пытаюсь установить z3ext, но так ни разу и не получилось. Думал может на этот раз получится, но стало ещё хуже. Если раньше buildout сначала загружал много пакетов и потом вываливалась ошибка (не помню какая), то теперь ошибка в самом же начале: ----------------------------- cykooz@cykooz-pc:~/Work/z3ext/z3extnet$ ./bin/buildout Creating directory '/home/cykooz/Work/z3ext/z3extnet/eggs'. Getting distribution for 'setuptools==0.6c8'. Got setuptools 0.6c8. Upgraded: setuptools version 0.6c8; restarting. Generated script '/home/cykooz/Work/z3ext/z3extnet/bin/buildout'. Develop: '/home/cykooz/Work/z3ext/z3extnet/.' Traceback (most recent call last): File "/tmp/tmpqKdI1P", line 11, in <module> execfile('/home/cykooz/Work/z3ext/z3extnet/./setup.py') File "/home/cykooz/Work/z3ext/z3extnet/./setup.py", line 61, in <module> zip_safe = False File "/usr/lib/python2.5/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands self.run_command(cmd) File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/develop.py", line 27, in run File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/develop.py", line 85, in install_for_development File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command self.distribution.run_command(command) File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command cmd_obj.run() File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/egg_info.py", line 171, in run File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/egg_info.py", line 252, in find_sources File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/egg_info.py", line 306, in run File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/egg_info.py", line 333, in add_defaults File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/sdist.py", line 45, in walk_revctrl File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/sdist.py", line 52, in _default_revctrl File "/home/cykooz/Work/z3ext/z3extnet/eggs/setuptools-0.6c8-py2.5.egg/setuptools/command/sdist.py", line 98, in entries_finder NameError: global name 'log' is not defined While: Installing. Processing develop directory '/home/cykooz/Work/z3ext/z3extnet/.'.
An internal error occured due to a bug in either zc.buildout or in a recipe being used: Traceback (most recent call last): File "/home/cykooz/Work/z3ext/lib/python2.5/site-packages/zc.buildout-1.1.1-py2.5.egg/zc/buildout/buildout.py", line 1477, in main getattr(buildout, command)(args) File "/home/cykooz/Work/z3ext/lib/python2.5/site-packages/zc.buildout-1.1.1-py2.5.egg/zc/buildout/buildout.py", line 324, in install installed_develop_eggs = self._develop() File "/home/cykooz/Work/z3ext/lib/python2.5/site-packages/zc.buildout-1.1.1-py2.5.egg/zc/buildout/buildout.py", line 556, in _develop zc.buildout.easy_install.develop(setup, dest) File "/home/cykooz/Work/z3ext/lib/python2.5/site-packages/zc.buildout-1.1.1-py2.5.egg/zc/buildout/easy_install.py", line 866, in develop assert os.spawnl(os.P_WAIT, executable, _safe_arg (executable), *args) == 0 AssertionError -----------------------------
Устанавливал по инструкции с главной страницы этого сайта. Пробывал устанавливать с использованием системного python и в виртуальное окружение (virtualenv) - разницы ни какой.
|
|
Nikolay Kim
|
Kevin,
answers on your questions:
1) i use z3c.form for all forms, so datetime widget is the one from z3c.form package. i'll add new default datetime widget in next version of z3c.layoutform.
2) about TTW customization. i develop several packages: z3ext.persistentlayout, z3ext.persistentresource, z3ext.persistentviewmodel you can't do WYSIWYG editing of layouts but you can do edit layouts TTW as simple page templates. persistentviewmodel - it is waht available in 'extensions' tab under 'View model' extension.
3) i've never think about naming :) i just needed namespace for my package.
P.S. about WYSIWYG editor, there is unreleased package z3ext.ui.extjswidget, it contains WYSIWYG editor for newsitems, pages bodies and js versions of date and datetime fields.
and Kevin you should examine all packages from z3ext namespace i don't use all of them in z3extnet instance http://download.z3ext.net/z3ext1.0/versions.cfg
|