attributes joker
This commit is contained in:
		@@ -80,10 +80,10 @@ class User(models.Model):
 | 
				
			|||||||
        )
 | 
					        )
 | 
				
			||||||
        service_attributs = {}
 | 
					        service_attributs = {}
 | 
				
			||||||
        for (key, value) in self.attributs.items():
 | 
					        for (key, value) in self.attributs.items():
 | 
				
			||||||
            if key in attributs:
 | 
					            if key in attributs or '*' in attributs:
 | 
				
			||||||
                if key in replacements:
 | 
					                if key in replacements:
 | 
				
			||||||
                    value = re.sub(replacements[key][0], replacements[key][1], value)
 | 
					                    value = re.sub(replacements[key][0], replacements[key][1], value)
 | 
				
			||||||
                service_attributs[attributs[key]] = value
 | 
					                service_attributs[attributs.get(key, key)] = value
 | 
				
			||||||
        ticket = ticket_class.objects.create(
 | 
					        ticket = ticket_class.objects.create(
 | 
				
			||||||
            user=self,
 | 
					            user=self,
 | 
				
			||||||
            attributs=service_attributs,
 | 
					            attributs=service_attributs,
 | 
				
			||||||
@@ -221,7 +221,7 @@ class ReplaceAttributName(models.Model):
 | 
				
			|||||||
    name = models.CharField(
 | 
					    name = models.CharField(
 | 
				
			||||||
        max_length=255,
 | 
					        max_length=255,
 | 
				
			||||||
        verbose_name=_(u"name"),
 | 
					        verbose_name=_(u"name"),
 | 
				
			||||||
        help_text=_(u"name of an attribut to send to the service")
 | 
					        help_text=_(u"name of an attribut to send to the service, use * for all attributes")
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    replace = models.CharField(
 | 
					    replace = models.CharField(
 | 
				
			||||||
        max_length=255,
 | 
					        max_length=255,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user