rpms/trac-privateticketsplugin/devel README.Fedora, NONE, 1.1 import.log, NONE, 1.1 trac-privateticketsplugin.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Jon Stanley jstanley at fedoraproject.org
Sun Dec 28 20:05:13 UTC 2008


Author: jstanley

Update of /cvs/pkgs/rpms/trac-privateticketsplugin/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28241/devel

Modified Files:
	.cvsignore sources 
Added Files:
	README.Fedora import.log trac-privateticketsplugin.spec 
Log Message:
intial commit



--- NEW FILE README.Fedora ---
This is the Trac PrivateTicketsPlugin from http://trac-hacks.org/wiki/PrivateTicketsPlugin.

Please see the following README from the upstream 0.11 branch:

Allow users to only see tickets they are associated with.

There are three main permissions for this plugin: TICKET_VIEW_REPORTER, TICKET_VIEW_CC, and TICKET_VIEW_OWNER. TICKET_VIEW_SELF is an alias for all three of these.

With each permission, users will only be able to see tickets where they are the person mentioned in the permission. So if a user has TICKET_VIEW_REPORTER, they can only see tickets they reported. For TICKET_VIEW_CC, they just have to be included in the CC list.

There are also group-based permissions: TICKET_VIEW_REPORTER_GROUP, TICKET_VIEW_CC_GROUP, and TICKET_VIEW_OWNER_GROUP. These work in a similar way to their non-group counterparts, except that you are granted access if you share a group with the target user. For example, if ticket 1 was reported by Allan, and Allan and Bob are both in the group company_foo, and Bob has TICKET_VIEW_REPORTER_GROUP, then Bob will be able to see ticket 1 since he shares a group with the reporter. Each group-based permission is also an alias for the normal one, so you do not have to grant both. TICKET_VIEW_GROUP is an alias for all the group-based permissions (and therefore all the normal ones as well).

These extra permissions can only deny access, not allow it. This means the user must still have TICKET_VIEW granted as normal.

Finally, users with TRAC_ADMIN will not be restricted by this plugin. The meta-user "anonymous" also cannot be restricted by this plugin, as their identity isn't known to be checked. Be sure to not grant TICKET_VIEW to anonymous, or unauthenticated users will be able to see all tickets.

Configuration

All configuration options go in the [privatetickets] section.

group_blacklist

    Groups to ignore for the purposes of the *_GROUP permissions.

    Defaults to "anonymous, authenticated"

You must also add PrivateTicketsPolicy to your permission_policies setting in trac.ini. It must be before the DefaultPermissionPolicy. See below for an example if you don't have any other policies.
Example

An example configuration:

[privatetickets]
group_blacklist = anonymous, authenticated, labusers

[components]
privatetickets.* = enabled

[trac]
permission_policies = PrivateTicketsPolicy, DefaultPermissionPolicy, LegacyAttachmentPolicy




--- NEW FILE import.log ---
trac-privateticketsplugin-1_1_1-0_2_svn5068_fc10:HEAD:trac-privateticketsplugin-1.1.1-0.2.svn5068.fc10.src.rpm:1230494673


--- NEW FILE trac-privateticketsplugin.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           trac-privateticketsplugin
Version:        1.1.1
Release:        0.2.svn5068%{?dist}
Summary:        Trac extension to allow users to view only related tickets

Group:          Applications/Internet
# BSD license derived from metadata in setup.py
License:        BSD
URL:            http://trac-hacks.org/wiki/PrivateTicketsPlugin
# Produce via 'svn export -r5068 http://trac-hacks.org/svn/privateticketsplugin/0.10 privateticketsplugin'
# tar -czvf privateticketsplugin.svn5068.tar.gz privateticketsplugin
Source0:        privateticketsplugin.svn5068.tar.gz
Source1:        README.Fedora
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel, python-setuptools
Requires:       trac >= 0.10, trac < 0.11

%description
A trac plugin to allow users to see only tickets with which they are involved

%prep
%setup -q -n privateticketsplugin
cp %{SOURCE1} .


%build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py build
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README.Fedora
%{python_sitelib}/*

%changelog
* Sat Dec 27 2008 Jon Stanley <jonstanley at gmail.com> - 1.1.1-0.2.svn5068
- Fixups from review

* Sat Dec 27 2008 Jon Stanley <jonstanley at gmail.com> - 1.1.1-0.1.svn5068
- Initial package


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/trac-privateticketsplugin/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	28 Dec 2008 18:54:50 -0000	1.1
+++ .cvsignore	28 Dec 2008 20:04:42 -0000	1.2
@@ -0,0 +1 @@
+privateticketsplugin.svn5068.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/trac-privateticketsplugin/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	28 Dec 2008 18:54:50 -0000	1.1
+++ sources	28 Dec 2008 20:04:42 -0000	1.2
@@ -0,0 +1 @@
+0e45ac29b4e1ad2e07cad362c38fcfa1  privateticketsplugin.svn5068.tar.gz




More information about the fedora-extras-commits mailing list