Importing Competency XML from non-top level fails

Bug #191679 reported by Jason Straw
2
Affects Status Importance Assigned to Milestone
CanDo
In Progress
Medium
Justas Sadzevičius

Bug Description

File "/opt/cando/eggs/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py", line 130, in publish
  obj = request.traverse(obj)
File "/opt/cando/eggs/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/browser.py", line 513, in traverse
  ob = super(BrowserRequest, self).traverse(obj)
File "/opt/cando/eggs/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/http.py", line 453, in traverse
  ob = super(HTTPRequest, self).traverse(obj)
File "/opt/cando/eggs/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/base.py", line 263, in traverse
  obj = publication.traverseName(self, obj, entry_name)
File "/opt/cando/eggs/zope.app.publication-3.4.0a1_2-py2.4.egg/zope/app/publication/publicationtraverse.py", line 45, in traverseName
  ob2 = namespaceLookup(ns, nm, ob, request)
File "/opt/cando/eggs/zope.traversing-3.5.0a1.dev_r78730-py2.4.egg/zope/traversing/namespace.py", line 113, in namespaceLookup
  return traverser.traverse(name, ())
File "/opt/cando/eggs/zope.traversing-3.5.0a1.dev_r78730-py2.4.egg/zope/traversing/namespace.py", line 344, in traverse
  name=name)
File "/opt/cando/eggs/zope.component-3.4.0a1-py2.4.egg/zope/component/_api.py", line 114, in queryMultiAdapter
  return sitemanager.queryMultiAdapter(objects, interface, name, default)
File "/opt/cando/eggs/zope.component-3.4.0a1-py2.4.egg/zope/component/registry.py", line 206, in queryMultiAdapter
  return self.adapters.queryMultiAdapter(
File "/usr/lib/python2.4/site-packages/zope/interface/adapter.py", line 482, in queryMultiAdapter
  result = factory(*objects)
File "/opt/cando/src/cando/xmlcompetencyio/browser.py", line 38, in __init__
  self.update()
File "/opt/cando/src/cando/xmlcompetencyio/browser.py", line 68, in update
  ok = self.importer.importFromXML(xmlfile)
File "/opt/cando/src/cando/xmlcompetencyio/importer.py", line 44, in importFromXML
  self.trafoVaComp(stuff, None)
File "/opt/cando/src/cando/xmlcompetencyio/importer.py", line 86, in trafoVaComp
  currentCompetencies = Competencies(currentList.description)

Revision history for this message
Eldar Omuraliev (eldafar-deactivatedaccount) wrote :

Elaborate steps to reproduce the problem.

Changed in cando:
status: New → Incomplete
Revision history for this message
Jason Straw (jasonstraw) wrote :

Start by creating an XML file with a competency tree.

Create a tree of competencies/lists in cando.
Go down into the tree. Then attempt to use Import from XML deep into the tree.

Jason Straw (jasonstraw)
Changed in cando:
assignee: nobody → eldafar
importance: Undecided → Medium
status: Incomplete → Confirmed
Will Brady (wbrady4927)
Changed in cando:
status: Confirmed → In Progress
Revision history for this message
Jason Straw (jasonstraw) wrote :

make it so you cannot import xml from anywhere but the root node of the tree.

Changed in cando:
assignee: eldafar → justas-pov
Revision history for this message
David Welsh (rdavidw) wrote :

Welsh agrees with Jason comment; just take away "import XML" competency list from any level except root level.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.