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"))
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)
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 )