/indico/MaKaC/fossils/user.py
Python | 68 lines | 19 code | 18 blank | 31 comment | 0 complexity | 5f4614ad71ae5fc9caeaf753aca63ef4 MD5 | raw file
- # -*- coding: utf-8 -*-
- ##
- ## This file is part of CDS Indico.
- ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 CERN.
- ##
- ## CDS Indico is free software; you can redistribute it and/or
- ## modify it under the terms of the GNU General Public License as
- ## published by the Free Software Foundation; either version 2 of the
- ## License, or (at your option) any later version.
- ##
- ## CDS Indico is distributed in the hope that it will be useful, but
- ## WITHOUT ANY WARRANTY; without even the implied warranty of
- ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ## General Public License for more details.
- ##
- ## You should have received a copy of the GNU General Public License
- ## along with CDS Indico; if not, write to the Free Software Foundation, Inc.,
- ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
- from MaKaC.common.fossilize import IFossil
- class IGroupFossil(IFossil):
- def getId(self):
- """ Group id """
- def getName(self):
- """ Group name """
- def getEmail(self):
- """ Group email """
- class IAvatarFossil(IFossil):
- def getId(self):
- """ Avatar id"""
- def getStraightFullName(self):
- """ Avatar full name, the one usually displayed """
- getStraightFullName.name = "name"
- def getEmail( self ):
- """ Avatar email """
- def getFirstName(self):
- """ Avatar first name """
- def getFamilyName(self):
- """ Avatar family name """
- def getTitle( self ):
- """ Avatar name title (Mr, Mrs..) """
- def getOrganisation( self ):
- """ Avatar organisation / affiliation """
- getOrganisation.name = "affiliation"
- class IAvatarAllDetailsFossil(IAvatarFossil):
- def getAddress( self ):
- """ Avatar address """
- def getTelephone( self ):
- """ Avatar telephone """
- def getFax(self):
- """ Avatar fax """