← Back to team overview

schooltool-developers team mailing list archive

Re: Cando and current schooltool

 

2010/5/7 Alan Elkner <aelkner@xxxxxxxxx>:
> Hey all,
>
> In response to a customer request to have cando use the current
> schooltool, I set about branching lp:cando and making the following
> changes:
>
> 1) I replaced buildout cfg with the new-style base.cfg and tiny
> buildout.cfg file, setting eggs=cando
> 2) I updated the versions in setup.py to be schooltool>=1.3.0 and
> schooltool.gradebook>=0.6.0
> 3) I updated dependency_links to be
> dependency_links=['http://ftp.schooltool.org/schooltool/1.4/'], the
> newer version
> 4) For some reason, the make file's make-instance section needed
> cando.cando2007 changed to be just cando2007, meaning that before it
> didn't matter that it didn't match the left-hand side of the
> entry_points section of setup.py.
>
> At that point I was able to successfully run make.  The next step was
> make run.  The first error I got there was probably because of the new
> version of zope we are using in schooltool now, but I was able to fix
> it easily by replacing imports of zope.app.keyreference.interfaces
> with zope.keyreference.interfaces.
>
> That brought me to the following error:
>
> zope.configuration.config.ConfigurationConflictError: Conflicting
> configuration actions
>  For: ('adapter', (<InterfaceClass
> cando.virginia.interfaces.ICompetencies>, <InterfaceClass
> zope.publisher.interfaces.browser.IDefaultBrowserLayer>),
> <InterfaceClass zope.app.menus.zmi_views>, u'View')
>    File "/home/aelkner/temp/newcando/src/cando/virginia/browser/configure.zcml",
> line 91.2-99.8
>        <page
>            name="treeindex.html"
>            for="..interfaces.ICompetencies"
>            class=".virginia.CompetenciesView"
>            template="templates/competencies.pt"
>            permission="zope.View"
>            menu="zmi_views"
>            title="View"
>            />
>    File "/home/aelkner/temp/newcando/src/cando/virginia/browser/configure.zcml",
> line 101.2-109.8
>        <page
>            name="index.html"
>            for="..interfaces.ICompetencies"
>            class=".virginia.CompetenciesClassicView"
>            template="templates/competencieseditor.pt"
>            permission="zope.View"
>            menu="zmi_views"
>            title="View"
>            />
>  For: ('adapter', (<InterfaceClass
> cando.virginia.interfaces.ICompetencyReference>, <InterfaceClass
> zope.publisher.interfaces.browser.IDefaultBrowserLayer>),
> <InterfaceClass zope.app.menus.zmi_views>, u'View')
>    File "/home/aelkner/temp/newcando/src/cando/virginia/browser/configure.zcml",
> line 111.2-119.8
>        <page
>            name="index.html"
>            for="cando.virginia.interfaces.ICompetencyReference"
>            class=".virginia.VirginiaCompetencyView"
>            template="templates/virginiacompetency.pt"
>            permission="zope.View"
>            menu="zmi_views"
>            title="View"
>            />
>    File "/home/aelkner/temp/newcando/src/cando/virginia/browser/configure.zcml",
> line 123.2-130.8
>        <page
>            name="treeindex.html"
>            for="cando.virginia.interfaces.ICompetencyReference"
>            template="templates/virginiacompetency.pt"
>            permission="zope.View"
>            menu="zmi_views"
>            title="View"
>            />
>
> This is probably a result of the newer version of zope, perhaps
> something to do with zmi_menus and how they now work?

Titles are the same for two menus. If I change the title of treeindex
entries to "Tree View", there is no conflict. But they are not used I
think. Works for me if I remove the menu and title attributes
altogether. Attached diff.

>
> I attached my diff.  Please advise.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~schooltool-developers
> Post to     : schooltool-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~schooltool-developers
> More help   : https://help.launchpad.net/ListHelp
>
>
Index: src/cando/virginia/browser/configure.zcml
===================================================================
--- src/cando/virginia/browser/configure.zcml	(revision 1666)
+++ src/cando/virginia/browser/configure.zcml	(working copy)
@@ -94,8 +94,6 @@
       class=".virginia.CompetenciesView"
       template="templates/competencies.pt"
       permission="zope.View"
-      menu="zmi_views"
-      title="View"
       />
 
   <page
@@ -104,8 +102,6 @@
       class=".virginia.CompetenciesClassicView"
       template="templates/competencieseditor.pt"
       permission="zope.View"
-      menu="zmi_views"
-      title="View"
       />
 
   <page
@@ -114,8 +110,6 @@
       class=".virginia.VirginiaCompetencyView"
       template="templates/virginiacompetency.pt"
       permission="zope.View"
-      menu="zmi_views"
-      title="View"
       />
 
 
@@ -125,8 +119,6 @@
       for="cando.virginia.interfaces.ICompetencyReference"
       template="templates/virginiacompetency.pt"
       permission="zope.View"
-      menu="zmi_views"
-      title="View"
       />
 
   <page

Follow ups

References