Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
W
wendelin.core
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 2
    • Issues 2
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexedi
  • wendelin.core
  • Repository

Switch branch/tag
  • wendelin.core
  • lib
  • tests
  • test_zodb.py
Find file
BlameHistoryPermalink
  • Kirill Smelkov's avatar
    lib/zodb: Add zstor_2zurl - way to convert a ZODB storage into URL to access it · 6637d216
    Kirill Smelkov authored Apr 15, 2020
    Wendelin.core 2 will need to spawn WCFS filesystem server that accesses
    the same ZODB database as the program that spawns it. The database
    argument passed to WCFS is passed in the form of URL[1,2].  Even though
    zodburi provides way to convert an URL into ZODB storage instance, there
    is currently no way for reverse operation - to convert ZODB storage
    instance into URL to access it(*). So we have to build it by our own.
    
    Provide zstor_2zurl stub that currently works for FileStorage only.
    ZEO and NEO support is TODO.
    
    In the future we might want to move this functionality into
    zodbtools/py.
    
    [1] https://lab.nexedi.com/nexedi/zodbtools/blob/a2e4dd23/zodbtools/help.py#L27-53
    [2] https://lab.nexedi.com/kirr/neo/blob/3d909114/go/zodb/zodbtools/help.go#L25-51
    
    (*) contrary to ZODB/go where this functionality is provided out of the box:
        https://godoc.org/lab.nexedi.com/kirr/neo/go/zodb#IStorage
    6637d216
test_zodb.py 10.2 KB
EditWeb IDE

Replace test_zodb.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备14008524号