| 
      
            Lines 341-352
          
      
      
        Link Here
      
     | 
  
        
          | 341 | 
          			if self.get(ikey):  | 
          341 | 
          			if self.get(ikey):  | 
        
        
          | 342 | 
          				self._options[ikey] = urljoin('%s/' % self.get_metainf_url(), self.get(ikey)) | 
          342 | 
          				self._options[ikey] = urljoin('%s/' % self.get_metainf_url(), self.get(ikey)) | 
        
        
          | 343 | 
           | 
          343 | 
           | 
        
            
               | 
               | 
              344 | 
              		# versions will be set to something meaningful by Application.all()  | 
            
            
              | 345 | 
              		self.versions = [self]  | 
            
            
              | 346 | 
               | 
            
        
          | 344 | 
          		# save important meta data  | 
          347 | 
          		# save important meta data  | 
        
          
            
              | 345 | 
              		self.id = self._options['id'] = self._options['id'].lower()  | 
              348 | 
              		self.id = self.ldap_id = self.ldap_container = None  | 
            
            
               | 
               | 
              349 | 
              		self.set_id(self._options['id'])  | 
            
        
          | 346 | 
          		self.name = self._options['name']  | 
          350 | 
          		self.name = self._options['name']  | 
        
        
          | 347 | 
          		self.version = self._options['version']  | 
          351 | 
          		self.version = self._options['version']  | 
        
            
              | 348 | 
              		self.ldap_container = 'cn=%s,cn=apps,cn=univention,%s' % (self.id, ucr.get('ldap/base')) | 
               | 
               | 
            
            
              | 349 | 
              		self.ldap_id = '%s_%s' % (self.id, self.version)  | 
            
        
          | 350 | 
           | 
          352 | 
           | 
        
        
          | 351 | 
          		# get the name of the component  | 
          353 | 
          		# get the name of the component  | 
        
        
          | 352 | 
          		m = self._reg_component_id.match(url)  | 
          354 | 
          		m = self._reg_component_id.match(url)  | 
        
  
    | 
      
            Lines 368-373
          
      
      
        Link Here
      
     | 
  
        
          | 368 | 
          		# is set by all()  | 
          370 | 
          		# is set by all()  | 
        
        
          | 369 | 
          		self.candidate = None  | 
          371 | 
          		self.candidate = None  | 
        
        
          | 370 | 
           | 
          372 | 
           | 
        
            
               | 
               | 
              373 | 
              	def set_id(self, app_id, recursive=True):  | 
            
            
              | 374 | 
              		if recursive:  | 
            
            
              | 375 | 
              			for iapp in self.versions:  | 
            
            
              | 376 | 
              				# will call also for self!  | 
            
            
              | 377 | 
              				iapp.set_id(app_id, recursive=False)  | 
            
            
              | 378 | 
              		else:  | 
            
            
              | 379 | 
              			app_id = app_id.lower()  | 
            
            
              | 380 | 
              			self.id = app_id  | 
            
            
              | 381 | 
              			self._options['id'] = app_id  | 
            
            
              | 382 | 
              			self.ldap_id = '%s_%s' % (self.id, self.get('version')) | 
            
            
              | 383 | 
              			self.ldap_container = 'cn=%s,cn=apps,cn=univention,%s' % (self.id, ucr.get('ldap/base')) | 
            
            
              | 384 | 
               | 
            
        
          | 371 | 
          	def get(self, key):  | 
          385 | 
          	def get(self, key):  | 
        
        
          | 372 | 
          		'''Helper function to access configuration elements of the application's .ini  | 
          386 | 
          		'''Helper function to access configuration elements of the application's .ini  | 
        
        
          | 373 | 
          		file. If element is not given, returns (for string elements) an empty string.  | 
          387 | 
          		file. If element is not given, returns (for string elements) an empty string.  |