[Pkg-debile-commits] [debile-master] 03/03: flake8 clean up of debilemaster.orm

Vasudev Kamath vasudev-guest at moszumanska.debian.org
Sun Mar 2 13:56:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

vasudev-guest pushed a commit to branch master
in repository debile-master.

commit 65bfd8ab9df28beb1d72b5650b4f8d3b60101d8b
Author: Vasudev Kamath <kamathvasudev at gmail.com>
Date:   Sun Mar 2 19:25:59 2014 +0530

    flake8 clean up of debilemaster.orm
    
    * Wrapped long lines of comments
    * fixed indentation in multiline instructions
---
 debilemaster/orm.py | 49 +++++++++++++++++++++++++++++--------------------
 1 file changed, 29 insertions(+), 20 deletions(-)

diff --git a/debilemaster/orm.py b/debilemaster/orm.py
index ef26ded..d76f48d 100644
--- a/debilemaster/orm.py
+++ b/debilemaster/orm.py
@@ -83,7 +83,8 @@ class Machine(Base):
     __tablename__ = 'machines'
     id = Column(Integer, primary_key=True)
 
-    # The name of the builder which is also used by the machine to login via the
+    # The name of the builder which is also used by the machine to
+    # login via the
     # XML-RPC interface
     name = Column(String(100), unique=True)
     # A password for the Machine used to login via XML-RPC
@@ -105,8 +106,8 @@ class Machine(Base):
 
 class Group(Base):
     """
-    A Group is an entity to group packages, enabling users to do group rebuilds,
-    or make stats on several packages linked together.
+    A Group is an entity to group packages, enabling users to do group
+    rebuilds, or make stats on several packages linked together.
     """
     # ORM internal
     __tablename__ = 'groups'
@@ -118,10 +119,11 @@ class Group(Base):
 
 class Package(Base):
     """
-    A Package is a polymorphic entity that can represent either a Source package
-    or a Binary package.
-    This enables searching through both of packages type via the common
-    attributes of the entities (name, version, ...)
+    A Package is a polymorphic entity that can represent either a
+    Source package or a Binary package.
+
+    This enables searching through both of packages type via the
+    common attributes of the entities (name, version, ...)
     """
     __tablename__ = 'packages'
     package_id = Column(Integer, primary_key=True)
@@ -150,15 +152,20 @@ postgres.ischema_names['debversion'] = DebVersion
 class Source(Package):
     """
     See the polymorphic type Package.
-    A Source represents an entry of a Debian source package in the debile system
-    usually meaning a .dsc, .orig.tar.gz, .debian.tar.gz.
-    A Source is uploaded by a User into the system. The debile system adds
-    special build jobs to turn the Source into Binaries with Machines.
+
+    A Source represents an entry of a Debian source package in the
+    debile system usually meaning a .dsc, .orig.tar.gz,
+    .debian.tar.gz.
+
+    A Source is uploaded by a User into the system. The debile system
+    adds special build jobs to turn the Source into Binaries with
+    Machines.
     """
     # ORM internal & polymorphism
     __tablename__ = 'sources'
     __mapper_args__ = {'polymorphic_identity': 'source'}
-    source_id = Column(Integer, ForeignKey('packages.package_id'), primary_key=True)
+    source_id = Column(Integer, ForeignKey('packages.package_id'),
+                       primary_key=True)
 
     ### FROM the .changes file
     # The package name
@@ -197,17 +204,19 @@ class Source(Package):
 class Binary(Package):
     """
     See the polymorphic type Package.
-    A binary represents an entry of a Debian binary package in the debile system
-    meaning a .deb.
-    A Binary is uploaded by a Machine into the system, originating from a Source
-    uploaded by a User and a build type Job.
+
+    A binary represents an entry of a Debian binary package in the
+    debile system meaning a .deb.
+
+    A Binary is uploaded by a Machine into the system, originating
+    from a Source uploaded by a User and a build type Job.
     """
     # ORM Internal & polymorphism
     __tablename__ = 'binaries'
     __mapper_args__ = {'polymorphic_identity': 'binary'}
     binary_id = Column(Integer,
-                    ForeignKey('packages.package_id'),
-                    primary_key=True)
+                       ForeignKey('packages.package_id'),
+                       primary_key=True)
 
     # Creation time of the Binary, meaning when it was processed via incoming/
     # and not when it was output by the builder
@@ -234,8 +243,8 @@ class Binary(Package):
     # The source this binary package has been built from
     source_id = Column(Integer, ForeignKey('sources.source_id'))
     source = relationship("Source",
-                backref=backref('binaries', order_by=name),
-                foreign_keys=[source_id])
+                          backref=backref('binaries', order_by=name),
+                          foreign_keys=[source_id])
     # The .deb filename
     deb = Column(String(100))
     # The compiler (build subtype/flavor) used to produce this binary.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-master.git



More information about the Pkg-debile-commits mailing list