Commit 4f4a8ca5 authored by Nicolas Chauvat's avatar Nicolas Chauvat
Browse files

stable is now 0.3.x

--HG--
branch : stable
......@@ -5,3 +5,7 @@ ddff1a3f5cd300656e99f3142eab7893b7f33199 cubicweb-forgotpwd-version-0.2.0
efd6fc25d255a2a3fbe8aeb89121f44f6a297b69 cubicweb-forgotpwd-debian-version-0.2.0-1
19ea4ec2c3325165e71dccb55bb9077f6a24cf01 cubicweb-forgotpwd-version-0.2.1
ee818e5326db7397d485a64f76644765c4652df8 cubicweb-forgotpwd-debian-version-0.2.1-1
7a57792d8b02f09332ef4af099d1873d8b790406 cubicweb-forgotpwd-version-0.3.0
d2e13405b9d7144ee7ac920da7f4c30d99086bac cubicweb-forgotpwd-debian-version-0.3.0-1
19608e706575ef9a94fb9cc39acadb16c3fde945 cubicweb-forgotpwd-version-0.3.1
9125bf2e856482c9095891409c8ee0292fe3b83c cubicweb-forgotpwd-debian-version-0.3.1-1
......@@ -4,17 +4,18 @@
modname = 'forgotpwd'
distname = 'cubicweb-forgotpwd'
numversion = (0, 2, 1)
numversion = (0, 3, 1)
version = '.'.join(str(num) for num in numversion)
license = 'LGPL'
copyright = '''Copyright (c) 2010 LOGILAB S.A. (Paris, FRANCE).
copyright = '''Copyright (c) 2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
http://www.logilab.fr -- mailto:contact@logilab.fr'''
author = 'LOGILAB S.A. (Paris, FRANCE)'
author_email = 'contact@logilab.fr'
short_desc = 'password recovery component for the CubicWeb framework'
description = 'password recovery component for the CubicWeb framework'
short_desc = description
long_desc = """\
Summary
-------
......@@ -79,10 +80,9 @@ for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'wdoc'
# them to be included in the debian package
__depends_cubes__ = {}
__depends__ = {'cubicweb': '>= 3.6.1',
__depends__ = {'cubicweb': '>= 3.9.0',
'python-crypto': None,
'PIL': None,
}
__use__ = tuple(__depends_cubes__)
__recommend__ = ()
# -*- shell-script -*-
###############################################################################
#
# put here information about external resources used by your components,
# or to overides existing external resources configuration
#
###############################################################################
# CSS stylesheets to include in HTML headers
# uncomment the line below to use template specific stylesheet
# STYLESHEETS = DATADIR/cubes.forgotpwd.css
cubicweb-forgotpwd (0.3.1-1) unstable; urgency=low
* new upstream release
-- Nicolas Chauvat <nicolas.chauvat@logilab.fr> Thu, 22 Jul 2010 11:06:24 +0200
cubicweb-forgotpwd (0.3.0-1) unstable; urgency=low
* new upstream release
-- Nicolas Chauvat <nicolas.chauvat@logilab.fr> Tue, 20 Jul 2010 20:23:25 +0200
cubicweb-forgotpwd (0.2.1-1) unstable; urgency=low
* new upstream release
......
......@@ -2,14 +2,13 @@ Source: cubicweb-forgotpwd
Section: web
Priority: optional
Maintainer: LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Build-Depends: debhelper (>= 5.0.37.1), python (>=2.4), python-dev (>=2.4)
Build-Depends: debhelper (>= 5.0.37.1), python (>= 2.4), python-dev (>= 2.4)
Standards-Version: 3.8.0
Homepage: http://www.cubicweb.org/project/cubicweb-forgotpwd
Package: cubicweb-forgotpwd
Architecture: all
Depends: cubicweb-common (>= 3.6.1), python-crypto, python-imaging
Depends: cubicweb-common (>= 3.9.0), python-crypto, python-imaging
Description: password recovery component for the CubicWeb framework
This CubicWeb component provides password recovery functionnality.
.
......
......@@ -3,7 +3,7 @@
from datetime import datetime
from cubicweb.selectors import implements
from cubicweb.selectors import is_instance
from cubicweb.server import hook
from cubicweb.sobjects.notification import NotificationView
......@@ -32,7 +32,7 @@ class ServerStartupHook(hook.Hook):
class PasswordResetNotification(NotificationView):
__regid__ = 'notif_after_add_entity'
__select__ = implements('Fpasswd')
__select__ = is_instance('Fpasswd')
content = _('''There was recently a request to change the password on your account.
If you requested this password change, please set a new password by following
......@@ -52,7 +52,7 @@ See you soon on %(base_url)s !
def recipients(self):
fpasswd = self.cw_rset.get_entity(self.cw_row or 0, self.cw_col or 0)
user = fpasswd.reverse_has_fpasswd[0]
return [(user.get_email(), user.property_value('ui.language'))]
return [(user.cw_adapt_to('IEmailable').get_email(), user.property_value('ui.language'))]
def context(self, **kwargs):
return {
......
sync_schema_props_perms('has_fpasswd')
......@@ -26,3 +26,4 @@ class has_fpasswd(RelationDefinition):
}
subject = 'CWUser'
object = 'Fpasswd'
cardinality = '*1'
......@@ -3,12 +3,12 @@ options = (
{'type' : 'int',
'default': 30,
'help': 'Forgot password link life time validity',
'group': 'forgotpwd', 'inputlevel': 2,
'group': 'forgotpwd', 'level': 2,
}),
('forgotpwd-cypher-seed',
{'type' : 'string',
'default': u"this is my dummy forgotpwd cypher seed",
'help': 'seed used to cypher validation key sent in forgot password email link',
'group': 'forgotpwd', 'inputlevel': 2,
'group': 'forgotpwd', 'level': 2,
}),
)
......@@ -8,14 +8,14 @@
from logilab.common.testlib import TestCase, unittest_main
class DefaultTC(TestCase):
def test_something(self):
self.skip('this cube has no test')
#class DefaultTC(TestCase):
# def test_something(self):
# self.skip('this cube has no test')
## uncomment the import if you want to activate automatic test for your
## template
# from cubicweb.devtools.testlib import AutomaticWebTest
from cubicweb.devtools.testlib import AutomaticWebTest
if __name__ == '__main__':
......
STYLESHEETS = [data('cubicweb.forgotpwd.css')]
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment