Changeset da9a8d in indico


Ignore:
Timestamp:
02/24/10 13:47:26 (3 years ago)
Author:
Pedro Ferreira <jose.pedro.ferreira@…>
Branches:
prov-dual-interface
Children:
254b0f
Parents:
d5810d (diff), ff2a50 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'v0.97-series' into prov-dual-interface

Location:
indico/MaKaC
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/conference.py

    ra81ed6 rff2a50  
    1168911689        return self.description 
    1169011690 
    11691     def archive( self, repository=None ): 
     11691    def archive( self, repository=None, forcedFileId=None ): 
    1169211692        """performs necessary operations to ensure the archiving of the 
    1169311693            resource. By default is doing nothing as the persistence of the 
  • indico/MaKaC/fileRepository.py

    ra81ed6 rff2a50  
    161161        volume = minfo.getArchivingVolume() 
    162162        destPath = os.path.join( self.__getRepositoryPath(), volume, interPath, id ) 
    163         os.makedirs( destPath ) 
     163 
     164        if forcedFileId == None: 
     165            os.makedirs( destPath ) 
     166 
    164167        destPath = os.path.join( destPath, newFile.getFileName() ) 
    165168        relativePath = os.path.join( volume, interPath, id, newFile.getFileName()) 
    166         try: 
    167             shutil.copyfile( newFile.getFilePath(), destPath ) 
    168             self.__files[id] = relativePath 
    169             newFile.setArchivedId( self, id ) 
    170         except IOError, e: 
    171             raise Exception( _("Couldn't archive file %s to %s")%( newFile.getFilePath(), destPath ) ) 
     169 
     170        if forcedFileId == None: 
     171            try: 
     172                shutil.copyfile( newFile.getFilePath(), destPath ) 
     173            except IOError, e: 
     174                raise Exception( _("Couldn't archive file %s to %s")%( newFile.getFilePath(), destPath ) ) 
     175 
     176        self.__files[id] = relativePath 
     177        newFile.setArchivedId( self, id ) 
    172178 
    173179        Logger.get('storage').info("stored resource %s (%s) at %s" % (id, newFile.getFileName(), os.path.join(volume, interPath))) 
  • indico/MaKaC/webinterface/tpls/Header.tpl

    r37b248 rf65b26  
    11<% declareTemplate(newTemplateStyle = True) %> 
    22 
     3<% includeTpl('InterfaceSwitcher') %> 
    34<% includeTpl('Announcement') %> 
    45 
  • indico/MaKaC/webinterface/tpls/RoomBookingRoomCalendar.tpl

    r9033fd r6a92ac  
    33Room Calendar is composed of day rows ( RoomBookingRoomCalendar*DayRow* ) 
    44Day row is composed of of bars, showing particular reservations ( RoomBookingRoomCalendar*Bar* ) 
    5 Calendar 1-----* DayRow 1-----* Bar  
     5Calendar 1-----* DayRow 1-----* Bar 
    66--> 
    77 
     
    1212    <p style="margin-left: 10px;"> 
    1313        <% if thereAreConflicts: %> 
    14             <span style="color: Red; font-weight: bold;"><%= conflictsNumber %>  <%= _("conflict(s) with other bookings")%></span><br /><br /> 
     14            <span style="color: Red; font-weight: bold;"><%= conflictsNumber %>&nbsp;<%= _("conflict(s) with other bookings")%></span><br /><br /> 
    1515            <% includeTpl( 'RoomBookingConflicts' ) %> 
    1616        <% end %> 
     
    8181                        continue; 
    8282                    // Get parent position 
    83                     dayDiv = barDiv.parentNode  
    84                     dayPos = findPos( dayDiv )  
     83                    dayDiv = barDiv.parentNode 
     84                    dayPos = findPos( dayDiv ) 
    8585                    dayX = dayPos[0] 
    8686                    dayY = dayPos[1] 
  • indico/MaKaC/webinterface/urlHandlers.py

    r9f45f3 rf4148d  
    45024502    def getDisplayUH(cls, klazz, type=""): 
    45034503        return cls.displayUHs.get("%s%s"%(klazz.__name__, type), None) 
    4504  
    4505 # Testing helloworld 
    4506 class UHHelloWorld(URLHandler): 
    4507     _relativeURL = "helloWorld.py" 
    4508  
    4509     @classmethod 
    4510     def getURL( cls, name=None ): 
    4511         url = cls._getURL() 
    4512         if name != None: 
    4513             url.addParam("name", name) 
    4514         return url 
Note: See TracChangeset for help on using the changeset viewer.