Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Ordering custom fields
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Christopher Nelson  
View profile  
 More options Sep 26 2012, 10:26 am
From: Christopher Nelson <chris.nelson.1...@gmail.com>
Date: Wed, 26 Sep 2012 10:26:37 -0400
Local: Wed, Sep 26 2012 10:26 am
Subject: Ordering custom fields
I'm using Trac 0.11.6 and I have quite a few custom fields.  I use
MasterTickets plugin which adds blockedby (Depends on) and blocking
(Required for).

I like to have Depends On to the left of Required For since there is a
visual clue that the left column is tickets are before this one and
the right is tickets after.  But I can't figure out how to do this
both at the top of the ticket (where current values are displayed) and
at the bottom (where values can be entered/changed).

At the top, the fixed, core fields that are displayed in the table
are: Reporter, Owner, Priority, Milestone, Component, Version, and CC
(7 fields).

At the bottom, the fixed, core fields that are displayed in the table
are: Type, Priority, Milestone, Component, Version, and CC (6 fields).

To put Depends On to the left of Required For at the top, Depends On
would have to be an even field number (0, 2, 4, etc. are on the left)
but to align them at the bottom, it'd have to be an odd field number.

Am I missing something that will help me line up my fields?

                                 Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brettschneider Falk  
View profile   Translate to Translated (View Original)
 More options Sep 26 2012, 11:29 am
From: Brettschneider Falk <fbrettschnei...@baumer.com>
Date: Wed, 26 Sep 2012 15:29:33 +0000
Local: Wed, Sep 26 2012 11:29 am
Subject: RE: [Trac-dev] Ordering custom fields

Christopher Nelson wrote:
> Am I missing something that will help me line up my fields?

You can align the bottom part for instance by using:
http://trac-hacks.org/wiki/GroupTicketFieldsPlugin

CU, F@lk

----
Falk Brettschneider
R&D Software
Baumer Optronic GmbH
www.baumer.com

Gesch?ftsf?hrer: Marcel Seeber * Dr. Oliver Vietze
Sitz der Gesellschaft: Radeberg
Amtsgericht Dresden: HRB 15379
Ust. ID: DE 189714583


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Nelson  
View profile  
 More options Sep 26 2012, 1:33 pm
From: Christopher Nelson <chris.nelson.1...@gmail.com>
Date: Wed, 26 Sep 2012 13:33:08 -0400
Local: Wed, Sep 26 2012 1:33 pm
Subject: Re: [Trac-dev] Ordering custom fields

>> Am I missing something that will help me line up my fields?

> You can align the bottom part for instance by using:
> http://trac-hacks.org/wiki/GroupTicketFieldsPlugin

I like that!  Thanks.

I'm stuck in 0.11.6 now but I hope this works with 1.0 as I hope to
move soon and would have to lose a feature if the plugin wasn't
compatible.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brettschneider Falk  
View profile   Translate to Translated (View Original)
 More options Sep 27 2012, 2:11 am
From: Brettschneider Falk <fbrettschnei...@baumer.com>
Date: Thu, 27 Sep 2012 06:11:26 +0000
Local: Thurs, Sep 27 2012 2:11 am
Subject: RE: [Trac-dev] Ordering custom fields
Hi,
Christopher Nelson wrote:
> F@lk wrote:
> > http://trac-hacks.org/wiki/GroupTicketFieldsPlugin
> ... I hope this works with 1.0...

Yes, works well. I already tagged the Trac-Hacks wiki page with 1.0.

CU, F@lk

----
Falk Brettschneider
R&D Software
Baumer Optronic GmbH
www.baumer.com

Gesch?ftsf?hrer: Marcel Seeber * Dr. Oliver Vietze
Sitz der Gesellschaft: Radeberg
Amtsgericht Dresden: HRB 15379
Ust. ID: DE 189714583


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Nelson  
View profile  
 More options Sep 27 2012, 8:16 am
From: Christopher Nelson <chris.nelson.1...@gmail.com>
Date: Thu, 27 Sep 2012 08:16:00 -0400
Subject: Re: [Trac-dev] Ordering custom fields

>> ... I hope this works with 1.0...
> Yes, works well. I already tagged the Trac-Hacks wiki page with 1.0.

Great!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Nelson  
View profile  
 More options Sep 27 2012, 8:34 am
From: Christopher Nelson <chris.nelson.1...@gmail.com>
Date: Thu, 27 Sep 2012 08:33:55 -0400
Local: Thurs, Sep 27 2012 8:33 am
Subject: Re: [Trac-dev] Ordering custom fields
On Thu, Sep 27, 2012 at 8:16 AM, Christopher Nelson

<chris.nelson.1...@gmail.com> wrote:
>>> ... I hope this works with 1.0...
>> Yes, works well. I already tagged the Trac-Hacks wiki page with 1.0.

> Great!

Alas it appears to be for 0.12 (the source tree I checked out has
0.12/trunk) and I'm in 0.11.6 (I see errors).

2012-09-27 08:30:07,992 Trac[loader] DEBUG: Loading groupticketfields
from /opt/trac/mytrac/plugins/GroupTicketFields-0.0.1dev-py2.6.egg
2012-09-27 08:30:07,993 Trac[loader] ERROR: Skipping
"groupticketfields = groupticketfields": (can't import "ImportError:
cannot import name add_script_data")

I don't know what add_script_data is but I'll have to look into it, I guess.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brettschneider Falk  
View profile  
 More options Sep 27 2012, 8:46 am
From: Brettschneider Falk <fbrettschnei...@baumer.com>
Date: Thu, 27 Sep 2012 12:45:55 +0000
Local: Thurs, Sep 27 2012 8:45 am
Subject: RE: [Trac-dev] Ordering custom fields

Christopher Nelson wrote:
> Alas it appears to be for 0.12 (the source tree I checked out has
> 0.12/trunk) and I'm in 0.11.6 (I see errors).
...
> cannot import name add_script_data")

Yes, that add_script_data() is a new API function of 0.12. A porting-back-to-0.11 discussion is running at #10240 (though for another plugin). There are already hints what is to do; if you provided a patch, the benefit would be doubled.

CU, F@lk

----
Falk Brettschneider
R&D Software
Baumer Optronic GmbH
www.baumer.com

Gesch?ftsf?hrer: Marcel Seeber * Dr. Oliver Vietze
Sitz der Gesellschaft: Radeberg
Amtsgericht Dresden: HRB 15379
Ust. ID: DE 189714583


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Nelson  
View profile  
 More options Sep 27 2012, 8:49 am
From: Christopher Nelson <chris.nelson.1...@gmail.com>
Date: Thu, 27 Sep 2012 08:49:08 -0400
Local: Thurs, Sep 27 2012 8:49 am
Subject: Re: [Trac-dev] Ordering custom fields

> Yes, that add_script_data() is a new API function of 0.12. A porting-back-to-0.11 discussion is running at #10240 (though for another plugin). There are already hints what is to do; if you provided a patch, the benefit would be doubled.

Is that ticket at Edgewall or T-H?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brettschneider Falk  
View profile   Translate to Translated (View Original)
 More options Sep 27 2012, 8:49 am
From: Brettschneider Falk <fbrettschnei...@baumer.com>
Date: Thu, 27 Sep 2012 12:49:30 +0000
Local: Thurs, Sep 27 2012 8:49 am
Subject: RE: [Trac-dev] Ordering custom fields
Sorry, I wasn't aware anymore GroupTicketFieldsPlugin also uses add_script_data().
CU, F@lk

----
Falk Brettschneider
R&D Software
Baumer Optronic GmbH
www.baumer.com

Gesch?ftsf?hrer: Marcel Seeber * Dr. Oliver Vietze
Sitz der Gesellschaft: Radeberg
Amtsgericht Dresden: HRB 15379
Ust. ID: DE 189714583


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brettschneider Falk  
View profile   Translate to Translated (View Original)
 More options Sep 27 2012, 8:51 am
From: Brettschneider Falk <fbrettschnei...@baumer.com>
Date: Thu, 27 Sep 2012 12:51:24 +0000
Local: Thurs, Sep 27 2012 8:51 am
Subject: RE: [Trac-dev] Ordering custom fields

Christopher Nelson wrote:
> Is that ticket at Edgewall or T-H?

http://trac-hacks.org/ticket/10240

CU, F@lk

----
Falk Brettschneider
R&D Software
Baumer Optronic GmbH
www.baumer.com

Gesch?ftsf?hrer: Marcel Seeber * Dr. Oliver Vietze
Sitz der Gesellschaft: Radeberg
Amtsgericht Dresden: HRB 15379
Ust. ID: DE 189714583


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Nelson  
View profile  
 More options Oct 9 2012, 2:58 pm
From: Christopher Nelson <chris.nelson.1...@gmail.com>
Date: Tue, 9 Oct 2012 14:58:33 -0400
Local: Tues, Oct 9 2012 2:58 pm
Subject: Re: [Trac-dev] Ordering custom fields
On Thu, Sep 27, 2012 at 8:45 AM, Brettschneider Falk

<fbrettschnei...@baumer.com> wrote:
> Christopher Nelson wrote:
>> Alas it appears to be for 0.12 (the source tree I checked out has
>> 0.12/trunk) and I'm in 0.11.6 (I see errors).
> ...
>> cannot import name add_script_data")

> Yes, that add_script_data() is a new API function of 0.12. A porting-back-to-0.11 discussion is running at #10240 (though for another plugin). There are already hints what is to do; if you provided a patch, the benefit would be doubled.

I put a patch in http://trac-hacks.org/ticket/10240#comment:7.  It
seems a straight-forward addition.  With that in place on top of
0.11.6, GroupTicketFields plugin loads without error and I get no JS
run time errors.  My ticket includes the configured fieldset:

  <fieldset class="property_group"
id="properties_relationships"><legend>Relationships</legend><table
id="table_relationships"></table></fieldset>

but whereas the plugin does:

            groups_list = { 'field_groups': groups }
            group_order = { 'field_groups_order': group_order }
            data['fields'] = filtered_fields
            data['field_groups'] = groups

            add_script_data(req, groups_list)
            add_script_data(req, group_order)

I can't find the string "groups" in the page source of the ticket display.

Any clues I can pursue would be welcome.

                           Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RjOllos  
View profile  
 More options Oct 9 2012, 7:05 pm
From: RjOllos <ry...@physiosonics.com>
Date: Tue, 9 Oct 2012 16:05:53 -0700 (PDT)
Local: Tues, Oct 9 2012 7:05 pm
Subject: Re: [Trac-dev] Ordering custom fields

On Tuesday, October 9, 2012 11:58:55 AM UTC-7, Chris Nelson wrote:

> Any clues I can pursue would be welcome.

Assuming what I posted in [1] is the rest of the story, I tend to think
Jun's solution is better, because IIRC, it can be implemented entirely in
the py file using the ITemplateStreamFilter interface.

[1] http://trac-hacks.org/ticket/10240#comment:8


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher Nelson  
View profile  
 More options Oct 9 2012, 8:49 pm
From: Christopher Nelson <chris.nelson.1...@gmail.com>
Date: Tue, 9 Oct 2012 20:49:11 -0400
Local: Tues, Oct 9 2012 8:49 pm
Subject: Re: [Trac-dev] Ordering custom fields

On Tue, Oct 9, 2012 at 7:05 PM, RjOllos <ry...@physiosonics.com> wrote:
> On Tuesday, October 9, 2012 11:58:55 AM UTC-7, Chris Nelson wrote:

>> Any clues I can pursue would be welcome.

> Assuming what I posted in [1] is the rest of the story, I tend to think
> Jun's solution is better, because IIRC, it can be implemented entirely in
> the py file using the ITemplateStreamFilter interface.

> [1] http://trac-hacks.org/ticket/10240#comment:8

I suppose it is for certain definitions of "better".  I prefer the
spot fixes of adding functionality rather than slicing and dicing the
plugin to change how it implements the addition of its script data to
the HTML.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
RjOllos  
View profile  
 More options Oct 10 2012, 6:44 pm
From: RjOllos <ry...@physiosonics.com>
Date: Wed, 10 Oct 2012 15:44:08 -0700 (PDT)
Local: Wed, Oct 10 2012 6:44 pm
Subject: Re: [Trac-dev] Ordering custom fields

On Tuesday, October 9, 2012 5:49:33 PM UTC-7, Chris Nelson wrote:
> I suppose it is for certain definitions of "better".

I was thinking mainly of time-to-solution and simplicity. Though if you
eventually get to the bottom of this, it would make for a useful recipe,
and we could capture it under the forthcoming PluginDev page hierarchy, on
a page such as CompatibilityRecipes.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »