changeset 1532:2afe9320d5e6 beta

updated docstrings
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 08 Oct 2011 03:00:03 +0200
parents 7d64456775ad
children c0e6057543ff
files rhodecode/lib/auth.py rhodecode/lib/backup_manager.py rhodecode/lib/exceptions.py rhodecode/lib/smtp_mailer.py rhodecode/tests/test_concurency.py rhodecode/tests/test_hg_operations.py rhodecode/tests/test_libs.py
diffstat 7 files changed, 67 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/auth.py	Sat Oct 08 02:09:42 2011 +0200
+++ b/rhodecode/lib/auth.py	Sat Oct 08 03:00:03 2011 +0200
@@ -6,8 +6,8 @@
     authentication and permission libraries
 
     :created_on: Apr 4, 2010
-    :copyright: (c) 2010 by marcink.
-    :license: LICENSE_NAME, see LICENSE_FILE for more details.
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
 """
 # 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
--- a/rhodecode/lib/backup_manager.py	Sat Oct 08 02:09:42 2011 +0200
+++ b/rhodecode/lib/backup_manager.py	Sat Oct 08 03:00:03 2011 +0200
@@ -7,8 +7,8 @@
     repositories and send it to backup server using RSA key via ssh.
 
     :created_on: Feb 28, 2010
-    :copyright: (c) 2010 by marcink.
-    :license: LICENSE_NAME, see LICENSE_FILE for more details.
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
 """
 # 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
--- a/rhodecode/lib/exceptions.py	Sat Oct 08 02:09:42 2011 +0200
+++ b/rhodecode/lib/exceptions.py	Sat Oct 08 03:00:03 2011 +0200
@@ -6,8 +6,8 @@
     Set of custom exceptions used in RhodeCode
 
     :created_on: Nov 17, 2010
-    :copyright: (c) 2010 by marcink.
-    :license: LICENSE_NAME, see LICENSE_FILE for more details.
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
 """
 # 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
--- a/rhodecode/lib/smtp_mailer.py	Sat Oct 08 02:09:42 2011 +0200
+++ b/rhodecode/lib/smtp_mailer.py	Sat Oct 08 03:00:03 2011 +0200
@@ -6,9 +6,21 @@
     Simple smtp mailer used in RhodeCode
 
     :created_on: Sep 13, 2010
-    :copyright: (c) 2011 by marcink.
-    :license: LICENSE_NAME, see LICENSE_FILE for more details.
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
 """
+# 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/>.
 
 import logging
 import smtplib
--- a/rhodecode/tests/test_concurency.py	Sat Oct 08 02:09:42 2011 +0200
+++ b/rhodecode/tests/test_concurency.py	Sat Oct 08 03:00:03 2011 +0200
@@ -6,9 +6,21 @@
     Test suite for making push/pull operations
 
     :created_on: Dec 30, 2010
-    :copyright: (c) 2010 by marcink.
-    :license: LICENSE_NAME, see LICENSE_FILE for more details.
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
 """
+# 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/>.
 
 import os
 import sys
@@ -123,7 +135,7 @@
         rm = RepoModel(sa)
         rm.base_path = '/home/hg'
         rm.create(form_data, user)
-    
+
     print 'done'
 
 def set_anonymous_access(enable=True):
@@ -141,10 +153,10 @@
 #==============================================================================
 # TESTS
 #==============================================================================
-def test_clone_with_credentials(no_errors=False,repo=HG_REPO):
+def test_clone_with_credentials(no_errors=False, repo=HG_REPO):
     cwd = path = jn(TESTS_TMP_PATH, repo)
 
-    
+
     try:
         shutil.rmtree(path, ignore_errors=True)
         os.makedirs(path)
@@ -158,7 +170,7 @@
                    'pass':PASS,
                    'host':HOST,
                    'cloned_repo':repo,
-                   'dest':path+_RandomNameSequence().next()}
+                   'dest':path + _RandomNameSequence().next()}
 
     stdout, stderr = Command(cwd).execute('hg clone', clone_url)
 
@@ -173,5 +185,5 @@
         for i in range(int(sys.argv[2])):
             test_clone_with_credentials(repo=sys.argv[1])
 
-    except Exception,e:
+    except Exception, e:
         sys.exit('stop on %s' % e)
--- a/rhodecode/tests/test_hg_operations.py	Sat Oct 08 02:09:42 2011 +0200
+++ b/rhodecode/tests/test_hg_operations.py	Sat Oct 08 03:00:03 2011 +0200
@@ -6,9 +6,21 @@
     Test suite for making push/pull operations
 
     :created_on: Dec 30, 2010
-    :copyright: (c) 2010 by marcink.
-    :license: LICENSE_NAME, see LICENSE_FILE for more details.
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
 """
+# 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/>.
 
 import os
 import time
--- a/rhodecode/tests/test_libs.py	Sat Oct 08 02:09:42 2011 +0200
+++ b/rhodecode/tests/test_libs.py	Sat Oct 08 03:00:03 2011 +0200
@@ -7,9 +7,21 @@
     Package for testing various lib/helper functions in rhodecode
     
     :created_on: Jun 9, 2011
-    :copyright: (c) 2011 by marcink.
-    :license: LICENSE_NAME, see LICENSE_FILE for more details.
+    :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com>
+    :license: GPLv3, see COPYING for more details.
 """
+# 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/>.