Creating GUID

Jonas Lippuner jonas at lippuner.ca
Wed Jun 5 03:41:33 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi guys,

If I know the string of a GUID, how do I create the corresponding GUID
object in the Python bindings for Gnucash?

The only thing I got to run is

guid = GUID()
string_to_guid("a3817efd668585e2f4431e2996683fd1", guid.__weakref__)

But this does not work since the variable guid gets a value when it is
created and string_to_guid does not change that value, i.e. I just get
a new guid with a random value...


Also, I noticed that it is possible to create multiple customers with
the same Customer ID. Is this intentional?


Thanks for the help,
Jonas

- -- 
My email is signed and I encrypt email on request.
To verify my signature or send me encrypted email,
get my public key: http://lippuner.ca/key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRruuqAAoJELH92qHy0gntz3UP/RILBVXZUTw55UjoezCcB0EQ
uYeUYyP32O0H3ghEfqOn21I56MohPyw6OWTrcSeTnOYwJ2vjDBpG532WdzJEwESq
n236qB4vKiOi2ovwGeWOW6oSeZEIpuiVGAgXIGxLuETRuvZnnZHJJNkzbG4grG2L
YgIp5P8lxXt45VKRwi0wQBcXtG0O15hpyhHjpJIdllyMN9A52Lm4suUSeq4fU5z1
XiBbvpBHG9Kfd+0xY4NiGfALOqTXi/9GB0Yf+VLVaMQ6ebHnKtKNdOFAc0XWnbMI
AI7gFzWdQjirlQAFYyBVWC9XZwTo0oHAAeoQ2AyDAGbmxx15tBzy/DHheAEQXQnR
jlHkepCyEAfyFJN5iBBazmeZc0iYJr1aUP6vSv8z1p6JBG9q+ZhbluQ/A/Yo8iJn
7s+6Ivwky07vnex7jJebtKykNoYHV14hb4A4BaYOpN7/ALsKDyMqrodGGu6WAXCn
WIenKPYFkUTthN84vBODeohQhSl3YMAUTpDatrMzHBC9Lckn7QUb7a9jFy45pvYP
rcIoKKkIZ8ST9jJgi+L5BQJmy1joFnG5HK/sbQx9XYfm2gSIceGtDIEFewV5qtCs
k/sccsdrBICZxC0kojbWsNyhxmmUcl28l1tEg/gFymbMaRLhTSfkFPZMvp6ULczg
o7WvWf4t9JLcbjeuB9ka
=bFDJ
-----END PGP SIGNATURE-----


More information about the gnucash-devel mailing list