Re: changing default key for pybliographer

Frederic Gobry <[email protected]>
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
> I am trying to change how the default 'key' is generated without
> modifying the base pybliographer install files... that is, I want to
> run the system installed version, but redefine some things using files
> in my home directory (since this is a shared machine).

Sane approach :-)

> So, I guess my first question to get started is: Which key generating
> function is used when I am running pybliographic and add a new entry
> (without manually specifying the key)?  Maybe this depends on some
> other settings?

By default, it's the one defined in Utils.py: generate_key is registered
as the key 'Default', and this one is set in the configuration dialog.

> If I know which function I need to change then I can start working on
> properly redefining that through some files in my home directory.

You can name it anything you want. Then, you register it :

Autoload.register ('key', 'My Nifty Key', generate_nifty_key)

...and it should appear in Settings / Preferences / Base / Keyformat

Frédéric
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBm8jxFjQHpltE9KURAskTAKDIOWJHH6qeJILNguAmOtbpiyKD5QCglAer
lhU4CmSBlujKJh4tJiutB00=
=aVVI
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.