Changeset da9a8d in indico
- Timestamp:
- 02/24/10 13:47:26 (3 years ago)
- 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. - Location:
- indico/MaKaC
- Files:
-
- 1 added
- 5 edited
-
conference.py (modified) (1 diff)
-
fileRepository.py (modified) (1 diff)
-
webinterface/tpls/Header.tpl (modified) (1 diff)
-
webinterface/tpls/InterfaceSwitcher.tpl (added)
-
webinterface/tpls/RoomBookingRoomCalendar.tpl (modified) (3 diffs)
-
webinterface/urlHandlers.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/conference.py
ra81ed6 rff2a50 11689 11689 return self.description 11690 11690 11691 def archive( self, repository=None ):11691 def archive( self, repository=None, forcedFileId=None ): 11692 11692 """performs necessary operations to ensure the archiving of the 11693 11693 resource. By default is doing nothing as the persistence of the -
indico/MaKaC/fileRepository.py
ra81ed6 rff2a50 161 161 volume = minfo.getArchivingVolume() 162 162 destPath = os.path.join( self.__getRepositoryPath(), volume, interPath, id ) 163 os.makedirs( destPath ) 163 164 if forcedFileId == None: 165 os.makedirs( destPath ) 166 164 167 destPath = os.path.join( destPath, newFile.getFileName() ) 165 168 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 ) 172 178 173 179 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 1 1 <% declareTemplate(newTemplateStyle = True) %> 2 2 3 <% includeTpl('InterfaceSwitcher') %> 3 4 <% includeTpl('Announcement') %> 4 5 -
indico/MaKaC/webinterface/tpls/RoomBookingRoomCalendar.tpl
r9033fd r6a92ac 3 3 Room Calendar is composed of day rows ( RoomBookingRoomCalendar*DayRow* ) 4 4 Day row is composed of of bars, showing particular reservations ( RoomBookingRoomCalendar*Bar* ) 5 Calendar 1-----* DayRow 1-----* Bar 5 Calendar 1-----* DayRow 1-----* Bar 6 6 --> 7 7 … … 12 12 <p style="margin-left: 10px;"> 13 13 <% 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 %> <%= _("conflict(s) with other bookings")%></span><br /><br /> 15 15 <% includeTpl( 'RoomBookingConflicts' ) %> 16 16 <% end %> … … 81 81 continue; 82 82 // Get parent position 83 dayDiv = barDiv.parentNode 84 dayPos = findPos( dayDiv ) 83 dayDiv = barDiv.parentNode 84 dayPos = findPos( dayDiv ) 85 85 dayX = dayPos[0] 86 86 dayY = dayPos[1] -
indico/MaKaC/webinterface/urlHandlers.py
r9f45f3 rf4148d 4502 4502 def getDisplayUH(cls, klazz, type=""): 4503 4503 return cls.displayUHs.get("%s%s"%(klazz.__name__, type), None) 4504 4505 # Testing helloworld4506 class UHHelloWorld(URLHandler):4507 _relativeURL = "helloWorld.py"4508 4509 @classmethod4510 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.
