Commit d81dc43c authored by Charles Hebert's avatar Charles Hebert
Browse files

0.1.0

parents
include *.py
recursive-include data external_resources *.gif *.png *.css *.ico *.js
recursive-include i18n *.pot *.po
recursive-include migration *.py
"""cubicweb-forgotpwd application package
password recovery cube
"""
# pylint: disable-msg=W0622
"""cubicweb-forgotpwd application packaging information"""
modname = 'forgotpwd'
distname = 'cubicweb-forgotpwd'
numversion = (0, 1, 0)
version = '.'.join(str(num) for num in numversion)
license = 'LCL'
copyright = '''Copyright (c) 2010 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr -- mailto:contact@logilab.fr'''
author = 'LOGILAB S.A. (Paris, FRANCE)'
author_email = 'contact@logilab.fr'
short_desc = 'password recovery cube'
long_desc = '''password recovery cube'''
web = 'http://www.cubicweb.org/project/%s' % distname
from os import listdir as _listdir
from os.path import join, isdir, exists
from glob import glob
THIS_CUBE_DIR = join('share', 'cubicweb', 'cubes', modname)
def listdir(dirpath):
return [join(dirpath, fname) for fname in _listdir(dirpath)
if fname[0] != '.' and not fname.endswith('.pyc')
and not fname.endswith('~')
and not isdir(join(dirpath, fname))]
data_files = [
# common files
[THIS_CUBE_DIR, [fname for fname in glob('*.py') if fname != 'setup.py']],
]
# check for possible extended cube layout
for dname in ('entities', 'views', 'sobjects', 'hooks', 'schema', 'data', 'i18n', 'migration'):
if isdir(dname):
data_files.append([join(THIS_CUBE_DIR, dname), listdir(dname)])
# Note: here, you'll need to add subdirectories if you want
# them to be included in the debian package
__depends_cubes__ = {'registration': '>= 0.2.1'}
__depends__ = {'cubicweb': '>= 3.5.0'}
__use__ = ()
__recommend__ = ()
/* template specific CSS */
div#loginContent a {
color:black;
}
div#loginContent a:hover {
color:gray;
}
\ No newline at end of file
// This contains template-specific javascript
\ No newline at end of file
# -*- 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.1.0-1) unstable; urgency=low
* initial release
--
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)
Standards-Version: 3.8.0
Package: cubicweb-forgotpwd
Architecture: all
Depends: cubicweb-common (>= 3.5.11)
Description: password recovery cube
CubicWeb is a semantic web application framework.
.
password recovery cube
.
This package will install all the components you need to run the
cubicweb-forgotpwd application (cube :)..
Upstream Author:
LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr>
Copyright:
Copyright (c) 2010 LOGILAB S.A. (Paris, FRANCE).
http://www.logilab.fr -- mailto:contact@logilab.fr
#!/bin/sh -e
delete_pyo_pyc () {
find /usr/share/cubicweb/cubes/forgotpwd -name "*.pyc" | xargs rm -f
find /usr/share/cubicweb/cubes/forgotpwd -name "*.pyo" | xargs rm -f
}
case "$1" in
failed-upgrade|abort-install|abort-upgrade|disappear)
;;
upgrade)
delete_pyo_pyc
;;
remove)
delete_pyo_pyc
;;
purge)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
esac
#DEBHELPER#
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build: build-stamp
build-stamp:
dh_testdir
python setup.py -q build
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
rm -rf build
find . -name "*.pyc" | xargs rm -f
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs -i
python setup.py -q install --no-compile --prefix=debian/cubicweb-forgotpwd/usr/
# remove generated .egg-info file
rm -rf debian/cubicweb-forgotpwd/usr/lib/python*
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_install -i
dh_installchangelogs -i
dh_installexamples -i
dh_installdocs -i
dh_installman -i
dh_link -i
dh_compress -i -X.py -X.ini -X.xml -Xtest
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture-dependent files here.
binary-arch:
binary: binary-indep
.PHONY: build clean binary-arch binary-indep binary
"""this contains the cube-specific entities' classes
:organization: Logilab
:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses
"""
""" this module contains server side hooks for cleaning forgotpwd table
"""
from datetime import datetime
from cubicweb.server import hooksmanager
class ServerStartupHook(hooksmanager.Hook):
""" Delete old revocation key
"""
events = ('server_startup',)
def call(self, repo):
def cleaning_revocation_key(repo):
session = repo.internal_session()
session.execute('DELETE Fpasswd F WHERE F revocation_date < %(date)s', {'date': datetime.now()})
session.commit()
session.close()
repo.looping_task(60 * 60, cleaning_revocation_key, repo)
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#, python-format
msgid ""
"\n"
" There was recently a request to change the password on your "
"account.\n"
" If you requested this password change, please set a new password by "
"following\n"
" the link below:\n"
"\n"
" %(url)s\n"
"\n"
" If you do not want to change your password, you may ignore this "
"message. The\n"
" link expires in %(limit)d minutes.\n"
"\n"
" See you soon on %(base_url)s !\n"
" "
msgstr ""
msgid ""
"An email has been sent, follow instructions in there to change your password."
msgstr ""
msgid "An error occured, this email is unknown."
msgstr ""
msgid "Forgot your password ?"
msgstr ""
msgid "Forgotten your password ?"
msgstr ""
# schema pot file, generated on 2010-01-21 16:01:14
#
# singular and plural forms for each entity type
msgid "Fpasswd"
msgstr ""
msgid "Fpasswd_plural"
msgstr ""
msgid "Invalid link. Please try again."
msgstr ""
msgid "New Fpasswd"
msgstr ""
#, python-format
msgid "Password request on %(base_url)s"
msgstr ""
msgid "Request to change your password"
msgstr ""
msgid "That link has either expired or is not valid."
msgstr ""
msgid "This Fpasswd"
msgstr ""
msgid "Update your password:"
msgstr ""
msgid "You already changed your password. This link has expired."
msgstr ""
msgid "You have already ask for a new password."
msgstr ""
msgid "Your password has been changed !"
msgstr ""
msgid "captcha"
msgstr ""
# subject and object forms for each relation type
# (no object form for final or symetric relation types)
msgid "has_fpasswd"
msgstr ""
msgctxt "CWUser"
msgid "has_fpasswd"
msgstr ""
msgctxt "Fpasswd"
msgid "has_fpasswd_object"
msgstr ""
msgid "has_fpasswd_object"
msgstr ""
msgid "incorrect captcha value"
msgstr ""
msgid "log in"
msgstr ""
msgid "login"
msgstr ""
msgid "login or email"
msgstr ""
msgid "password"
msgstr ""
msgid "passwords are different"
msgstr ""
msgid "please copy the letters from the image"
msgstr ""
msgid "required attribute"
msgstr ""
msgid "revocation_date"
msgstr ""
msgctxt "Fpasswd"
msgid "revocation_date"
msgstr ""
msgid "revocation_id"
msgstr ""
msgctxt "Fpasswd"
msgid "revocation_id"
msgstr ""
msgid "unable to check captcha, please try again"
msgstr ""
msgid "your email"
msgstr ""
msgid ""
msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#, python-format
msgid ""
"\n"
" There was recently a request to change the password on your "
"account.\n"
" If you requested this password change, please set a new password by "
"following\n"
" the link below:\n"
"\n"
" %(url)s\n"
"\n"
" If you do not want to change your password, you may ignore this "
"message. The\n"
" link expires in %(limit)d minutes.\n"
"\n"
" See you soon on %(base_url)s !\n"
" "
msgstr ""
msgid ""
"An email has been sent, follow instructions in there to change your password."
msgstr ""
msgid "An error occured, this email is unknown."
msgstr ""
msgid "Forgot your password ?"
msgstr ""
msgid "Forgotten your password ?"
msgstr ""
# schema pot file, generated on 2010-01-21 16:01:14
#
# singular and plural forms for each entity type
msgid "Fpasswd"
msgstr ""
msgid "Fpasswd_plural"
msgstr ""
msgid "Invalid link. Please try again."
msgstr ""
msgid "New Fpasswd"
msgstr ""
#, python-format
msgid "Password request on %(base_url)s"
msgstr ""
msgid "Request to change your password"
msgstr ""
msgid "That link has either expired or is not valid."
msgstr ""
msgid "This Fpasswd"
msgstr ""
msgid "Update your password:"
msgstr ""
msgid "You already changed your password. This link has expired."
msgstr ""
msgid "You have already ask for a new password."
msgstr ""
msgid "Your password has been changed !"
msgstr ""
msgid "captcha"
msgstr ""
# subject and object forms for each relation type
# (no object form for final or symetric relation types)
msgid "has_fpasswd"
msgstr ""
msgctxt "CWUser"
msgid "has_fpasswd"
msgstr ""
msgctxt "Fpasswd"
msgid "has_fpasswd_object"
msgstr ""
msgid "has_fpasswd_object"
msgstr ""
msgid "incorrect captcha value"
msgstr ""
msgid "log in"
msgstr ""
msgid "login"
msgstr ""
msgid "login or email"
msgstr ""
msgid "password"
msgstr ""
msgid "passwords are different"
msgstr ""
msgid "please copy the letters from the image"
msgstr ""
msgid "required attribute"
msgstr ""
msgid "revocation_date"
msgstr ""
msgctxt "Fpasswd"
msgid "revocation_date"
msgstr ""
msgid "revocation_id"
msgstr ""
msgctxt "Fpasswd"
msgid "revocation_id"
msgstr ""
msgid "unable to check captcha, please try again"
msgstr ""
msgid "your email"
msgstr ""
msgid ""
msgstr ""
"Project-Id-Version: cubicweb 3.5.11\n"
"PO-Revision-Date: 2008-03-28 18:14+0100\n"
"Last-Translator: Logilab Team <contact@logilab.fr>\n"
"Language-Team: fr <contact@logilab.fr>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: cubicweb-devtools\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
# schema pot file, generated on 2010-01-21 16:19:37
#
# singular and plural forms for each entity type
msgid "Fpasswd"
msgstr ""
msgid "Fpasswd_plural"
msgstr ""
msgid "This Fpasswd"
msgstr ""
msgid "New Fpasswd"
msgstr ""
# subject and object forms for each relation type
# (no object form for final or symetric relation types)
msgid "has_fpasswd"
msgstr ""
msgctxt "CWUser"
msgid "has_fpasswd"
msgstr ""
msgctxt "Fpasswd"
msgid "has_fpasswd_object"
msgstr ""
msgid "has_fpasswd_object"
msgstr ""
msgid "revocation_date"
msgstr ""
msgctxt "Fpasswd"
msgid "revocation_date"
msgstr ""
msgid "revocation_id"
msgstr ""
msgctxt "Fpasswd"
msgid "revocation_id"
msgstr ""
msgid "login or email"
msgstr ""
msgid "login"
msgstr ""
msgid "password"
msgstr ""
msgid "log in"
msgstr ""
msgid "Forgotten your password ?"
msgstr ""
msgid "your email"
msgstr ""
msgid "captcha"
msgstr ""
msgid "please copy the letters from the image"
msgstr ""
msgid "Forgot your password ?"
msgstr ""
#, python-format
msgid "Password request on %(base_url)s"
msgstr ""
msgid "required attribute"
msgstr ""
msgid "unable to check captcha, please try again"
msgstr ""
msgid "incorrect captcha value"
msgstr ""
msgid "Invalid link. Please try again."
msgstr ""
msgid "Update your password:"
msgstr ""
msgid "passwords are different"
msgstr ""
msgid "You have already ask for a new password."
msgstr ""
msgid "An error occured, this email is unknown."
msgstr ""
msgid "Request to change your password"
msgstr ""
#, python-format
msgid ""
"\n"
" There was recently a request to change the password on your "
"account.\n"
" If you requested this password change, please set a new password by "
"following\n"
" the link below:\n"
"\n"
" %(url)s\n"
"\n"
" If you do not want to change your password, you may ignore this "
"message. The\n"
" link expires in %(limit)d minutes.\n"
"\n"
" See you soon on %(base_url)s !\n"
" "
msgstr ""
msgid ""
"An email has been sent, follow instructions in there to change your password."