changeset 25:3e888522973b

fix module headers, add missing info, make formatting consistent
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 27 Feb 2011 16:58:22 +0100
parents 335d7489a074
children 4cd8edde9e94
files MoinMoin/_tests/ldap_testdata.py MoinMoin/datastruct/backends/_tests/test_composite_dicts.py MoinMoin/datastruct/backends/_tests/test_composite_groups.py MoinMoin/script/old/print_stats.py MoinMoin/search/_tests/test_terms.py MoinMoin/storage/_tests/__init__.py MoinMoin/util/SubProcess.py MoinMoin/util/edit_lock.py MoinMoin/util/kvstore.py MoinMoin/util/pycdb.py MoinMoin/util/send_file.py
diffstat 11 files changed, 35 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/_tests/ldap_testdata.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/_tests/ldap_testdata.py	Sun Feb 27 16:58:22 2011 +0100
@@ -1,3 +1,10 @@
+"""
+    MoinMoin - LDAP test data
+
+    @copyright: 2008 MoinMoin:ThomasWaldmann
+    @license: GNU GPL v2 (or any later version), see LICENSE.txt for details.
+"""
+
 BASEDN = "ou=testing,dc=example,dc=org"
 ROOTDN = "cn=root,%s" % BASEDN
 ROOTPW = "secret"
--- a/MoinMoin/datastruct/backends/_tests/test_composite_dicts.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/datastruct/backends/_tests/test_composite_dicts.py	Sun Feb 27 16:58:22 2011 +0100
@@ -1,4 +1,3 @@
-
 """
 MoinMoin.datastruct.backends.composite_dicts test
 
--- a/MoinMoin/datastruct/backends/_tests/test_composite_groups.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/datastruct/backends/_tests/test_composite_groups.py	Sun Feb 27 16:58:22 2011 +0100
@@ -1,4 +1,3 @@
-
 """
 MoinMoin.datastruct.backends.composite_groups test
 
--- a/MoinMoin/script/old/print_stats.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/script/old/print_stats.py	Sun Feb 27 16:58:22 2011 +0100
@@ -14,9 +14,10 @@
 
     Currently CGI and twisted also have a hotshot profiler integration.
 
-    @copyright: 2005 by Thomas Waldmann (MoinMoin:ThomasWaldmann)
+    @copyright: 2005 by MoinMoin:ThomasWaldmann
     @license: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 """
+
 def run():
     import sys
     from hotshot import stats
--- a/MoinMoin/search/_tests/test_terms.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/search/_tests/test_terms.py	Sun Feb 27 16:58:22 2011 +0100
@@ -1,5 +1,8 @@
 """
-    Term tests.
+    MoinMoin - Term tests.
+
+    @copyright: 2008 MoinMoin:JohannesBerg
+    @license: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 """
 
 import re
--- a/MoinMoin/storage/_tests/__init__.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/storage/_tests/__init__.py	Sun Feb 27 16:58:22 2011 +0100
@@ -1,3 +1,6 @@
 """
-    Storage test package.
+    MoinMoin - Storage test package.
+
+    @copyright: 2011 The MoinMoin development team
+    @license: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 """
--- a/MoinMoin/util/SubProcess.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/util/SubProcess.py	Sun Feb 27 16:58:22 2011 +0100
@@ -4,6 +4,10 @@
 
 Sample usage:
     out, err = Popen(...).communicate(input, timeout=300)
+
+@copyright: 2003-2005 by Peter Astrand <astrand@lysator.liu.se>,
+            2009,2010 by Thomas Waldmann (modifications)
+@license: Python license (http://www.python.org/2.4/license)
 """
 
 import os
--- a/MoinMoin/util/edit_lock.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/util/edit_lock.py	Sun Feb 27 16:58:22 2011 +0100
@@ -1,6 +1,9 @@
-#############################################################################
-### Page edit locking
-#############################################################################
+"""
+    MoinMoin - Edit Locking
+
+    @copyright: 2006-2011 The MoinMoin development team
+    @license: GNU GPL v2 (or any later version), see LICENSE.txt for details.
+"""
 
 EDIT_LOCK_TIMESTAMP = "edit_lock_timestamp"
 EDIT_LOCK_ADDR = "edit_lock_addr"
--- a/MoinMoin/util/kvstore.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/util/kvstore.py	Sun Feb 27 16:58:22 2011 +0100
@@ -2,8 +2,8 @@
 """
 kvstore - a flexible key/value store using sqlalchemy
 
-@license: GPL v2 or later
-@copyright: Thomas Waldmann
+@copyright: 2010 by Thomas Waldmann
+@license: GNU GPL v2 (or any later version), see LICENSE.txt for details.
 """
 
 from UserDict import DictMixin
--- a/MoinMoin/util/pycdb.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/util/pycdb.py	Sun Feb 27 16:58:22 2011 +0100
@@ -1,11 +1,9 @@
 """
 pycdb.py - Python implementation of cdb
 
-  by Yusuke Shinyama
-  * public domain *
-
-  Coding style fixes (and tcdb removal) by Johannes Berg
-  PEP8 fixes by MoinMoin:ReimarBauer
+@copyright: Yusuke Shinyama (author),
+            Johannes Berg (coding style fixes and tcdb removal)
+@license: Public Domain
 """
 
 import os
--- a/MoinMoin/util/send_file.py	Sun Feb 27 01:12:24 2011 +0100
+++ b/MoinMoin/util/send_file.py	Sun Feb 27 16:58:22 2011 +0100
@@ -13,8 +13,9 @@
 compatible), because we can easily adapt anyway and the code can be much
 simpler without compatibility code.
 
-This code is under same license as flask.
-Modifications were done by Thomas Waldmann.
+@copyright: 2010 by Armin Ronacher (initial implementation),
+            2011 by MoinMoin:ThomasWaldmann (modifications)
+@license: BSD (see license of flask)
 """
 
 import os