add fields to type concept for controlling object creation
This commit is contained in:
		
							parent
							
								
									c629a7c366
								
							
						
					
					
						commit
						6266366dcf
					
				
					 2 changed files with 19 additions and 6 deletions
				
			
		
							
								
								
									
										11
									
								
								external/README.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								external/README.txt
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -130,11 +130,10 @@ Writing object information to the external storage
 | 
			
		|||
  >>> writer = PyWriter()
 | 
			
		||||
  >>> writer.write(elements, output)
 | 
			
		||||
  >>> print output.getvalue()
 | 
			
		||||
  type(u'country', u'Country', options=u'', typeInterface=u'', viewName=u'')...
 | 
			
		||||
  type(u'query', u'Query', options=u'', typeInterface='loops.expert.concept.IQueryConcept',
 | 
			
		||||
       viewName=u'')...
 | 
			
		||||
  type(u'country', u'Country', viewName=u'', typeInterface=u''..., options=u''...)...
 | 
			
		||||
  type(u'query', u'Query', viewName=u'', typeInterface='loops.expert.concept.IQueryConcept'..., options=u''...)...
 | 
			
		||||
  concept(u'myquery', u'My Query', u'query', options=u'option1\noption2',
 | 
			
		||||
       viewName=u'mystuff.html')...
 | 
			
		||||
       viewName=u'mystuff.html'...)...
 | 
			
		||||
  child(u'projects', u'customer', u'standard')...
 | 
			
		||||
  resource(u'doc04.txt', u'Document 4', u'textdocument', contentType='text/restructured')...
 | 
			
		||||
  resourceRelation(u'myquery', u'doc04.txt', u'standard')
 | 
			
		||||
| 
						 | 
				
			
			@ -172,7 +171,7 @@ corresponding extractor adapter.
 | 
			
		|||
  >>> PyWriter().write(extractor.extract(), output)
 | 
			
		||||
 | 
			
		||||
  >>> print output.getvalue()
 | 
			
		||||
  type(u'country', u'Country', options=u'', typeInterface=u'', viewName=u'')...
 | 
			
		||||
  type(u'country', u'Country', viewName=u'', typeInterface=u''..., options=u''...)...
 | 
			
		||||
  concept(u'myquery', u'My Query', u'query', options=u'option1\noption2',
 | 
			
		||||
          viewName=u'mystuff.html')[
 | 
			
		||||
              annotations(creators=(u'john',))]...
 | 
			
		||||
| 
						 | 
				
			
			@ -189,7 +188,7 @@ Extracting selected parts of the concept map
 | 
			
		|||
  >>> output = StringIO()
 | 
			
		||||
  >>> writer.write(elements, output)
 | 
			
		||||
  >>> print output.getvalue()
 | 
			
		||||
  type(u'customer', u'Customer', options=u'', typeInterface=u'', viewName=u'')
 | 
			
		||||
  type(u'customer', u'Customer', viewName=u'', typeInterface=u''..., options=u''...)
 | 
			
		||||
  concept(u'cust1', u'Customer 1', u'customer')
 | 
			
		||||
  concept(u'cust2', u'Customer 2', u'customer')
 | 
			
		||||
  concept(u'cust3', u'Customer 3', u'customer')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -674,6 +674,20 @@ class ITypeConcept(IConceptSchema, ILoopsAdapter):
 | 
			
		|||
        source='loops.TypeInterfaceSource',
 | 
			
		||||
        required=False)
 | 
			
		||||
 | 
			
		||||
    conceptManager = schema.BytesLine(
 | 
			
		||||
        title=_(u'Concept Manager Name'),
 | 
			
		||||
        description=_(u'Name of the concept manager in which objects of this '
 | 
			
		||||
                      u'type should be created.'),
 | 
			
		||||
        default='',     #determined at runtime: 'concepts' or 'resources'
 | 
			
		||||
        required=False)
 | 
			
		||||
 | 
			
		||||
    namePrefix = schema.BytesLine(
 | 
			
		||||
        title=_(u'Name Prefix'),
 | 
			
		||||
        description=_(u'String that will be prepended to the (generated) name '
 | 
			
		||||
                      u'of a newly created object of this type.'),
 | 
			
		||||
        default='',
 | 
			
		||||
        required=False)
 | 
			
		||||
 | 
			
		||||
    viewName = schema.TextLine(
 | 
			
		||||
        title=_(u'View Name'),
 | 
			
		||||
        description=_(u'Name of a special view be used for presenting '
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue