Re: [Evolution-hackers] problem in "Categories" button in e-contact-editor



Le sam 24/04/2004 à 07:19, Chris Toshok a écrit : 
> try reverting all your changes, and apply the following:
> 
> RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook.c,v
> retrieving revision 1.211
> diff -u -r1.211 addressbook.c
> --- addressbook.c       14 Jun 2003 04:34:07 -0000      1.211
> +++ addressbook.c       23 Apr 2004 07:48:23 -0000
> @@ -858,7 +858,7 @@
>                                 } else {
>                                         master_list = get_master_list ();
>                                         category_name = e_categories_master_list_nth (master_list, subid);
> -                                       search_query = g_strdup_printf ("(is \"category\" \"%s\")", category_name);
> +                                       search_query = g_strdup_printf ("(is \"categories\" \"%s\")", category_name);
>                                 }
>                                 break;
> 
> Chris

hello Chris,

the patch doesn't work.

(I see again this in wombat:

(Wombat:6064): wombat-pas-WARNING **: unknown query property
 
searching server using filter: objectClass=MyBarnIsBiggerThanYourBarn
)

--> I think that the prop_info (in pas-backend-ldap.c) struct has a
dependency with the widget names...as with the query field names. 

Let's summarize:

for the "category" field:

1: LDAP schema: "category" multi-value field
2: UI: 

2.1: e-contact-editor.c widget "entry-categories" bound to "categories"
in field_mapping struct 

widget "entry-categories" bound to E_CARD_SIMPLE_FIELD_CATEGORIES in
widget_field_mappings struct 

2.2: addressbook.c (after your patch proposal, here attached)

search query "categories is ..."

3: pas backend:

E_COMPLEX_PROP (E_CARD_SIMPLE_FIELD_CATEGORIES,  "categories",
"category", category_populate, category_ber, category_compare),

"categories" query property 
"category" LDAP attribute

I'll keep on working, but your input is welcome,

thanks a lot,

Stan.


> On Fri, 2004-04-23 at 08:29 +0200, Stan Pinte wrote:
> > hello,
> > 
> > I tried to solve the following bug in evolution-1.4.6: queries by
> > category in LDAP-backed addressbooks do not work.
> > 
> > the following patch solves the problem:
> > 
> > --- evolution-1.4.6/addressbook/backend/pas/pas-backend-ldap.c.orig	2004-04-22 10:45:59.000000000 +0200
> > +++ evolution-1.4.6/addressbook/backend/pas/pas-backend-ldap.c	2004-04-22 10:46:23.000000000 +0200
> > @@ -268,7 +268,7 @@
> >  	E_STRING_PROP (E_CARD_SIMPLE_FIELD_MAILER,      "mailer", "mailer"), 
> >  
> >  	E_STRING_PROP (E_CARD_SIMPLE_FIELD_FILE_AS,     "file_as", "fileAs"),
> > -	E_COMPLEX_PROP (E_CARD_SIMPLE_FIELD_CATEGORIES,  "categories", "category", category_populate, category_ber, category_compare),
> > +	E_COMPLEX_PROP (E_CARD_SIMPLE_FIELD_CATEGORIES,  "category", "category", category_populate, category_ber, category_compare),
> >  
> >  	STRING_PROP (E_CARD_SIMPLE_FIELD_CALURI,      "caluri", "calCalURI"),
> >  	STRING_PROP (E_CARD_SIMPLE_FIELD_FBURL,       "fburl",
> >  	"calFBURL"),
> > 
> > , but creates another problem:
> > 
> > the "Categories" button in the contact edition folder is now
> > disabled. Yet, the categories are still listed in the text field.
> > 
> > I tried to solve it using that patch:
> > 
> > --- evolution-1.4.6/addressbook/gui/contact-editor/e-contact-editor.c.orig	2004-04-22 12:46:12.000000000 +0200
> > +++ evolution-1.4.6/addressbook/gui/contact-editor/e-contact-editor.c	2004-04-22 12:45:34.000000000 +0200
> > @@ -2128,7 +2128,7 @@
> >  	{ "entry-nickname", "nickname" },
> >  	{ "entry-spouse", "spouse" },
> >  	{ "text-comments", "note" },
> > -	{ "entry-categories", "categories" },
> > +	{ "entry-categories", "category" },
> >  	{ "entry-caluri", "caluri" },
> >  	{ "entry-fburl", "fburl" },
> >  };
> > 
> > but, it makes things worse: the button is still disabled, and the
> > categories do not show up anymore in the text field.
> > 
> > I am determined to solve this problem, but I am asking around for any
> > hints...
> > 
> > thanks a lot,
> > 
> > Stan. 
> > _______________________________________________
> > evolution-hackers maillist  -  evolution-hackers lists ximian com
> > http://lists.ximian.com/mailman/listinfo/evolution-hackers
> > 
> > 
> > !DSPAM:4088b84b134681556419849!
> > 
> > 

-- 
------
join me at spinte jabber org
GPG: CBAC 1C79 D133 D3D7 247D  D723 FCF9 AEB9 BC4F 5802
------

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e=2E?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]