Changeset - 494b04a84a49
[Not reviewed]
default
0 6 0
Thomas De Schampheleire - 11 years ago 2015-03-12 22:07:00
thomas.de.schampheleire@gmail.com
model: trivial typo fixes
6 files changed with 22 insertions and 22 deletions:
0 comments (0 inline, 0 general)
kallithea/model/changeset_status.py
Show inline comments
 
@@ -3,7 +3,7 @@
 
kallithea.model.changeset_status
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

	
 
Changeset status conttroller
 
Changeset status controller
 

	
 
This file was forked by the Kallithea project in July 2014.
 
Original author and date, and relevant copyright and licensing information is below:
kallithea/model/db.py
Show inline comments
 
@@ -69,7 +69,7 @@ _hash_key = lambda k: hashlib.md5(safe_s
 

	
 
class BaseModel(object):
 
    """
 
    Base Model for all classess
 
    Base Model for all classes
 
    """
 

	
 
    @classmethod
 
@@ -97,7 +97,7 @@ class BaseModel(object):
 
        return d
 

	
 
    def get_appstruct(self):
 
        """return list with keys and values tupples corresponding
 
        """return list with keys and values tuples corresponding
 
        to this model data """
 

	
 
        l = []
 
@@ -1051,7 +1051,7 @@ class Repository(Base, BaseModel):
 
    def normalize_repo_name(cls, repo_name):
 
        """
 
        Normalizes os specific repo_name to the format internally stored inside
 
        dabatabase using URL_SEP
 
        database using URL_SEP
 

	
 
        :param cls:
 
        :param repo_name:
 
@@ -1540,7 +1540,7 @@ class RepoGroup(Base, BaseModel):
 
            if gr is None:
 
                break
 
            if cnt == parents_recursion_limit:
 
                # this will prevent accidental infinit loops
 
                # this will prevent accidental infinite loops
 
                log.error(('more than %s parents found for group %s, stopping '
 
                           'recursive parent fetching' % (parents_recursion_limit, self)))
 
                break
kallithea/model/forms.py
Show inline comments
 
@@ -12,9 +12,9 @@
 
# You should have received a copy of the GNU General Public License
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
"""
 
this is forms validation classes
 
these are form validation classes
 
http://formencode.org/module-formencode.validators.html
 
for list off all availible validators
 
for list of all available validators
 

	
 
we can create our own validators
 

	
kallithea/model/scm.py
Show inline comments
 
@@ -475,7 +475,7 @@ class ScmModel(BaseModel):
 

	
 
        :param repo: SCM repo
 
        :param username: username who pushes
 
        :param action: push/push_loca/push_remote
 
        :param action: push/push_local/push_remote
 
        :param repo_name: name of repo
 
        :param revisions: list of revisions that we pushed
 
        """
 
@@ -611,15 +611,15 @@ class ScmModel(BaseModel):
 
        """
 
        Commits specified nodes to repo.
 

	
 
        :param user: Kallithea User object or user_id, the commiter
 
        :param user: Kallithea User object or user_id, the committer
 
        :param repo: Kallithea Repository object
 
        :param message: commit message
 
        :param nodes: mapping {filename:{'content':content},...}
 
        :param parent_cs: parent changeset, can be empty than it's initial commit
 
        :param author: author of commit, cna be different that commiter only for git
 
        :param author: author of commit, cna be different that committer only for git
 
        :param trigger_push_hook: trigger push hooks
 

	
 
        :returns: new commited changeset
 
        :returns: new committed changeset
 
        """
 

	
 
        user = self._get_user(user)
 
@@ -643,8 +643,8 @@ class ScmModel(BaseModel):
 
            processed_nodes.append((f_path, content))
 

	
 
        message = safe_unicode(message)
 
        commiter = user.full_contact
 
        author = safe_unicode(author) if author else commiter
 
        committer = user.full_contact
 
        author = safe_unicode(author) if author else committer
 

	
 
        IMC = self._get_IMC_module(scm_instance.alias)
 
        imc = IMC(scm_instance)
 
@@ -681,8 +681,8 @@ class ScmModel(BaseModel):
 
        scm_instance = repo.scm_instance_no_cache()
 

	
 
        message = safe_unicode(message)
 
        commiter = user.full_contact
 
        author = safe_unicode(author) if author else commiter
 
        committer = user.full_contact
 
        author = safe_unicode(author) if author else committer
 

	
 
        imc_class = self._get_IMC_module(scm_instance.alias)
 
        imc = imc_class(scm_instance)
 
@@ -736,15 +736,15 @@ class ScmModel(BaseModel):
 
        """
 
        Deletes specified nodes from repo.
 

	
 
        :param user: Kallithea User object or user_id, the commiter
 
        :param user: Kallithea User object or user_id, the committer
 
        :param repo: Kallithea Repository object
 
        :param message: commit message
 
        :param nodes: mapping {filename:{'content':content},...}
 
        :param parent_cs: parent changeset, can be empty than it's initial commit
 
        :param author: author of commit, cna be different that commiter only for git
 
        :param author: author of commit, cna be different that committer only for git
 
        :param trigger_push_hook: trigger push hooks
 

	
 
        :returns: new commited changeset after deletion
 
        :returns: new committed changeset after deletion
 
        """
 

	
 
        user = self._get_user(user)
 
@@ -759,8 +759,8 @@ class ScmModel(BaseModel):
 
            processed_nodes.append((f_path, content))
 

	
 
        message = safe_unicode(message)
 
        commiter = user.full_contact
 
        author = safe_unicode(author) if author else commiter
 
        committer = user.full_contact
 
        author = safe_unicode(author) if author else committer
 

	
 
        IMC = self._get_IMC_module(scm_instance.alias)
 
        imc = IMC(scm_instance)
kallithea/model/user.py
Show inline comments
 
@@ -335,7 +335,7 @@ class UserModel(BaseModel):
 
        """
 
        Fetches auth_user by user_id,or api_key if present.
 
        Fills auth_user attributes with those taken from database.
 
        Additionally sets is_authenitated if lookup fails
 
        Additionally sets is_authenticated if lookup fails
 
        present in database
 

	
 
        :param auth_user: instance of user to set attributes
kallithea/model/validators.py
Show inline comments
 
@@ -643,7 +643,7 @@ def ValidPerms(type_='repo'):
 
                    if member == User.DEFAULT_USER:
 
                        if str2bool(value.get('repo_private')):
 
                            # set none for default when updating to
 
                            # private repo protects agains form manipulation
 
                            # private repo protects against form manipulation
 
                            v = EMPTY_PERM
 
                    perms_update.add((member, v, t))
 

	
0 comments (0 inline, 0 general)