[Zope3-Users] installation of generic setup fails

2008-06-02 Thread Martin Schuhmacher

Hello list,


[EMAIL PROTECTED] Products]# /opt/Zope-2.9/instance/bin/zopectl fg
/opt/Zope-2.9/instance/bin/runzope -X debug-mode=on
2008-06-02 14:14:41 INFO ZServer HTTP server started at Mon Jun  2 
14:14:41 2008

Hostname: 0.0.0.0
Port: 80
2008-06-02 14:14:41 INFO Zope Set effective user to zope
2008-06-02 14:14:43 ERROR Zope Couldn't install Five
Traceback (most recent call last):
  File /opt/Zope-2.9/lib/python/OFS/Application.py, line 783, in 
install_product

initmethod(context)
  File /opt/Zope-2.9/lib/python/Products/Five/__init__.py, line 29, 
in initialize

zcml.load_site()
  File /opt/Zope-2.9/lib/python/Products/Five/zcml.py, line 41, in 
load_site

_context = xmlconfig.file(file)
  File /opt/Zope-2.9/lib/python/zope/configuration/xmlconfig.py, line 
558, in file

include(context, name, package)
  File /opt/Zope-2.9/lib/python/zope/configuration/xmlconfig.py, line 
494, in include

processxmlfile(f, context)
  File /opt/Zope-2.9/lib/python/zope/configuration/xmlconfig.py, line 
349, in processxmlfile

parser.parse(src)
  File /usr/lib/python2.4/xml/sax/expatreader.py, line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File /usr/lib/python2.4/xml/sax/xmlreader.py, line 123, in parse
self.feed(buffer)
  File /usr/lib/python2.4/xml/sax/expatreader.py, line 207, in feed
self._parser.Parse(data, isFinal)
  File /usr/lib/python2.4/xml/sax/expatreader.py, line 348, in 
end_element_ns

self._cont_handler.endElementNS(pair, None)
  File /opt/Zope-2.9/lib/python/zope/configuration/xmlconfig.py, line 
328, in endElementNS

self.context.end()
  File /opt/Zope-2.9/lib/python/zope/configuration/config.py, line 
544, in end

self.stack.pop().finish()
  File /opt/Zope-2.9/lib/python/zope/configuration/config.py, line 
692, in finish

actions = self.handler(context, **args)
  File /opt/Zope-2.9/lib/python/Products/Five/fiveconfigure.py, line 
88, in loadProducts

handleBrokenProduct(product)
  File /opt/Zope-2.9/lib/python/Products/Five/fiveconfigure.py, line 
86, in loadProducts

xmlconfig.include(_context, zcml, package=product)
  File /opt/Zope-2.9/lib/python/zope/configuration/xmlconfig.py, line 
494, in include

processxmlfile(f, context)
  File /opt/Zope-2.9/lib/python/zope/configuration/xmlconfig.py, line 
349, in processxmlfile

parser.parse(src)
  File /usr/lib/python2.4/xml/sax/expatreader.py, line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
  File /usr/lib/python2.4/xml/sax/xmlreader.py, line 123, in parse
self.feed(buffer)
  File /usr/lib/python2.4/xml/sax/expatreader.py, line 207, in feed
self._parser.Parse(data, isFinal)
  File /usr/lib/python2.4/xml/sax/expatreader.py, line 348, in 
end_element_ns

self._cont_handler.endElementNS(pair, None)
  File /opt/Zope-2.9/lib/python/zope/configuration/xmlconfig.py, line 
328, in endElementNS

self.context.end()
  File /opt/Zope-2.9/lib/python/zope/configuration/config.py, line 
544, in end

self.stack.pop().finish()
  File /opt/Zope-2.9/lib/python/zope/configuration/config.py, line 
691, in finish

args = toargs(context, *self.argdata)
  File /opt/Zope-2.9/lib/python/zope/configuration/config.py, line 
1383, in toargs

args[str(name)] = field.fromUnicode(s)
  File /opt/Zope-2.9/lib/python/zope/configuration/fields.py, line 
229, in fromUnicode

v = vt.fromUnicode(s)
  File /opt/Zope-2.9/lib/python/zope/configuration/fields.py, line 
139, in fromUnicode

