Re: memaid 0.4.6-pre

David Calinski <[email protected]> Tue, 11 Nov 2003 22:44:15 +0100
Newsgroups gmane.comp.tools.memaid.devel
Message-ID <[email protected]>
On Tuesday 11 of November 2003 21:48, Peter Bienstman wrote:

> I wanted to test if I could import XML generated by your program into PyQt
> Memaid. But, is it me, or does 'export' just create a file with
>
> <q>question</q>
> <a>answer</a>
>
> as opposed to full xml?

It does... I didn't rewrite anything related to export file.
"Export" always exported only Q/A pairs, in this simple format.
(BTW: is this format bad? Do we want real XML in "export"?).

Full XML file is saved anyway (element.xml).


> I also wanted to try if I could import xml data generated by pyqt memaid
> (to see if it correctly ignores the category info), but I couldn't find the
> import button.

With all this rush I have forgotten to make sure core reads your XML 
format. :-(
But luckily 0.4.6 is not yet released and I will take a look at it.

> Also, starting the program from a directory different than ~/.memaid gives
> ERROR in ma_init(): dir (data/) not accessible!

Well. Bare "memaid" binary tries to read own data from data/ directory.
But with "d" option one can pass the directory that memaid should use
(e.g. "memaid d/home/neodave/.memaid").

So, it should work ok when you first install it ("make install" in src/) and 
then call "memaid". (will read ~/.memaid ).

Currently it works with a hack: "make install" installs a scripts (called 
"memaid" that prepares some files if not exist (e.g. queue.txt and FOX 
registry), makes a back-up copy of memaid database, and then call real memaid 
binary with correct path.)
Therefore when you type "memaid" first is executed this script, and then real 
memaid binary with another filename.

I implemented in this way to keep memaid binary platform independent - (e.g. 
on Windows there is no gzip or tar by default, and ./ is not a home 
directory.)
But this script functionality will be probably moved to binary itself.
(Binary compilation will platform dependent compiled in style #ifdef __UNIX // 
then search for database ./here, or something alike.).

Ah, when no database is found it should start as well... right.

DC






-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/