On Sat, Apr 14, 2001 at 12:21:35PM +0100, Dermot Musgrove wrote:
> Jose Gabriel J Marcelino wrote:
> > 
> [...]
> > This works too, wonderfully, however it would be better if we could 
> > embbed the Perl code necessary for the XML generation inside the Glade
> > project itself, in tags unparsed, kept untouched by the Glade editor. 
> > There are no such tags however, that I could find.
> > 
> > My suggestion would be to support XML comments in the form <!-- -->, 
> > ignore them, but keep them on the project tree for saving into the 
> > new XML.
> Hi, just a thought, but could you not generate the XML into perl subs in
> perl modules. Then show the Glade XML that is returned by the subs.
> 
> Regards, Dermot

Yes, that's no problem, we do that already by calling different subcomponents.
What we lose however is the easy editability of the resulting XML inside the Glade
editor. We can edit it, but then we have to put the Perl calls back inside the XML (or 
divide it into various functions in the process you mentioned)

I dind't have the time required to dig into this, but well, today's a calm saturday so
I'm digging up the source right now. 

Is anyone else working with Glade in this manner? It's working pretty well in our 
project,
with big wins in ease of development by integrating database results into the 
end-user's
display code easily (the enduser runs a kind of "application browser" that takes 
Glade's XML
and Perl functions attached to the Perl Glade handlers). 

This fits in well with the three-tiered application development model, even more so by 
having
the Apache/Mason part also serving XML-RPC procedure calls.

There are a few tools we will need to develop to futher ease development (such as a 
widget browser,
a cvs extension to handle this style of Glade/Mason programming) and they would make 
nice open-source
projects if anyone else is interested in working on them.

Regards

Gabriel


_______________________________________________
Glade-devel maillist  -  [EMAIL PROTECTED]
http://lists.helixcode.com/mailman/listinfo/glade-devel

Reply via email to