~osomon/moovida/upicek_language_option_screen

« back to all changes in this revision

Viewing changes to elisa-plugins/elisa/plugins/base/models/image.py

  • Committer: Philippe Normand
  • Date: 2008-10-13 15:35:14 UTC
  • mfrom: (789.1.6 elisa_opt_rotate)
  • Revision ID: philippe@fluendo.com-20081013153514-8bwwm2imn9xgb02e
Show the rotation ribbon control only when rotation is doable (e.g, for local files referenced in database)

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
    @ivar orientation: orientation of the image, its meaning is the same as
89
89
                       the orienation EXIF field
90
90
    @type orientation: one of the keys of C{IMAGE_ORIENTATIONS}
 
91
    @ivar can_rotate:  can the image represented by the model be rotated?
 
92
    @type can_rotate:  C{bool}
91
93
    """
92
94
 
93
95
    def __init__(self):
97
99
        super(ImageModel, self).__init__()
98
100
        self.references = []
99
101
        self.orientation = ROTATED_0
 
102
        self.can_rotate = True