Minor fixes
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@812 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									b601b2c719
								
							
						
					
					
						commit
						8ab66daf29
					
				
					 2 changed files with 15 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -42,12 +42,9 @@ class Details(object):
 | 
			
		|||
class ConceptRelations(Details):
 | 
			
		||||
 | 
			
		||||
    def assignConcept(self, concept_name):
 | 
			
		||||
        """ Assign a concept denoted with the name.
 | 
			
		||||
        """ Assign a concept denoted by the 'concept_name' request parameter.
 | 
			
		||||
        """
 | 
			
		||||
        #conceptName = self.request.get('concept_name')
 | 
			
		||||
        #if conceptName:
 | 
			
		||||
        concept = zapi.getParent(self.context)[concept_name]
 | 
			
		||||
        #if concept:
 | 
			
		||||
        self.context.assignConcept(removeSecurityProxy(concept), DyadicRelation)
 | 
			
		||||
        self.request.response.redirect(zapi.absoluteURL(self.context, self.request))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -6,6 +6,20 @@
 | 
			
		|||
   i18n_domain="zope"
 | 
			
		||||
   >
 | 
			
		||||
 | 
			
		||||
  <page
 | 
			
		||||
      name="details.html"
 | 
			
		||||
      for="loops.interfaces.IConcept"
 | 
			
		||||
      class=".concept.Details"
 | 
			
		||||
      template="concept_details.pt"
 | 
			
		||||
      permission="zope.View"
 | 
			
		||||
      menu="zmi_views" title="Details"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
  <defaultView
 | 
			
		||||
      for="loops.interfaces.IConcept"
 | 
			
		||||
      name="details.html"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
  <addform
 | 
			
		||||
      label="Add Concept"
 | 
			
		||||
      name="AddLoopsConcept.html"
 | 
			
		||||
| 
						 | 
				
			
			@ -32,20 +46,6 @@
 | 
			
		|||
      menu="zmi_views" title="Edit"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
  <defaultView
 | 
			
		||||
      for="loops.interfaces.IConcept"
 | 
			
		||||
      name="details.html"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
  <page
 | 
			
		||||
      name="details.html"
 | 
			
		||||
      for="loops.interfaces.IConcept"
 | 
			
		||||
      class=".concept.Details"
 | 
			
		||||
      template="concept_details.pt"
 | 
			
		||||
      permission="zope.View"
 | 
			
		||||
      menu="zmi_views" title="Details"
 | 
			
		||||
      />
 | 
			
		||||
 | 
			
		||||
  <pages
 | 
			
		||||
        for="loops.interfaces.IConcept"
 | 
			
		||||
        class=".concept.ConceptRelations"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue