def editShare(name, path, comment, browseable, permAll, usergroups, users): samba = SambaConf() samba.addShare(name, path, comment, browseable, permAll, usergroups, users, mod=True) return samba.save()
def deleteShare(name, file): samba = SambaConf() samba.delShare(name, file) return samba.save()
def addShare(name, path, comment, browseable, permAll, usergroups, users): samba = SambaConf() samba.addShare(name, path, comment, browseable, permAll, usergroups, users) samba.save() return name
def deleteShare(name, file): samba = SambaConf() samba.delShare(name, file) return samba.save()
def editShare(name, path, comment, browseable, permAll, usergroups, users): samba = SambaConf() samba.addShare(name, path, comment, browseable, permAll, usergroups, users, mod=True) return samba.save()
def addShare(name, path, comment, browseable, permAll, usergroups, users): samba = SambaConf() samba.addShare(name, path, comment, browseable, permAll, usergroups, users) samba.save() return name