chiark / gitweb /
backend.py: Use configured delimiter for joining fields.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 22 Dec 2014 20:32:58 +0000 (20:32 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 4 Apr 2015 14:24:09 +0000 (15:24 +0100)
FlatFileRecord.create used `:' unconditionally.

backend.py

index 7c6645a..d6fac78 100644 (file)
@@ -255,7 +255,7 @@ class FlatFileBackend (object):
                         for k, i in me._fmap.iteritems()
                         if k.startswith('f_')],
                        user, passwd, args)
-    r = FlatFileRecord(':'.join(f), me._delim, me._fmap, backend = me)
+    r = FlatFileRecord(me._delim.join(f), me._delim, me._fmap, backend = me)
     me._rewrite('create', r)
 
   def _rewrite(me, op, rec):