value = self.context.resolve(name)
  File /opt/Zope-2.9/lib/python/zope/configuration/config.py, line 
184, in resolve

mod = __import__(mname, *_import_chickens)
  File /opt/Zope-2.9/instance/Products/GenericSetup/components.py, 
line 20, in ?

from zope.component.interfaces import IComponentRegistry
ZopeXMLConfigurationError: File 
/opt/Zope-2.9/lib/python/Products/Five/skel/site.zcml, line 13.2-13.23
ZopeXMLConfigurationError: File 
/opt/Zope-2.9/instance/Products/GenericSetup/configure.zcml, line 
55.2-57.8

ImportError: cannot import name IComponentRegistry
Traceback (most recent call last):
  File /opt/Zope-2.9/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /opt/Zope-2.9/lib/python/Zope2/Startup/run.py, line 21, in run
starter.prepare()
  File /opt/Zope-2.9/lib/python/Zope2/Startup/__init__.py, line 98, 
in prepare

self.startZope()
  File /opt/Zope-2.9/lib/python/Zope2/Startup/__init__.py, line 257, 
in startZope

Zope2.startup()
  File /opt/Zope-2.9/lib/python/Zope2/__init__.py, line 47, in startup
_startup()
  File /opt/Zope-2.9/lib/python/Zope2/App/startup.py, line 103, in 
startup

OFS.Application.initialize(application)
  File /opt/Zope-2.9/lib/python/OFS/Application.py, line 304, in 
initialize

initializer.initialize()
  File /opt/Zope-2.9/lib/python/OFS/Application.py, line 333, in 
initialize

self.install_products()
  File /opt/Zope-2.9/lib/python/OFS/Application.py, 

[Zope3-Users] overriding single resources from resourcedirectories

2008-06-02 Thread Tom Gross

Hi,

	is it possible to override single resources from a previously defined 
resourcedirectory? I have let's say a 3rd party product defining


...
  resourceDirectory
  name=mycss
  directory=resources
  permission=zope.Public
  /

...

Now I need to override a single css-file provided by the 
resource-directory. What would the directive be?


overrides.zcml:

...
  resource
  name=mycss/single.css
  file=single.css
  permission=zope.Public
  /
...

I tried that, but without success. Is there a solution beside of copying 
the whole directory to my new product?


Thanks,
-Tom

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Re: XML schema definitions,zope.schema and z3c.form

2008-06-02 Thread Nylan
Thanks a lot for your input!

Best regards!



___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Is ZAM suitable for a new application?

2008-06-02 Thread Junyong Pan
I found zam has very nice interface. And it's pluggable structure is
quite flexible.

I wan't to use it for my new application. But I don't know if zam is
created for this purpose.

Can anyone talk more about ZAM? When ZAM is mature, what will it
influence the zope world? For example, will most prodcuts be released
as installable zamplugins, Just like what Plone products like?

I found so few information about zam. It really need more documentations.

Thanks.

--
panjunyong
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Is ZAM suitable for a new application?

2008-06-02 Thread Paul Carduner
On Mon, Jun 2, 2008 at 7:56 AM, Junyong Pan [EMAIL PROTECTED] wrote:
 I found zam has very nice interface. And it's pluggable structure is
 quite flexible.

 I wan't to use it for my new application. But I don't know if zam is
 created for this purpose.

 Can anyone talk more about ZAM? When ZAM is mature, what will it
 influence the zope world? For example, will most prodcuts be released
 as installable zamplugins, Just like what Plone products like?

 I found so few information about zam. It really need more documentations.

 Thanks.

Roger Ineichen can give you the best response to this question.  ZAM
stands for Zope Application Management.  I wouldn't use it as the
basis for your application, however I have been using it quite
successfully as the administrative side of a web application.  This
includes things like browsing the object hierarchy, viewing error
logs, managing the server process, and some other basic tasks that
were provided by the Rotterdam skin.  ZAM provides the functionality
that just about every website needs, but which you rarely want to
expose to end users.  As I see it, ZAM is just a zope component which
you can use in your web application for common administrative tasks -
it is not a platform in the same way Zope 2 is.  I hope that was
somewhat helpful.

-- 
Paul Carduner
http://www.carduner.net
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users