provide generic 'create concept' actions based on qualifier setting or assigned subtypes
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4162 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									ba2ea67244
								
							
						
					
					
						commit
						29cc102669
					
				
					 3 changed files with 6 additions and 3 deletions
				
			
		|  | @ -381,14 +381,14 @@ class CreateConceptForm(CreateObjectForm): | ||||||
| 
 | 
 | ||||||
|     def getTypesVocabulary(self, include=None): |     def getTypesVocabulary(self, include=None): | ||||||
|         types = [] |         types = [] | ||||||
|         if 'subtype' in include: |         if include and 'subtype' in include: | ||||||
|             include = list(include) |             include = list(include) | ||||||
|             include.remove('subtype') |             include.remove('subtype') | ||||||
|             parentType = self.target.conceptType |             parentType = self.target.conceptType | ||||||
|             subtypePred = self.conceptManager['issubtype'] |             subtypePred = self.conceptManager['issubtype'] | ||||||
|             types = [dict(token=ConceptTypeInfo(t).token, title=t.title) |             types = [dict(token=ConceptTypeInfo(t).token, title=t.title) | ||||||
|                         for t in parentType.getChildren([subtypePred])] |                         for t in parentType.getChildren([subtypePred])] | ||||||
|         if include: |         if include or include is None: | ||||||
|             return util.KeywordVocabulary(types + self.listTypes(include, ('hidden',))) |             return util.KeywordVocabulary(types + self.listTypes(include, ('hidden',))) | ||||||
|         return util.KeywordVocabulary(types) |         return util.KeywordVocabulary(types) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
										
											Binary file not shown.
										
									
								
							|  | @ -3,7 +3,7 @@ msgstr "" | ||||||
| 
 | 
 | ||||||
| "Project-Id-Version: $Id$\n" | "Project-Id-Version: $Id$\n" | ||||||
| "POT-Creation-Date: 2007-05-22 12:00 CET\n" | "POT-Creation-Date: 2007-05-22 12:00 CET\n" | ||||||
| "PO-Revision-Date: 2011-02-09 12:00 CET\n" | "PO-Revision-Date: 2011-02-10 12:00 CET\n" | ||||||
| "Last-Translator: Helmut Merz <helmutm@cy55.de>\n" | "Last-Translator: Helmut Merz <helmutm@cy55.de>\n" | ||||||
| "Language-Team: loops developers <helmutm@cy55.de>\n" | "Language-Team: loops developers <helmutm@cy55.de>\n" | ||||||
| "MIME-Version: 1.0\n" | "MIME-Version: 1.0\n" | ||||||
|  | @ -65,6 +65,9 @@ msgstr "Ordner ändern" | ||||||
| msgid "Create Topic..." | msgid "Create Topic..." | ||||||
| msgstr "Thema anlegen..." | msgstr "Thema anlegen..." | ||||||
| 
 | 
 | ||||||
|  | msgid "Create Topic" | ||||||
|  | msgstr "Thema anlegen" | ||||||
|  | 
 | ||||||
| msgid "Create a new topic." | msgid "Create a new topic." | ||||||
| msgstr "Ein neues Thema anlegen" | msgstr "Ein neues Thema anlegen" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm