rpms/trac-accountmanager-plugin/F-11 pull-from-svn.sh, NONE, 1.1 replace-MessageWrapper-with-genshi-markup.patch, NONE, 1.1 trac-accountmanager-plugin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Ben Boeckel
mathstuf at fedoraproject.org
Sun Sep 6 15:06:43 UTC 2009
- Previous message (by thread): rpms/trac-accountmanager-plugin/devel pull-from-svn.sh, NONE, 1.1 replace-MessageWrapper-with-genshi-markup.patch, NONE, 1.1 trac-accountmanager-plugin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/moblin-gtk-engine/devel .cvsignore, 1.4, 1.5 moblin-gtk-engine.spec, 1.4, 1.5 sources, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: mathstuf
Update of /cvs/pkgs/rpms/trac-accountmanager-plugin/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4126
Modified Files:
.cvsignore sources
Added Files:
pull-from-svn.sh
replace-MessageWrapper-with-genshi-markup.patch
trac-accountmanager-plugin.spec
Log Message:
Initial build
--- NEW FILE pull-from-svn.sh ---
#!/bin/bash
# Source for trac-accountmanager-plugin comes from SVN repository at trac-hacks.org
site=http://trac-hacks.org/
repo=svn/accountmanagerplugin
tarname=TracAccountManager
# Specify the branch and revision we're after, plus the version upstream calls itself
branch=0.11
svnrel=5836
version=0.2.1
# Pull the desired version from svn
svn checkout -r ${svnrel} ${site}${repo}/${branch} ${tarname}-${version}
# Make timestamps be that of last upstream change
find ${tarname}-${version} -name .svn -prune -o -print |
while read pathname
do
timestamp=$(svn info ${pathname} | awk '/^Last Changed Date:/ { print $4 " " $5 " " $6 }')
touch --date="${timestamp}" ${pathname}
done
# Make a tarball
cd ${tarname}-${version}
python setup.py sdist --formats bztar
cd -
mv ${tarname}-${version}/dist/${tarname}-${version}dev-r${svnrel}.tar.bz2 .
# Display checkout status
svn info ${tarname}-${version} | grep "Last Changed"
# Remove the svn checkout
rm -rf ${tarname}-${version}
replace-MessageWrapper-with-genshi-markup.patch:
web_ui.py | 19 +++++--------------
1 file changed, 5 insertions(+), 14 deletions(-)
--- NEW FILE replace-MessageWrapper-with-genshi-markup.patch ---
Index: /accountmanagerplugin/trunk/acct_mgr/web_ui.py
===================================================================
--- /accountmanagerplugin/trunk/acct_mgr/web_ui.py (revision 4638)
+++ /accountmanagerplugin/trunk/acct_mgr/web_ui.py (revision 5478)
@@ -25,4 +25,5 @@
from trac.web import chrome
from trac.web.chrome import INavigationContributor, ITemplateProvider
+from genshi.core import Markup
from genshi.builder import tag
@@ -236,5 +237,5 @@
del(req.session['force_change_passwd'])
req.session.save()
- chrome.add_notice(req, MessageWrapper(tag(
+ chrome.add_notice(req, Markup(tag(
"Thank you for taking the time to update your password."
)))
@@ -245,5 +246,5 @@
data.update({'error': 'Invalid action'})
if force_change_password:
- chrome.add_warning(req, MessageWrapper(tag(
+ chrome.add_warning(req, Markup(tag(
"You are required to change password because of a recent "
"password change request. ",
@@ -500,14 +501,4 @@
-class MessageWrapper(object):
- """Wrapper for add_warning and add_notice to work around the requirement
- for a % operator."""
- def __init__(self, body):
- self.body = body
-
- def __mod__(self, rhs):
- return self.body
-
-
class EmailVerificationNotification(SingleUserNofification):
template_name = 'verify_email.txt'
@@ -542,5 +533,5 @@
return handler
if handler is not self and 'email_verification_token' in req.session:
- chrome.add_warning(req, MessageWrapper(tag.span(
+ chrome.add_warning(req, Markup(tag.span(
'Your permissions have been limited until you ',
tag.a(href=req.href.verify_email())(
@@ -559,5 +550,5 @@
req.session['email_verification_sent_to'] = req.session.get('email')
self._send_email(req)
- chrome.add_notice(req, MessageWrapper(tag.span(
+ chrome.add_notice(req, Markup(tag.span(
'An email has been sent to ', req.session['email'],
' with a token to ',
--- NEW FILE trac-accountmanager-plugin.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define svnrev 5836
Name: trac-accountmanager-plugin
Version: 0.2.1
Release: 0.3.20090522svn%{svnrev}%{?dist}
Summary: Trac plugin for account registration and management
Group: Applications/Internet
License: Copyright only
URL: http://trac-hacks.org/wiki/AccountManagerPlugin
Source0: TracAccountManager-%{version}dev-r%{svnrev}.tar.bz2
Source1: pull-from-svn.sh
# http://trac-hacks.org/changeset/5478?format=diff
Patch0: replace-MessageWrapper-with-genshi-markup.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: trac >= 0.11
Requires: python-setuptools
%description
The AccountManagerPlugin offers several features for managing user accounts:
* allow users to register new accounts
* login via an HTML form instead of using HTTP authentication
* allow existing users to change their passwords or delete their accounts
* send a new password to users who've forgotten their password
* administer user accounts using the trac web interface
%prep
%setup -n TracAccountManager-%{version}dev-r%{svnrev} -q
# Upstream trunk patch for http://trac-hacks.org/ticket/4125
# (broken email verification in trac 0.11.4)
%patch0 -p3
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README contrib/sessionstore_convert.py
%{python_sitelib}/*
%changelog
* Fri Aug 28 2009 Ben Boeckel <MathStuf at gmail.com> - 0.2.1-0.3.20090522svn5836
- Remove comments
- Fix tarball
* Thu Aug 27 2009 Ben Boeckel <MathStuf at gmail.com> - 0.2.1-0.2.20090522svn5836
- Merge spec with Paul Howarth's
* Thu Aug 06 2009 Ben Boeckel <MathStuf at gmail.com> - 0.2.1-0.1.20090522svn5836
- Initial package
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/trac-accountmanager-plugin/F-11/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore 4 Sep 2009 02:16:07 -0000 1.1
+++ .cvsignore 6 Sep 2009 15:06:43 -0000 1.2
@@ -0,0 +1 @@
+TracAccountManager-0.2.1dev-r5836.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/trac-accountmanager-plugin/F-11/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources 4 Sep 2009 02:16:07 -0000 1.1
+++ sources 6 Sep 2009 15:06:43 -0000 1.2
@@ -0,0 +1 @@
+b0518641a63bd3ece9b51ca8f84e7089 TracAccountManager-0.2.1dev-r5836.tar.bz2
- Previous message (by thread): rpms/trac-accountmanager-plugin/devel pull-from-svn.sh, NONE, 1.1 replace-MessageWrapper-with-genshi-markup.patch, NONE, 1.1 trac-accountmanager-plugin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/moblin-gtk-engine/devel .cvsignore, 1.4, 1.5 moblin-gtk-engine.spec, 1.4, 1.5 sources, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list