Join us and the lead editor of IRL, Mozilla's multi-award-winning podcast, for a behind-the-scenes look at the pod and to contribute your ideas for the next season, themed: "AI and ME." Mark your calendar and join our Community Call on Wednesday, Aug 7, 17:00–17:45 UTC. See you there!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

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

  • 2 个回答
  • 1 人有此问题
  • 13 次查看
  • 最后回复者为 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!

所有回复 (2)

more options
more options

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