Changeset 0d29a2 in indico
- Timestamp:
- 02/04/10 18:43:18 (3 years ago)
- Branches:
- master, burotel, hello-world-walkthrough, ipv6, new-webex, prov-dual-interface, v0.97-series, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, 0da0c1403bae8e51d8229f460181c71b9e6dda72
- Children:
- 8f6f66, f3d0f4
- Parents:
- 9161a3
- git-author:
- Pedro Ferreira <jose.pedro.ferreira@…> (02/04/10 18:41:32)
- git-committer:
- Pedro Ferreira <jose.pedro.ferreira@…> (02/04/10 18:43:18)
- Location:
- indico/MaKaC
- Files:
-
- 3 edited
-
conference.py (modified) (5 diffs)
-
webinterface/materialFactories.py (modified) (4 diffs)
-
webinterface/rh/conferenceBase.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/conference.py
rf6f550 r0d29a2 401 401 recMat.recover() 402 402 self.notifyModification() 403 404 def getMaterialRegistry(self): 405 """ 406 Return the correct material registry for this type 407 """ 408 from MaKaC.webinterface.materialFactories import CategoryMFRegistry 409 return CategoryMFRegistry 403 410 404 411 def getMaterialById( self, matId ): … … 4045 4052 self.notifyModification() 4046 4053 4054 def getMaterialRegistry(self): 4055 """ 4056 Return the correct material registry for this type 4057 """ 4058 from MaKaC.webinterface.materialFactories import ConfMFRegistry 4059 return ConfMFRegistry 4060 4047 4061 def getMaterialById( self, matId ): 4048 4062 if matId.lower() == 'paper': … … 6485 6499 self.notifyModification() 6486 6500 6501 def getMaterialRegistry(self): 6502 """ 6503 Return the correct material registry for this type 6504 """ 6505 from MaKaC.webinterface.materialFactories import SessionMFRegistry 6506 return SessionMFRegistry 6507 6487 6508 def getMaterialById( self, matId ): 6488 6509 if matId.lower() == 'minutes': … … 9216 9237 self.notifyModification() 9217 9238 9239 def getMaterialRegistry(self): 9240 """ 9241 Return the correct material registry for this type 9242 """ 9243 from MaKaC.webinterface.materialFactories import ContribMFRegistry 9244 return ContribMFRegistry 9245 9218 9246 def getMaterialById( self, matId ): 9219 9247 if matId.lower() == 'paper': … … 10483 10511 self.notifyModification() 10484 10512 10513 def getMaterialRegistry(self): 10514 """ 10515 Return the correct material registry for this type 10516 """ 10517 from MaKaC.webinterface.materialFactories import SubContributionMFRegistry 10518 return SubContributionMFRegistry 10519 10485 10520 def getMaterialById( self, matId ): 10486 10521 if matId.lower() == 'paper': -
indico/MaKaC/webinterface/materialFactories.py
rdebb1b r0d29a2 20 20 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 21 21 22 import MaKaC.conference as conference 22 23 import MaKaC.webinterface.urlHandlers as urlHandlers 23 24 import MaKaC.webinterface.wcomponents as wcomponents 24 import MaKaC.conference as conference25 25 from MaKaC.common.Configuration import Config 26 26 from MaKaC.i18n import _ … … 399 399 for factory in cls._registry.values(): 400 400 if factory.appliesToMaterial(mat): 401 return factory 401 return factory 402 402 403 403 … … 409 409 VideoFactory._id: VideoFactory, \ 410 410 PosterFactory._id: PosterFactory } 411 412 411 413 412 class SessionMFRegistry( MaterialFactoryRegistry ): … … 422 421 PosterFactory._id: PosterFactory } 423 422 424 423 class CategoryMFRegistry( ContribMFRegistry ): 424 pass 425 426 class SubContributionMFRegistry( ContribMFRegistry ): 427 pass -
indico/MaKaC/webinterface/rh/conferenceBase.py
r0f1000 r0d29a2 282 282 """ 283 283 284 mf = materialFactories.ContribMFRegistry.getById(self._materialId)284 mf = self._target.getMaterialRegistry().getById(self._materialId) 285 285 286 286 material = mf.get(self._target)
Note: See TracChangeset
for help on using the changeset viewer.
