added XML-RPC method deassignChild()
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1574 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
5e038c71e6
commit
5bf5123847
3 changed files with 10 additions and 1 deletions
|
@ -149,6 +149,8 @@ Updating the concept map
|
||||||
>>> zope3Id = xrf.getObjectByName('zope3')['id']
|
>>> zope3Id = xrf.getObjectByName('zope3')['id']
|
||||||
>>> xrf.assignChild(zopeId, zope3Id, defaultPred['id'])
|
>>> xrf.assignChild(zopeId, zope3Id, defaultPred['id'])
|
||||||
'OK'
|
'OK'
|
||||||
|
>>> xrf.deassignChild(zopeId, zope3Id, defaultPred['id'])
|
||||||
|
'OK'
|
||||||
|
|
||||||
|
|
||||||
Fin de partie
|
Fin de partie
|
||||||
|
|
|
@ -100,6 +100,13 @@ class LoopsMethods(MethodPublisher):
|
||||||
obj.assignChild(child, pred)
|
obj.assignChild(child, pred)
|
||||||
return 'OK'
|
return 'OK'
|
||||||
|
|
||||||
|
def deassignChild(self, objId, predicateId, childId):
|
||||||
|
obj = getObjectForUid(objId)
|
||||||
|
pred = getObjectForUid(predicateId)
|
||||||
|
child = getObjectForUid(childId)
|
||||||
|
obj.deassignChild(child, [pred])
|
||||||
|
return 'OK'
|
||||||
|
|
||||||
|
|
||||||
def objectAsDict(obj):
|
def objectAsDict(obj):
|
||||||
mapping = {'id': getUidForObject(obj), 'name': getName(obj), 'title': obj.title,
|
mapping = {'id': getUidForObject(obj), 'name': getName(obj), 'title': obj.title,
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
getDefaultPredicate getTypePredicate getTypeConcept
|
getDefaultPredicate getTypePredicate getTypeConcept
|
||||||
getConceptTypes getPredicates
|
getConceptTypes getPredicates
|
||||||
getChildren getParents
|
getChildren getParents
|
||||||
assignChild"
|
assignChild deassignChild"
|
||||||
permission="loops.xmlrpc.ManageConcepts"
|
permission="loops.xmlrpc.ManageConcepts"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue