1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
#
# Copyright (C) 2010 Wikkid Developers.
#
# This software is licensed under the GNU Affero General Public License
# version 3 (see the file LICENSE).
"""Interfaces relating to users of the wiki."""
from zope.interface import Attribute, Interface
class IUserFactory(Interface):
"""A factory to create `IUser`s."""
def create(request):
"""Returns an `IUser`."""
class IUser(Interface):
"""Information about the editing user.
Note: probably implementations
- test identity
- bzr identity
- anonymous identity
- launchpad identity
- session identity
"""
email = Attribute("The user's email adderss.")
display_name = Attribute(
"The name that is shown through the user interface.")
committer_id = Attribute("The user's name and email address.")
|