PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/indico/MaKaC/fossils/reviewing.py

https://github.com/davidmorrison/indico
Python | 98 lines | 41 code | 23 blank | 34 comment | 2 complexity | 2e8eef7c71e5d53efd2a52557db811ce MD5 | raw file
  1. # -*- coding: utf-8 -*-
  2. ##
  3. ##
  4. ## This file is part of CDS Indico.
  5. ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
  6. ##
  7. ## CDS Indico is free software; you can redistribute it and/or
  8. ## modify it under the terms of the GNU General Public License as
  9. ## published by the Free Software Foundation; either version 2 of the
  10. ## License, or (at your option) any later version.
  11. ##
  12. ## CDS Indico is distributed in the hope that it will be useful, but
  13. ## WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. ## General Public License for more details.
  16. ##
  17. ## You should have received a copy of the GNU General Public License
  18. ## along with CDS Indico; if not, write to the Free Software Foundation, Inc.,
  19. ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.ddd
  20. from MaKaC.common.fossilize import IFossil
  21. from MaKaC.common.Conversion import Conversion
  22. from MaKaC.fossils.user import IAvatarMinimalFossil
  23. class IJudgementFossil(IFossil):
  24. """
  25. Fossil for the Judgement object
  26. """
  27. def isSubmitted(self):
  28. pass
  29. def getJudgement(self):
  30. pass
  31. class IReviewFossil(IFossil):
  32. """
  33. Fossil for the review object
  34. """
  35. def getRefereeDueDate(self):
  36. pass
  37. getRefereeDueDate.convert = Conversion.datetime
  38. def getRefereeJudgement(self):
  39. pass
  40. getRefereeJudgement.result = IJudgementFossil
  41. def getReviewingStatus(self):
  42. pass
  43. class IReviewManagerFossil(IFossil):
  44. """
  45. Fossil for review manager
  46. """
  47. def getReferee(self):
  48. pass
  49. getReferee.convert = lambda r: r and r.getStraightFullName()
  50. def getEditor(self):
  51. pass
  52. getEditor.convert = lambda e: e and e.getStraightFullName()
  53. def getReviewersList(self):
  54. pass
  55. getReviewersList.result = IAvatarMinimalFossil
  56. def getLastReview(self):
  57. pass
  58. getLastReview.result = IReviewFossil
  59. class IReviewingQuestionFossil(IFossil):
  60. """
  61. Fossil for the reviewing questions
  62. """
  63. def getId(self):
  64. pass
  65. def getText(self):
  66. pass
  67. class IReviewingStatusFossil(IFossil):
  68. """
  69. Fossil for the reviewing status
  70. """
  71. def getId(self):
  72. pass
  73. def getName(self):
  74. pass
  75. getName.name = 'text'