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

/indico/MaKaC/fossils/user.py

https://github.com/flannery/indico-flannery
Python | 68 lines | 19 code | 18 blank | 31 comment | 0 complexity | 5f4614ad71ae5fc9caeaf753aca63ef4 MD5 | raw file
  1. # -*- coding: utf-8 -*-
  2. ##
  3. ## This file is part of CDS Indico.
  4. ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
  5. ##
  6. ## CDS Indico is free software; you can redistribute it and/or
  7. ## modify it under the terms of the GNU General Public License as
  8. ## published by the Free Software Foundation; either version 2 of the
  9. ## License, or (at your option) any later version.
  10. ##
  11. ## CDS Indico is distributed in the hope that it will be useful, but
  12. ## WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. ## General Public License for more details.
  15. ##
  16. ## You should have received a copy of the GNU General Public License
  17. ## along with CDS Indico; if not, write to the Free Software Foundation, Inc.,
  18. ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  19. from MaKaC.common.fossilize import IFossil
  20. class IGroupFossil(IFossil):
  21. def getId(self):
  22. """ Group id """
  23. def getName(self):
  24. """ Group name """
  25. def getEmail(self):
  26. """ Group email """
  27. class IAvatarFossil(IFossil):
  28. def getId(self):
  29. """ Avatar id"""
  30. def getStraightFullName(self):
  31. """ Avatar full name, the one usually displayed """
  32. getStraightFullName.name = "name"
  33. def getEmail( self ):
  34. """ Avatar email """
  35. def getFirstName(self):
  36. """ Avatar first name """
  37. def getFamilyName(self):
  38. """ Avatar family name """
  39. def getTitle( self ):
  40. """ Avatar name title (Mr, Mrs..) """
  41. def getOrganisation( self ):
  42. """ Avatar organisation / affiliation """
  43. getOrganisation.name = "affiliation"
  44. class IAvatarAllDetailsFossil(IAvatarFossil):
  45. def getAddress( self ):
  46. """ Avatar address """
  47. def getTelephone( self ):
  48. """ Avatar telephone """
  49. def getFax(self):
  50. """ Avatar fax """