Opened at 2007-11-28T20:25:10Z
Last modified at 2010-04-13T01:00:46Z
#215 new enhancement
maybe remove "string containing slash-separated names" APIs
Reported by: | zooko | Owned by: | somebody |
---|---|---|---|
Priority: | minor | Milestone: | undecided |
Component: | code | Version: | 0.7.0 |
Keywords: | cleanup backward-compatibility | Cc: | |
Launchpad Bug: |
Description
Consider going from two ways to do it to one way to do it, if there is an API e.g. NewDirectoryNode?.get_child_at_path() which takes either a list of strings where each string is a name or else a string containing forward-slashes, where each slash-separated thing is a name. The former is more general, and if the lack of the latter isn't too inconvenient for people then let's remove explicit support for it.
Just the one interface might be convenient enough because Python programmers can always take their string-containing-slashes and run ".split('/')" on it before passing it to the Tahoe object.
Change History (3)
comment:1 Changed at 2007-11-29T20:06:28Z by warner
comment:2 Changed at 2008-06-01T21:13:06Z by warner
- Milestone changed from eventually to undecided
comment:3 Changed at 2010-04-13T01:00:46Z by davidsarah
- Keywords cleanup backward-compatibility added
I'm cool with that. The get_child_at_path is a valuable convenience, but it could accept a list of strings and still be just as useful.