provide additional allocation predicate 'isowner'
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4035 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
64db0029e6
commit
1b56f8fd44
3 changed files with 6 additions and 4 deletions
|
@ -636,7 +636,7 @@ class BaseView(GenericView, I18NView):
|
||||||
jsCall = ('dojo.require("dojo.parser"); '
|
jsCall = ('dojo.require("dojo.parser"); '
|
||||||
'dojo.registerModulePath("jocy", "/@@/cybertools.jocy"); '
|
'dojo.registerModulePath("jocy", "/@@/cybertools.jocy"); '
|
||||||
'dojo.require("jocy.data");')
|
'dojo.require("jocy.data");')
|
||||||
cm.register('js-execute', jsCall, jsCall=jsCall)
|
cm.register('js-execute', 'dojo_registration', jsCall=jsCall)
|
||||||
cm.register('css', identifier='Lightbox.css', position=0,
|
cm.register('css', identifier='Lightbox.css', position=0,
|
||||||
resourceName='ajax.dojo/dojox/image/resources/Lightbox.css',
|
resourceName='ajax.dojo/dojox/image/resources/Lightbox.css',
|
||||||
media='all')
|
media='all')
|
||||||
|
|
|
@ -114,8 +114,10 @@ class EditPersonForm(EditConceptForm):
|
||||||
types = list(self.typeManager.listTypes(include=('workspace',)))
|
types = list(self.typeManager.listTypes(include=('workspace',)))
|
||||||
#assigned = [r.context for r in self.assignments]
|
#assigned = [r.context for r in self.assignments]
|
||||||
#types = [t for t in types if t.typeProvider not in assigned]
|
#types = [t for t in types if t.typeProvider not in assigned]
|
||||||
return [dict(title=t.title, token=t.tokenForSearch,
|
predicates = [n for n in ['standard', 'ismember', 'ismaster', 'iswoner']
|
||||||
predicates=['standard', 'ismember', 'ismaster']) for t in types]
|
if n in self.conceptManager]
|
||||||
|
return [dict(title=t.title, token=t.tokenForSearch, predicates=predicates)
|
||||||
|
for t in types]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ localPermissions = ('zope.ManageContent', 'zope.View', 'loops.ManageWorkspaces',
|
||||||
|
|
||||||
acquiringPredicateNames = ('hasType', 'standard', 'ownedby', 'ispartof')
|
acquiringPredicateNames = ('hasType', 'standard', 'ownedby', 'ispartof')
|
||||||
|
|
||||||
allocationPredicateNames = ('ismaster', 'ismember')
|
allocationPredicateNames = ('isowner', 'ismaster', 'ismember',)
|
||||||
|
|
||||||
workspaceGroupsFolderName = 'gloops_ws'
|
workspaceGroupsFolderName = 'gloops_ws'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue