Logo Search packages:      
Sourcecode: zope-cps-translationservice version File versions  Download package

def TranslationService::PlacefulTranslationService::PlacefulTranslationService::manage_setDomainInfo (   self,
  REQUEST = None,

Set domain info.

Definition at line 274 of file PlacefulTranslationService.py.

00274                                                       :
        """Set domain info."""
        if REQUEST is not None:
        domain_list = list(self._domain_list)
        domain_dict = self._domain_dict.copy()
        for index in range(len(domain_list)):
            domainname = 'domain_%d' % index
            pathname = 'path_%d' % index
            domain = domain_list[index]
            if domain is not None:
                newdomain = kw[domainname]
                if domain != newdomain:
                    domain_list[index] = newdomain
                    domain_dict[newdomain] = domain_dict[domain]
                    del domain_dict[domain]
                domain = newdomain
            path = kw[pathname]
            domain_dict[domain] = path
        # Trigger persistence.
        self._domain_list = tuple(domain_list)
        self._domain_dict = domain_dict
        if REQUEST is not None:
            return self.manage_configure(self, REQUEST,

    security.declareProtected(ManageTranslationServices, 'manage_addDomainInfo')
    def manage_addDomainInfo(self, domain, path,

Generated by  Doxygen 1.6.0   Back to index