After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 337843 - Improve formatting of output from gimp-procedural-db-dump
Improve formatting of output from gimp-procedural-db-dump
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: General
git master
Other All
: Normal enhancement
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-04-09 20:09 UTC by Kevin Cozens
Modified: 2006-04-11 15:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to clean up output from gimp-procedural-db-dump (2.73 KB, patch)
2006-04-09 20:15 UTC, Kevin Cozens
accepted-commit_now Details | Review

Description Kevin Cozens 2006-04-09 20:09:51 UTC
I have been working on scripts that test the PDB calls in GIMP. To make the scripts I use use Script-Fu console to dump the entire PDB information to a file using gimp-procedural-db-dump. Due to the way the output file is formatted it is not easy to go through it and extract the information I needed. It required a lot of manual work. With some improvements to the formatting of the output it would be easier to write a script to automatically extract information from the PDB dump.
Comment 1 Kevin Cozens 2006-04-09 20:15:21 UTC
Created attachment 63047 [details] [review]
Patch to clean up output from gimp-procedural-db-dump

The attached patch greatly improves the output from gimp-procedural-db-dump and makes it substantially easier to parse via scripts to extract any information one might want. It allowed me to write a perl script to extract the data very easily and cleanly compared to the original format of the PDB dump.
Comment 2 Manish Singh 2006-04-11 03:23:22 UTC
You could've used Parse:RecDescent in perl. ;)

The patch is fine, go ahead and commit it, it makes it more readable for humans too.
Comment 3 Sven Neumann 2006-04-11 12:15:35 UTC
Yes, please commit to the HEAD branch.
Comment 4 Kevin Cozens 2006-04-11 15:12:54 UTC
2006-04-11  Kevin Cozens  <kcozens@cvs.gnome.org>

        * app/pdb/gimp-pdb-query.c: Changed formatting of output from
        gimp-procedural-db-dump to make it more easily human (and machine)
        readable. Fixes bug #337843.