mirror of
https://github.com/samba-team/samba.git
synced 2025-07-27 07:42:04 +03:00
s4-python: Some reformatting for the purpose of pydoctor.
This commit is contained in:
@ -1,18 +1,16 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
# Unix SMB/CIFS implementation.
|
||||
# Copyright (C) Jelmer Vernooij <jelmer@samba.org> 2007
|
||||
#
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
@ -67,7 +65,7 @@ class TdbDatabase(object):
|
||||
|
||||
class Registry(TdbDatabase):
|
||||
"""Simple read-only support for reading the Samba3 registry.
|
||||
|
||||
|
||||
:note: This object uses the same syntax for registry key paths as
|
||||
Samba 3. This particular format uses forward slashes for key path
|
||||
separators and abbreviations for the predefined key names.
|
||||
@ -769,7 +767,7 @@ class Samba3(object):
|
||||
|
||||
def get_policy_db(self):
|
||||
return PolicyDatabase(self.libdir_path("account_policy.tdb"))
|
||||
|
||||
|
||||
def get_registry(self):
|
||||
return Registry(self.libdir_path("registry.tdb"))
|
||||
|
||||
|
Reference in New Issue
Block a user