Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

Learn More

Where can I find the implementation of the PlacesUtils.history.makeGuid() function?

  • 2 réponses
  • 1 a ce problème
  • 13 vues
  • Dernière réponse par vaonerra

more options

Hi, I'm making an app in Python to interact with the Bookmarks database (adding, removing bookmarks). I have seen that the `moz_places` table requires a GUID and a hash value for the URL.

I was looking at the source code but I can't find the definition of the `makeGuid()` function. My intention is to port that code to Python and use that in my app.

Can anybody point me to the right direction to accomplish this? Perhaps these functions have been already implemented in Python, if that is the case, do you know where? Is there any other way to generate the GUIDs and Hash values?

Any other recommendation? I don't want to build an add-on since the app I'm building is to be used from the console.

Thanks!

Hi, I'm making an app in Python to interact with the Bookmarks database (adding, removing bookmarks). I have seen that the `moz_places` table requires a GUID and a hash value for the URL. I was looking at the source code but I can't find the definition of the `makeGuid()` function. My intention is to port that code to Python and use that in my app. Can anybody point me to the right direction to accomplish this? Perhaps these functions have been already implemented in Python, if that is the case, do you know where? Is there any other way to generate the GUIDs and Hash values? Any other recommendation? I don't want to build an add-on since the app I'm building is to be used from the console. Thanks!

Toutes les réponses (2)

more options
more options

Thanks @cor-el. I'll take a look.