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

def zope-photo-1.2.3::Photo::Photo::manage_editPhoto (   self,
  file = '',
  REQUEST = None 

Changes Photo information.

Definition at line 499 of file Photo.py.

00499                                                      :
        """Changes Photo information."""
        if hasattr(self, 'wl_isLocked') and self.wl_isLocked():
            raise ResourceLockedError, "Photo is locked via WebDAV."
        if file and file.filename:
            self._original.manage_upload(file, self.content_type())
            if self._validImage():
        if REQUEST is not None:
            return self.manage_editPhotoForm(REQUEST,
                manage_tabs_message='Photo information updated.')

    security.declareProtected('View management screens', 'manage_editSettingsForm')
    manage_editSettingsForm = DTMLFile('dtml/editSettingsForm', globals())

Generated by  Doxygen 1.6.0   Back to index