Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
20dae799
Commit
20dae799
authored
Mar 13, 2012
by
Julien Muchembled
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix and update copyright notices
parent
c4e49518
Changes
135
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
135 changed files
with
260 additions
and
453 deletions
+260
-453
app.py
neo/admin/app.py
+2
-3
handler.py
neo/admin/handler.py
+2
-3
Storage.py
neo/client/Storage.py
+2
-3
__init__.py
neo/client/__init__.py
+1
-1
app.py
neo/client/app.py
+2
-3
cache.py
neo/client/cache.py
+4
-16
config.py
neo/client/config.py
+2
-3
container.py
neo/client/container.py
+1
-2
exception.py
neo/client/exception.py
+1
-2
__init__.py
neo/client/handlers/__init__.py
+2
-3
master.py
neo/client/handlers/master.py
+2
-3
storage.py
neo/client/handlers/storage.py
+2
-3
iterator.py
neo/client/iterator.py
+2
-3
poll.py
neo/client/poll.py
+2
-3
pool.py
neo/client/pool.py
+2
-3
__init__.py
neo/lib/__init__.py
+2
-3
attributeTracker.py
neo/lib/attributeTracker.py
+2
-3
bootstrap.py
neo/lib/bootstrap.py
+2
-3
config.py
neo/lib/config.py
+2
-3
connection.py
neo/lib/connection.py
+2
-3
connector.py
neo/lib/connector.py
+2
-3
debug.py
neo/lib/debug.py
+1
-2
dispatcher.py
neo/lib/dispatcher.py
+2
-3
event.py
neo/lib/event.py
+2
-3
exception.py
neo/lib/exception.py
+2
-3
handler.py
neo/lib/handler.py
+2
-3
logger.py
neo/lib/logger.py
+2
-3
node.py
neo/lib/node.py
+2
-3
profiling.py
neo/lib/profiling.py
+1
-2
protocol.py
neo/lib/protocol.py
+2
-3
pt.py
neo/lib/pt.py
+2
-3
util.py
neo/lib/util.py
+2
-3
app.py
neo/master/app.py
+2
-3
backup_app.py
neo/master/backup_app.py
+4
-16
__init__.py
neo/master/handlers/__init__.py
+2
-3
administration.py
neo/master/handlers/administration.py
+2
-3
backup.py
neo/master/handlers/backup.py
+4
-16
client.py
neo/master/handlers/client.py
+2
-3
election.py
neo/master/handlers/election.py
+2
-3
identification.py
neo/master/handlers/identification.py
+2
-3
secondary.py
neo/master/handlers/secondary.py
+2
-3
shutdown.py
neo/master/handlers/shutdown.py
+2
-3
storage.py
neo/master/handlers/storage.py
+2
-3
pt.py
neo/master/pt.py
+2
-3
recovery.py
neo/master/recovery.py
+2
-3
transactions.py
neo/master/transactions.py
+2
-3
verification.py
neo/master/verification.py
+2
-3
app.py
neo/neoctl/app.py
+2
-3
handler.py
neo/neoctl/handler.py
+2
-3
neoctl.py
neo/neoctl/neoctl.py
+2
-3
neoadmin.py
neo/scripts/neoadmin.py
+1
-2
neoctl.py
neo/scripts/neoctl.py
+1
-2
neomaster.py
neo/scripts/neomaster.py
+1
-2
neomigrate.py
neo/scripts/neomigrate.py
+1
-2
neostorage.py
neo/scripts/neostorage.py
+1
-2
runner.py
neo/scripts/runner.py
+1
-2
simple.py
neo/scripts/simple.py
+4
-16
app.py
neo/storage/app.py
+2
-3
checker.py
neo/storage/checker.py
+4
-16
__init__.py
neo/storage/database/__init__.py
+2
-3
manager.py
neo/storage/database/manager.py
+2
-3
mysqldb.py
neo/storage/database/mysqldb.py
+2
-3
sqlite.py
neo/storage/database/sqlite.py
+1
-2
exception.py
neo/storage/exception.py
+1
-2
__init__.py
neo/storage/handlers/__init__.py
+2
-3
client.py
neo/storage/handlers/client.py
+2
-3
hidden.py
neo/storage/handlers/hidden.py
+2
-3
identification.py
neo/storage/handlers/identification.py
+2
-3
initialization.py
neo/storage/handlers/initialization.py
+2
-3
master.py
neo/storage/handlers/master.py
+2
-3
storage.py
neo/storage/handlers/storage.py
+2
-3
verification.py
neo/storage/handlers/verification.py
+2
-3
replicator.py
neo/storage/replicator.py
+2
-3
transactions.py
neo/storage/transactions.py
+1
-2
__init__.py
neo/tests/__init__.py
+2
-3
testClientApp.py
neo/tests/client/testClientApp.py
+2
-3
testConnectionPool.py
neo/tests/client/testConnectionPool.py
+2
-3
testMasterHandler.py
neo/tests/client/testMasterHandler.py
+2
-3
testStorageHandler.py
neo/tests/client/testStorageHandler.py
+2
-3
cluster.py
neo/tests/cluster.py
+2
-4
__init__.py
neo/tests/functional/__init__.py
+2
-3
testClient.py
neo/tests/functional/testClient.py
+2
-3
testCluster.py
neo/tests/functional/testCluster.py
+2
-3
testMaster.py
neo/tests/functional/testMaster.py
+2
-3
testStorage.py
neo/tests/functional/testStorage.py
+2
-3
testClientHandler.py
neo/tests/master/testClientHandler.py
+2
-3
testElectionHandler.py
neo/tests/master/testElectionHandler.py
+2
-3
testMasterApp.py
neo/tests/master/testMasterApp.py
+2
-3
testMasterPT.py
neo/tests/master/testMasterPT.py
+2
-3
testRecovery.py
neo/tests/master/testRecovery.py
+2
-3
testStorageHandler.py
neo/tests/master/testStorageHandler.py
+2
-3
testTransactions.py
neo/tests/master/testTransactions.py
+2
-3
testVerification.py
neo/tests/master/testVerification.py
+2
-3
testClientHandler.py
neo/tests/storage/testClientHandler.py
+2
-3
testIdentificationHandler.py
neo/tests/storage/testIdentificationHandler.py
+2
-3
testInitializationHandler.py
neo/tests/storage/testInitializationHandler.py
+2
-3
testMasterHandler.py
neo/tests/storage/testMasterHandler.py
+2
-3
testStorageApp.py
neo/tests/storage/testStorageApp.py
+2
-3
testStorageDBTests.py
neo/tests/storage/testStorageDBTests.py
+2
-3
testStorageMySQL.py
neo/tests/storage/testStorageMySQL.py
+2
-3
testStorageSQLite.py
neo/tests/storage/testStorageSQLite.py
+2
-3
testTransactions.py
neo/tests/storage/testTransactions.py
+1
-2
testVerificationHandler.py
neo/tests/storage/testVerificationHandler.py
+2
-3
testBootstrap.py
neo/tests/testBootstrap.py
+2
-3
testConnection.py
neo/tests/testConnection.py
+2
-3
testDispatcher.py
neo/tests/testDispatcher.py
+2
-3
testEvent.py
neo/tests/testEvent.py
+2
-3
testHandler.py
neo/tests/testHandler.py
+2
-3
testNodes.py
neo/tests/testNodes.py
+2
-3
testPT.py
neo/tests/testPT.py
+2
-3
testProtocol.py
neo/tests/testProtocol.py
+2
-3
testUtil.py
neo/tests/testUtil.py
+2
-3
__init__.py
neo/tests/threaded/__init__.py
+2
-4
test.py
neo/tests/threaded/test.py
+2
-4
testReplication.py
neo/tests/threaded/testReplication.py
+2
-4
__init__.py
neo/tests/zodb/__init__.py
+2
-3
testBasic.py
neo/tests/zodb/testBasic.py
+2
-3
testConflict.py
neo/tests/zodb/testConflict.py
+2
-3
testHistory.py
neo/tests/zodb/testHistory.py
+2
-3
testIterator.py
neo/tests/zodb/testIterator.py
+2
-3
testMT.py
neo/tests/zodb/testMT.py
+2
-3
testPack.py
neo/tests/zodb/testPack.py
+2
-3
testPersistent.py
neo/tests/zodb/testPersistent.py
+2
-3
testReadOnly.py
neo/tests/zodb/testReadOnly.py
+2
-3
testRecovery.py
neo/tests/zodb/testRecovery.py
+2
-3
testRevision.py
neo/tests/zodb/testRevision.py
+2
-3
testSynchronization.py
neo/tests/zodb/testSynchronization.py
+2
-3
testUndo.py
neo/tests/zodb/testUndo.py
+2
-3
testVersion.py
neo/tests/zodb/testVersion.py
+2
-3
testZODB.py
neo/tests/zodb/testZODB.py
+2
-3
neoadmin
neoadmin
+1
-2
neoctl
neoctl
+1
-2
neomaster
neomaster
+1
-2
neomigrate
neomigrate
+1
-2
neostorage
neostorage
+1
-2
No files found.
neo/admin/app.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo.lib
...
...
neo/admin/handler.py
View file @
20dae799
#
# Copyright (C) 2009-201
0
Nexedi SA
# Copyright (C) 2009-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo
...
...
neo/client/Storage.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ZODB
import
BaseStorage
,
ConflictResolution
,
POSException
from
zope.interface
import
implements
...
...
neo/client/__init__.py
View file @
20dae799
##############################################################################
#
# Copyright (
c
) 2001, 2002 Zope Foundation and Contributors.
# Copyright (
C
) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
...
...
neo/client/app.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
cPickle
import
dumps
,
loads
from
zlib
import
compress
as
real_compress
,
decompress
...
...
neo/client/cache.py
View file @
20dae799
##############################################################################
#
# Copyright (c) 2011 Nexedi SARL and Contributors. All Rights Reserved.
# Julien Muchembled <jm@nexedi.com>
# Copyright (C) 2011-2012 Nexedi SA
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly advised to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# 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 2
# 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
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
math
...
...
neo/client/config.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
1
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ZODB.config
import
BaseConfig
...
...
neo/client/container.py
View file @
20dae799
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
thread
import
get_ident
from
neo.lib.locking
import
Queue
...
...
neo/client/exception.py
View file @
20dae799
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ZODB
import
POSException
...
...
neo/client/handlers/__init__.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
neo.lib.handler
import
EventHandler
from
neo.lib.protocol
import
ProtocolError
,
Packets
...
...
neo/client/handlers/master.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo.lib
from
neo.lib.pt
import
MTPartitionTable
as
PartitionTable
...
...
neo/client/handlers/storage.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ZODB.TimeStamp
import
TimeStamp
from
ZODB.POSException
import
ConflictError
...
...
neo/client/iterator.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
1
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ZODB
import
BaseStorage
from
zope.interface
import
implements
...
...
neo/client/poll.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
1
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
logging
import
DEBUG
,
ERROR
from
threading
import
Thread
,
Event
,
enumerate
as
thread_enum
...
...
neo/client/pool.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
time
from
random
import
shuffle
...
...
neo/lib/__init__.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
1
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
logging
as
logging_std
...
...
neo/lib/attributeTracker.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
1
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
ATTRIBUTE_TRACKER_ENABLED
=
False
...
...
neo/lib/bootstrap.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo
from
time
import
sleep
...
...
neo/lib/config.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
ConfigParser
import
SafeConfigParser
from
.
import
util
...
...
neo/lib/connection.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
functools
import
wraps
from
time
import
time
...
...
neo/lib/connector.py
View file @
20dae799
#
# Copyright (C) 2009-201
0
Nexedi SA
# Copyright (C) 2009-201
1
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
socket
import
errno
...
...
neo/lib/debug.py
View file @
20dae799
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
traceback
import
signal
...
...
neo/lib/dispatcher.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
functools
import
wraps
from
.locking
import
Lock
,
Empty
...
...
neo/lib/event.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
time
import
time
import
neo.lib
...
...
neo/lib/exception.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
1
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
class
NeoException
(
Exception
):
pass
...
...
neo/lib/handler.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
functools
import
wraps
import
neo.lib
...
...
neo/lib/logger.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
1
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
base64
import
b64encode
import
neo
...
...
neo/lib/node.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
time
import
time
from
os.path
import
exists
,
getsize
...
...
neo/lib/profiling.py
View file @
20dae799
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
Profiling is done with tiny-profiler, a very simple profiler.
...
...
neo/lib/protocol.py
View file @
20dae799
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
socket
import
sys
...
...
neo/lib/pt.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
math
from
functools
import
wraps
...
...
neo/lib/util.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
re
...
...
neo/master/app.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo
import
os
,
sys
...
...
neo/master/backup_app.py
View file @
20dae799
##############################################################################
#
# Copyright (c) 2011 Nexedi SARL and Contributors. All Rights Reserved.
# Julien Muchembled <jm@nexedi.com>
# Copyright (C) 2012 Nexedi SA
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly advised to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# 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 2
# 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
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
random
,
weakref
from
bisect
import
bisect
...
...
neo/master/handlers/__init__.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo
...
...
neo/master/handlers/administration.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
random
import
neo
...
...
neo/master/handlers/backup.py
View file @
20dae799
##############################################################################
#
# Copyright (c) 2011 Nexedi SARL and Contributors. All Rights Reserved.
# Julien Muchembled <jm@nexedi.com>
# Copyright (C) 2012 Nexedi SA
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsibility of assessing all potential
# consequences resulting from its eventual inadequacies and bugs
# End users who are looking for a ready-to-use solution with commercial
# guarantees and support are strongly advised to contract a Free Software
# Service Company
#
# This program is Free Software; you can redistribute it and/or
# 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 2
# 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
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
##############################################################################
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
neo.lib.exception
import
PrimaryFailure
from
neo.lib.handler
import
EventHandler
...
...
neo/master/handlers/client.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
1
Nexedi SA
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo.lib
from
neo.lib.protocol
import
NodeStates
,
Packets
,
ProtocolError
...
...
neo/master/handlers/election.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo.lib
...
...
neo/master/handlers/identification.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import
neo
...
...
neo/master/handlers/secondary.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -12,8 +12,7 @@
# 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from
.
import
MasterHandler
from
neo.lib.handler
import
EventHandler
...
...
neo/master/handlers/shutdown.py
View file @
20dae799
#
# Copyright (C) 2006-201
0
Nexedi SA
# Copyright (C) 2006-201
2
Nexedi SA