[Citadel Development] webcit: Splitting vcard_edit.c into templates not too trivial

2010-10-03 Thread psy-q
I tried to extract vcard_edit into templates this weekend. I wanted to do it
in a way that gets us tokens like VCARD_FIRSTNAME, VCARD_LASTNAME etc. so
they can easily be used to populate a template form e.g. vcard_edit.html.  

It doesn't seem to be so easy, it seems I'd have to RegisterNamespace for
every single one of those tokens and then register callback functions to
extract that information into a token one by one? The function that extracts
all VCard information in do_edit_vcard() couldn't be changed to populate all
those tokens in one run, because RegisterNamespace is only available in an
InitModule, correct?  

My C really isn't up to this, I think. I don't know how i'd pre-populate a
VCard data structure in memory and then extract each token from it through a
callback as requested in RegisterNamespace.  

I think I'll drop this -- is there anything else I could help with? I can
clean up HTML once things move closer to release, if that helps.

[Citadel Development] Re: webcit: Splitting vcard_edit.c into templates not too trivial

2010-10-03 Thread IGnatius T Foobar
Sure, there's a ton of that kind of work that needs to be done.  I do it when
I'm already in there somewhere and notice little things that need adjusting,
but having someone around to focus on it would be great. 
 


[Citadel Development] Re: webcit: Splitting vcard_edit.c into templates not too trivial

2010-10-03 Thread IGnatius T Foobar
Don't spend too much time on the vCard editor.  I will probably rewrite it
in the not too distant future.