##// END OF EJS Templates
license: Add license header to new files.
johbo -
r44:a28ef8f0 default
parent child Browse files
Show More
@@ -1,14 +1,31 b''
1 # Copyright (C) 2016-2016 RhodeCode GmbH
2 #
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU Affero General Public License, version 3
5 # (only), as published by the Free Software Foundation.
6 #
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 # GNU General Public License for more details.
11 #
12 # You should have received a copy of the GNU Affero General Public License
13 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 #
15 # This program is dual-licensed. If you wish to learn more about the
16 # RhodeCode Enterprise Edition, including its added features, Support services,
17 # and proprietary license terms, please see https://rhodecode.com/licenses/
1
18
2 from zope.interface import implementer
19 from zope.interface import implementer
3 from rhodecode.interfaces import IUserRegistered
20 from rhodecode.interfaces import IUserRegistered
4
21
5
22
6 @implementer(IUserRegistered)
23 @implementer(IUserRegistered)
7 class UserRegistered(object):
24 class UserRegistered(object):
8 """
25 """
9 An instance of this class is emitted as an :term:`event` whenever a user
26 An instance of this class is emitted as an :term:`event` whenever a user
10 account is registered.
27 account is registered.
11 """
28 """
12 def __init__(self, user, session):
29 def __init__(self, user, session):
13 self.user = user
30 self.user = user
14 self.session = session
31 self.session = session
@@ -1,11 +1,28 b''
1 # Copyright (C) 2016-2016 RhodeCode GmbH
2 #
3 # This program is free software: you can redistribute it and/or modify
4 # it under the terms of the GNU Affero General Public License, version 3
5 # (only), as published by the Free Software Foundation.
6 #
7 # This program is distributed in the hope that it will be useful,
8 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 # GNU General Public License for more details.
11 #
12 # You should have received a copy of the GNU Affero General Public License
13 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 #
15 # This program is dual-licensed. If you wish to learn more about the
16 # RhodeCode Enterprise Edition, including its added features, Support services,
17 # and proprietary license terms, please see https://rhodecode.com/licenses/
1
18
2 from zope.interface import Attribute, Interface
19 from zope.interface import Attribute, Interface
3
20
4
21
5 class IUserRegistered(Interface):
22 class IUserRegistered(Interface):
6 """
23 """
7 An event type that is emitted whenever a new user registers a user
24 An event type that is emitted whenever a new user registers a user
8 account.
25 account.
9 """
26 """
10 user = Attribute('The user object.')
27 user = Attribute('The user object.')
11 session = Attribute('The session while processing the register form post.')
28 session = Attribute('The session while processing the register form post.')
General Comments 0
You need to be logged in to leave comments. Login now