Issue5

Title App.class_init:default__class_init__ setting attrs on Products dir
Priority bug Status chatting
Superseder Nosy List chrism
Assigned To Topics

Created on 2007-09-28.21:39:18 by chrism, last changed 2008-03-03.21:20:09 by tseaver.

Messages
msg66 (view) Author: tseaver Date: 2008-03-03.21:20:09
I don't know whether it is related, but the recent bump to Zope 2.10.5 cleans up
the "not
a namespace package" warning which used to be emitted.
msg9 (view) Author: chrism Date: 2007-09-28.21:52:49
I had a Product egg installed (sqladapters).. when I deinstalled it,  
this error stopped.

On Sep 28, 2007, at 10:39 PM, Chris McDonough wrote:

>
> New submission from Chris McDonough <chrism@plope.com>:
>
> At Zope startup time... (nothing to do with Repoze, this is a stock
> Zope+Plone install)
>
> Traceback (most recent call last):
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> Zope2/Startup/zopectl.py", line 329, in ?
>      main()
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> Zope2/Startup/zopectl.py", line 287, in main
>      options.realize(args)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> Zope2/Startup/zopectl.py", line 95, in realize
>      ZDOptions.realize(self, *args, **kw)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> zdaemon/zdoptions.py", line 273, in realize
>      self.load_schema()
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> zdaemon/zdoptions.py", line 321, in load_schema
>      self.schema = ZConfig.loadSchema(self.schemafile)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/loader.py", line 31, in loadSchema
>      return SchemaLoader().loadURL(url)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/loader.py", line 65, in loadURL
>      return self.loadResource(r)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/loader.py", line 159, in loadResource
>      schema = ZConfig.schema.parseResource(resource, self)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/schema.py", line 27, in parseResource
>      xml.sax.parse(resource.file, parser)
>    File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/
> __init__.py", line 33, in parse
>      parser.parse(source)
>    File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/
> expatreader.py", line 107, in parse
>      xmlreader.IncrementalParser.parse(self, source)
>    File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/
> xmlreader.py", line 123, in parse
>      self.feed(buffer)
>    File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/
> expatreader.py", line 207, in feed
>      self._parser.Parse(data, isFinal)
>    File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/
> expatreader.py", line 300, in start_element
>      self._cont_handler.startElement(name, AttributesImpl(attrs))
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/schema.py", line 99, in startElement
>      getattr(self, "start_" + name)(attrs)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/schema.py", line 475, in start_schema
>      keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/schema.py", line 201, in get_sect_typeinfo
>      datatype = self.get_datatype(attrs, "datatype", "null", base)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/schema.py", line 194, in get_datatype
>      return self._registry.get(dtname)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/datatypes.py", line 398, in get
>      t = self.search(name)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> ZConfig/datatypes.py", line 423, in search
>      package = __import__(n, g, g, component)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> Zope2/Startup/datatypes.py", line 21, in ?
>      import OFS.Uninstalled
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> OFS/Uninstalled.py", line 16, in ?
>      import  SimpleItem, Globals, Acquisition
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> OFS/SimpleItem.py", line 26, in ?
>      import AccessControl.Role, AccessControl.Owned, App.Common
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> AccessControl/Role.py", line 19, in ?
>      from Globals import DTMLFile, MessageDialog, Dictionary
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> Globals/__init__.py", line 34, in ?
>      from App.special_dtml import HTML, HTMLFile, DTMLFile
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> App/special_dtml.py", line 73, in ?
>      from Shared.DC.Scripts.Bindings import Bindings
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> Shared/DC/Scripts/Bindings.py", line 354, in ?
>      InitializeClass(Bindings)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> App/class_init.py", line 69, in default__class_init__
>      AccessControl.Permission.registerPermissions
> (self.__ac_permissions__)
>    File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/
> AccessControl/Permission.py", line 132, in registerPermissions
>      Products.__ac_permissions__=(
> AttributeError: 'module' object has no attribute '__ac_permissions__'
>
> We may need to see what that's about and fix it upstream.
>
> ----------
> messages: 8
> nosy: chrism
> status: unread
> title: App.class_init:default__class_init__ setting attrs on  
> Products dir
>
> __________________________________
> Repoze Bugs <bugs@bugs.repoze.org>
> <http://bugs.repoze.org/issue5>
> __________________________________
> _______________________________________________
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/mailman/listinfo/repoze-dev
>
msg8 (view) Author: chrism Date: 2007-09-28.21:39:18
At Zope startup time... (nothing to do with Repoze, this is a stock  
Zope+Plone install)

Traceback (most recent call last):
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
Zope2/Startup/zopectl.py", line 329, in ?
     main()
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
Zope2/Startup/zopectl.py", line 287, in main
     options.realize(args)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
Zope2/Startup/zopectl.py", line 95, in realize
     ZDOptions.realize(self, *args, **kw)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
zdaemon/zdoptions.py", line 273, in realize
     self.load_schema()
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
zdaemon/zdoptions.py", line 321, in load_schema
     self.schema = ZConfig.loadSchema(self.schemafile)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/loader.py", line 31, in loadSchema
     return SchemaLoader().loadURL(url)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/loader.py", line 65, in loadURL
     return self.loadResource(r)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/loader.py", line 159, in loadResource
     schema = ZConfig.schema.parseResource(resource, self)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/schema.py", line 27, in parseResource
     xml.sax.parse(resource.file, parser)
   File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/ 
__init__.py", line 33, in parse
     parser.parse(source)
   File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/ 
expatreader.py", line 107, in parse
     xmlreader.IncrementalParser.parse(self, source)
   File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/ 
xmlreader.py", line 123, in parse
     self.feed(buffer)
   File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/ 
expatreader.py", line 207, in feed
     self._parser.Parse(data, isFinal)
   File "/Users/chrism/opt/Python-2.4.3/lib/python2.4/xml/sax/ 
expatreader.py", line 300, in start_element
     self._cont_handler.startElement(name, AttributesImpl(attrs))
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/schema.py", line 99, in startElement
     getattr(self, "start_" + name)(attrs)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/schema.py", line 475, in start_schema
     keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/schema.py", line 201, in get_sect_typeinfo
     datatype = self.get_datatype(attrs, "datatype", "null", base)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/schema.py", line 194, in get_datatype
     return self._registry.get(dtname)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/datatypes.py", line 398, in get
     t = self.search(name)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
ZConfig/datatypes.py", line 423, in search
     package = __import__(n, g, g, component)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
Zope2/Startup/datatypes.py", line 21, in ?
     import OFS.Uninstalled
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
OFS/Uninstalled.py", line 16, in ?
     import  SimpleItem, Globals, Acquisition
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
OFS/SimpleItem.py", line 26, in ?
     import AccessControl.Role, AccessControl.Owned, App.Common
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
AccessControl/Role.py", line 19, in ?
     from Globals import DTMLFile, MessageDialog, Dictionary
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
Globals/__init__.py", line 34, in ?
     from App.special_dtml import HTML, HTMLFile, DTMLFile
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
App/special_dtml.py", line 73, in ?
     from Shared.DC.Scripts.Bindings import Bindings
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
Shared/DC/Scripts/Bindings.py", line 354, in ?
     InitializeClass(Bindings)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
App/class_init.py", line 69, in default__class_init__
     AccessControl.Permission.registerPermissions 
(self.__ac_permissions__)
   File "/Users/chrism/projects/repoze-devel/stockplone/lib/python/ 
AccessControl/Permission.py", line 132, in registerPermissions
     Products.__ac_permissions__=(
AttributeError: 'module' object has no attribute '__ac_permissions__'

We may need to see what that's about and fix it upstream.
History
Date User Action Args
2008-03-03 21:20:09 tseaver set priority: bug
messages: + msg66
2007-09-28 21:52:49 chrism set status: unread -> chatting
messages: + msg9
2007-09-28 21:39:18 chrism create