On Sun, Feb 7, 2010 at 9:01 AM, Ville M. Vainio <[email protected]> wrote:
>> It should be quite easy to remove 'path' dependency from >> pickleshare.py. 'path' is a rather simple module, and can be quite >> easily replaced with os.path stuff. The key is to grep for "self.root" >> in pickleshare.py, and make self.root work with plain path strings. > > Note2: doing that would be overkill for how Leo is using pickleshare > (not concurrent access, etc.). > > It would be enough to replace c.db with somehing where only > __setitem__ and __getitem__ are supported (e.g. no need for .keys()). > > setitem and getitem are both easy to do - just do os.path.join(root, > key), then do the unpickling stuff from pickleshare: > > > pickle.loads(zlib.decompress(fileobj.read())) Thanks for these hints. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
