1. igoryan
  2. thelayouts

Commits

igoryan  committed 5832bc5

Added setup.py script

G: Enter commit message. Lines beginning with 'HG:' are removed.

  • Participants
  • Parent commits 1a6ec8d
  • Branches default

Comments (0)

Files changed (5)

File .hgignore

View file
 *\#
 .\#*
 build/*
+dist/*
 .emacs-project
 *.sublime-project
 *.sublime-workspace

File README.txt

View file
+TheLayouts library version 0.1. It is intended for rendering forms into HTML in
+a fancy way. Layouts provide collection of polymorphic elements which are able 
+to be built into a tree structure which represents how the form fields are to be 
+rendered.
+
+In order to install TheLayouts into your Python environment run the following 
+shell command:
+
+    > pip install hg+https://bitbucket.org/igoryan/thelayouts
+
+Or download the source archive from this page:
+    
+    https://bitbucket.org/igoryan/thelayouts
+
+unpack it and run:
+
+    > python setup.py
+
+Authors:
+    
+    - Igor Mazur (igor.v.mazur@gmail.com)
+    - Andrew Bovsunovskyy (andrewbovsunovskiy@gmail.com)
+    - Alexander Koval

File install.txt

-TheLayouts library version 0.1. It is intended for rendering forms into HTML in
-a fancy way. Layouts provide collection of polymorphic elements which are able 
-to be built into a tree structure which represents how the form fields are to be 
-rendered.
-
-In order to install TheLayouts into your Python environment run the folling 
-shell command:
-
-    > pip install -e hg+https://bitbucket.org/igoryan/thelayouts
-
-Or download the source archive from this page:
-    
-    https://bitbucket.org/igoryan/thelayouts
-
-unpack it and run:
-
-    > python setup.py
-
-Authors:
-    
-    - Igor Mazur (igor.v.mazur@gmail.com)
-    - Andrew Bovsunovskyy (andrewbovsunovskiy@gmail.com)
-    - Alexander Koval

File setup.py

View file
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+from distutils.core import setup
+
+setup(
+    name='TheLayouts',
+    version='0.1',
+    description='Forms rendering labrary',
+    author='Igor Mzur',
+    author_email='igor.v.mazur@gmail.com',
+    url='https://bitbucket.org/igoryan/thelayouts',
+    packages=["thelayouts"],
+    #packages=['distutils', 'distutils.command', 'webhelpers'],
+)

File thelayouts/layouts_base.py

View file
 
     @property
     def label(self):
-        has_parent_label = self.get_parent_layout_element_label_text() is not None
+        has_parent_label = self.get_parent_layout_element_label_text() \
+            is not None
         return Label(
             getattr(self.form, self.name).label.text if not has_parent_label \
                 else self.parent_layout_element.label_text,