Multi-Select Custom Fields

59 views
Skip to first unread message

CM Lubinski

unread,
Jan 28, 2010, 6:13:52 PM1/28/10
to Trac Users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

I need to add the ability to make multi-selects for custom fields. This
issue's been brought up a few times before[1], but I don't think it's
been resolved.

Anyone have any tips for how to progress? As far as I am aware, the
DateFieldPlugin is the only plugin on t-h.org to add a new "type" of field.

My instinct is to use a pipe-delimited string to store multiple values
in a single row in the db, and, while this is slower than one-value per
FieldxTicket, it means I don't have to hack core (yet).

Any words of wisdom would be welcome!

Thanks,
CM Lubinski
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAktiGjAACgkQfzi1OiZiJLD8egCdGyaSRLAK178rXG07eeMnec6n
sIIAnjsWvgOnNOaOZ2vGRU4P53Fs7HxE
=BbW0
-----END PGP SIGNATURE-----

CM Lubinski

unread,
Jan 28, 2010, 6:27:38 PM1/28/10
to Trac Users
> issue's been brought up a few times before[1], but I don't think it's

Forgot my references:
[1] http://trac.edgewall.org/ticket/918 #8026 #336 etc.

On Jan 28, 5:13 pm, CM Lubinski <cmc333...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> I need to add the ability to make multi-selects for custom fields. This
> issue's been brought up a few times before[1], but I don't think it's
> been resolved.
>
> Anyone have any tips for how to progress? As far as I am aware, the
> DateFieldPlugin is the only plugin on t-h.org to add a new "type" of field.
>
> My instinct is to use a pipe-delimited string to store multiple values
> in a single row in the db, and, while this is slower than one-value per
> FieldxTicket, it means I don't have to hack core (yet).
>
> Any words of wisdom would be welcome!
>
> Thanks,
> CM Lubinski
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)

> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org

CM Lubinski

unread,
Feb 15, 2010, 11:54:58 PM2/15/10
to Trac Users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've submitted the MultiSelectCustomFieldsPatch [1]. Let me know what
you all think, if you get a chance to use it.

Thanks,
CM Lubinski

[1] http://trac-hacks.org/wiki/MultiSelectCustomFieldsPatch

CM Lubinski wrote:
> Hi all,
>
> I need to add the ability to make multi-selects for custom fields. This
> issue's been brought up a few times before[1], but I don't think it's
> been resolved.
>
> Anyone have any tips for how to progress? As far as I am aware, the
> DateFieldPlugin is the only plugin on t-h.org to add a new "type" of field.
>
> My instinct is to use a pipe-delimited string to store multiple values
> in a single row in the db, and, while this is slower than one-value per
> FieldxTicket, it means I don't have to hack core (yet).
>
> Any words of wisdom would be welcome!
>
> Thanks,
> CM Lubinski
-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLeiUifzi1OiZiJLARAk2bAJ0ZB9Ih6YoJl88yqp+74iOF0jU8QwCfVOwN
agStODw1zlj/nbz7quTbdJs=
=aRyV
-----END PGP SIGNATURE-----

Geert

unread,
Jan 22, 2013, 2:30:08 PM1/22/13
to trac-...@googlegroups.com
Hi CM,

I've updated your patch for trac 1.0 and attached it.


Cheers - Geert
multi-trac1.0.diff
Reply all
Reply to author
Forward
0 new messages