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

def TranslationService::PlacefulTranslationService::PlacefulTranslationService::manage_addDomainInfo (   self,
  domain,
  path,
  REQUEST = None,
  kw 
)

Add domain info.

Definition at line 302 of file PlacefulTranslationService.py.

                                                :
        """Add domain info."""
        if REQUEST is not None:
            kw.update(REQUEST.form)
        domain_list = list(self._domain_list)
        domain_dict = self._domain_dict.copy()
        if domain_dict.has_key(domain):
            raise KeyError, "Domain %s already exists." % domain
        domain_list.append(domain)
        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,
                                         manage_tabs_message="Added.")

    security.declareProtected(ManageTranslationServices, 'manage_delDomainInfo')
    def manage_delDomainInfo(self, REQUEST=None, **kw):


Generated by  Doxygen 1.6.0   Back to index