Example #1
0
 def getThumbnailPhotoURL(self):
     """ URL of the tip photo of the room """
     from MaKaC.webinterface.urlHandlers import UHRoomPhotoSmall
     if self._doGetPhotoId():
         photoId = self._doGetPhotoId()
         return str(UHRoomPhotoSmall.getURL(photoId))
     else:
         photoId = "NoPhoto"
         return str(UHRoomPhotoSmall.getURL(photoId, "png"))
Example #2
0
 def getSmallPhotoURL(self):
     # Used to send photos via Python script
     #from MaKaC.webinterface.urlHandlers import UHSendRoomPhoto
     #return UHSendRoomPhoto.getURL( self.photoId, small = True )
     from MaKaC.webinterface.urlHandlers import UHRoomPhotoSmall
     return UHRoomPhotoSmall.getURL(self.photoId)
Example #3
0
 def getSmallPhotoURL( self ):
     # Used to send photos via Python script
     #from MaKaC.webinterface.urlHandlers import UHSendRoomPhoto
     #return UHSendRoomPhoto.getURL( self.photoId, small = True )
     from MaKaC.webinterface.urlHandlers import UHRoomPhotoSmall
     return UHRoomPhotoSmall.getURL( self.photoId )