PageRenderTime 54ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 0ms

/indico/MaKaC/fossils/subcontribution.py

https://repo.or.cz/cds-indico.git
Python | 79 lines | 40 code | 24 blank | 15 comment | 0 complexity | eddabe595c38edcc298df0326ae604ef MD5 | raw file
Possible License(s): GPL-3.0, LGPL-2.1
  1. # This file is part of Indico.
  2. # Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN).
  3. #
  4. # Indico is free software; you can redistribute it and/or
  5. # modify it under the terms of the GNU General Public License as
  6. # published by the Free Software Foundation; either version 3 of the
  7. # License, or (at your option) any later version.
  8. #
  9. # Indico is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. # General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with Indico; if not, see <http://www.gnu.org/licenses/>.
  16. from MaKaC.common.fossilize import IFossil
  17. from MaKaC.common.Conversion import Conversion
  18. class ISubContributionFossil(IFossil):
  19. def getId(self):
  20. pass
  21. def getParent(self):
  22. pass
  23. getParent.convert = lambda p: p.getId()
  24. getParent.name = 'parentId'
  25. def getTitle(self):
  26. pass
  27. def getDuration(self):
  28. pass
  29. getDuration.convert = Conversion.duration
  30. class ISubContribParticipationFossil(IFossil):
  31. def getId(self):
  32. pass
  33. def getFullName(self):
  34. pass
  35. class ISubContribParticipationFullFossil(ISubContribParticipationFossil):
  36. def getTitle(self):
  37. pass
  38. def getFirstName(self):
  39. pass
  40. def getFamilyName(self):
  41. pass
  42. def getAffiliation(self):
  43. pass
  44. def getEmail(self):
  45. pass
  46. def getAddress(self):
  47. pass
  48. def getPhone(self):
  49. pass
  50. def getFax(self):
  51. pass
  52. class ISubContributionWithSpeakersFossil(ISubContributionFossil):
  53. def getSpeakerList(self):
  54. pass
  55. getSpeakerList.result = ISubContribParticipationFossil