Logo Search packages:      
Sourcecode: zope-i18nfolder version File versions

def zope-i18nfolder-2.02::I18NFolder::I18NFolder::edit (   self,
  title = '',
  description = '',
  lang_code = None,
  REQUEST = {} 
)

edit(self, title = '', description='', lang_code=None, REQUEST = {}) => object modification method

Definition at line 103 of file I18NFolder.py.

00103                                                                          {}):
        """
        edit(self, title = '', description='', lang_code=None, REQUEST = {}) => object modification method
        """
        
        # Get language code
        lang = lang_code
        
        if not lang:
            lang = self.getDefaultLanguage()
        
        # Build language object (title, description)
        language_object = self.getLanguageObject(lang)
        language_object['title'] = title
        language_object['description'] = description
        self.folder_languages[lang] = language_object
        
        # for persistency
        self.folder_languages = self.folder_languages

        if REQUEST is not None:
            return self.folder_contents(self, REQUEST, portal_status_message='Updated folder.')
        

    # Delete a folder language
    security.declareProtected(I18NFolder_editPermission, 'deleteFolderLanguages')


Generated by  Doxygen 1.6.0   Back to index