#2456 closed task

Magic Folder: add invite commandline tool — at Version 10

Reported by: dawuud Owned by: daira
Priority: normal Milestone: undecided
Component: code-frontend-magic-folder Version: 1.10.0
Keywords: otf-magic-folder-objective6 Cc:
Launchpad Bug:

Description (last modified by daira)

For tahoe magic-folder invite COLLECTIVE_WRITECAP NICKNAME :

(COLLECTIVE_WRITECAP can, as a special case, be an alias such as MAGIC:.)

  1. Create an empty client DMD. Let its write URI be CLIENT_WRITECAP.
  2. Diminish CLIENT_WRITECAP to CLIENT_READCAP, and diminish COLLECTIVE_WRITECAP to COLLECTIVE_READCAP.
  3. Run tahoe ln CLIENT_READCAP COLLECTIVE_WRITECAP/NICKNAME.
  4. Print "COLLECTIVE_READCAP|CLIENT_WRITECAP" as the invitation, accompanied by instructions on how to accept the invitation and the need to send it over a secure channel.

Change History (10)

comment:1 Changed at 2015-06-15T17:19:45Z by dawuud

  • Description modified (diff)
  • Summary changed from Magic Folder: add magic folder invite commandline tool to Magic Folder: add invite commandline tool

comment:2 Changed at 2015-06-15T17:23:05Z by dawuud

  • Description modified (diff)

comment:3 Changed at 2015-06-15T17:23:31Z by dawuud

  • Description modified (diff)

comment:4 Changed at 2015-06-15T17:24:11Z by dawuud

  • Owner changed from daira to dawuud
  • Type changed from defect to task

comment:5 Changed at 2015-06-19T09:56:26Z by dawuud

partially completed this command... however right now I'm slightly stuck on this problem here::

exceptions.AttributeError?: 'InviteOptions?' object has no attribute 'stdin'

https://github.com/david415/tahoe-lafs/commits/2454.magic-folder-create-tool.2 https://github.com/david415/tahoe-lafs/commit/76cb4c2188c77b84c477036a2cf469b092c0a1fe

comment:6 Changed at 2015-06-23T03:46:28Z by dawuud

  • Owner changed from dawuud to daira

i've got a working implementation of this invite command here in this dev branch: https://github.com/david415/tahoe-lafs/tree/2454.magic-folder-create-tool.2

please review

comment:7 Changed at 2015-06-23T09:28:32Z by dawuud

it could still use some unit tests

comment:8 Changed at 2015-06-23T09:40:14Z by dawuud

  • Owner changed from daira to dawuud

comment:9 Changed at 2015-06-24T00:18:08Z by dawuud

  • Owner changed from dawuud to daira

completed unit tests... tied them all together with the join unit tests which look at the magic folder structure.

please review.

comment:10 Changed at 2015-07-07T19:00:31Z by daira

  • Component changed from unknown to code-frontend-magic-folder
  • Description modified (diff)
  • Keywords magic folder magic-folder removed
Note: See TracTickets for help on using tickets.