Trac 1.0 and BlackMagicTicketTweaksPlugin

58 views
Skip to first unread message

gmk

unread,
Oct 8, 2012, 4:01:44 PM10/8/12
to trac-...@googlegroups.com
Is there another way to do the things made available in BlackMagicTicketTweaksPlugin for Trac 1.0

This plugin gave us the feature to hide / disable fields depending on user permissions.
However, this plugin does not hide the information of beeing included in the notification mails, if there were changes to this fields.

Is there another way to do this kind of field access control which includes also the notification system?

Best Regards, 
Gernot

Steffen Hoffmann

unread,
Oct 8, 2012, 5:17:30 PM10/8/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08.10.2012 22:01, gmk wrote:
> Is there another way to do this kind of field access control which
> includes also the notification system?
>

Not that I'm aware of such a granularity, but patches welcomed for both,
AnnouncerPlugin and TracNotification (in core).

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlBzQucACgkQ31DJeiZFuHf7dQCgoX8ONLs3m5kGNsoV3PU6tHQP
2ZwAn2grOCttBaNqERosrwy7umv9TqDN
=yjQG
-----END PGP SIGNATURE-----

TRAN, CANH T PW

unread,
Oct 9, 2012, 8:37:41 AM10/9/12
to trac-...@googlegroups.com

On this same plugin, I also like to have a feature so that a particular field will be noneditable after a certain workflow state.

This field is already handled to be editable with permission but need to be blocked from editing later on.

I’m thinking of something like

 

fielname.noedit = workflow_state, workflow_state2, etc.

 

I haven’t written entire plugin myself but the tweak should be done in blackmagic.py by gathering states to not be editable and set the field editable to false just like the option disable (I think).

 

Canh

--
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/trac-users/-/hTdddIKkhGYJ.
To post to this group, send email to trac-...@googlegroups.com.
To unsubscribe from this group, send email to trac-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

MalaclypsedJ

unread,
Jul 10, 2015, 4:19:43 PM7/10/15
to trac-...@googlegroups.com, canh...@pw.utc.com
I would like to have this featue as well. Is there any way to do that by myself?

RjOllos

unread,
Jul 10, 2015, 5:33:05 PM7/10/15
to trac-...@googlegroups.com, canh...@pw.utc.com
On Friday, July 10, 2015 at 1:19:43 PM UTC-7, MalaclypsedJ wrote:
I would like to have this featue as well. Is there any way to do that by myself?

Patches for BlackMagicTicketTweaksPlugin are welcome, and they'll be committed if they are of sufficient quality.

However, I'm not sure this feature fits well with BlackMagicTicketTweaksPlugin and would meet the criteria of being generally useful without adding too much complexity. You may be better off just writing a custom plugin for yourself that implements ITicketManipulator.


If you would like to block all fields from being edited after a certain state, you could implement an IPermissionPolicy, similar to:

- Ryan 
Reply all
Reply to author
Forward
0 new messages