[Kss-devel] got ajaxdemo working

Joachim Schmitz js at aixtraware.de
Wed Jun 27 17:16:13 CEST 2007


hi,

finally with the following modifications I could make the trunk of azax 
and azaxdemo work under zope-2.9.7. The azaxdemo from branch 1.1 does 
not work with azax from branch 1.1.


diff azaxview.py azax_trunk/azaxview.py
47,48c47,48
< #from zope.component.globalregistry import BaseGlobalComponents
< #from zope.component.interfaces import IComponentLookup
---
 > from zope.component.globalregistry import BaseGlobalComponents
 > from zope.component.interfaces import IComponentLookup
51,52c51,52
< #from zope.publisher.browser import BrowserView
< #from zope.component.persistentregistry import PersistentAdapterRegistry
---
 > from zope.publisher.browser import BrowserView
 > from zope.component.persistentregistry import PersistentAdapterRegistry
55,64c55,60
< try:
<     from Products.Five import BrowserView
< except ImportError:
<     from zope.app.publisher.browser import BrowserView
<
< # class ViewSiteManager(BaseGlobalComponents):
<
< #     def _init_registries(self):
< #         self.adapters = PersistentAdapterRegistry()
< #         self.utilities = PersistentAdapterRegistry()
---
 >
 > class ViewSiteManager(BaseGlobalComponents):
 >
 >     def _init_registries(self):
 >         self.adapters = PersistentAdapterRegistry()
 >         self.utilities = PersistentAdapterRegistry()
99,100c95
< # class AzaxBaseView(SiteView):
< class AzaxBaseView(BrowserView):
---
 > class AzaxBaseView(SiteView):
124,131c119,121
<         return self.commands.render(self.request)
<
<     # def render(self):
<     #     '''All methods must use this to return their command set
<     #     '''
<     #     commands = self.commands.render(self.request)
<     #     super(AzaxBaseView, self).render()
<     #     return commands
---
 >         commands = self.commands.render(self.request)
 >         super(AzaxBaseView, self).render()
 >         return commands
-- 
Gruß Joachim



More information about the Kss-devel mailing list