semvec/pypi-packages huggingface dataset:
django_reform 0.3.0
Control of widgets in templates sans BS.
License: BSD
Keywords: django_reform

=============================
django_reform
=============================

.. image:: https://badge.fury.io/py/django_reform.png
    :target: http://badge.fury.io/py/django_reform
    
.. image:: https://travis-ci.org/alixedi/django_reform.png?branch=master
        :target: https://travis-ci.org/alixedi/django_reform

.. image:: https://pypip.in/d/django_reform/badge.png
        :target: https://crate.io/packages/django_reform?version=latest


Control of widgets in templates sans BS.

Installation
------------

We are at the cheeseshop: ::

	pip install django_reform

Usage
-----

To use django_reform in a project:

1. Include it in INSTALLED_APPS in your settings file.

2. Render your forms like so: ::
	
	{% load reform %}
	{{ reform form }}

3. Open reform/templates/reform/field.html - by default rendering HTML5 input types. Go ahead and tweak: ::

	{% load widget_tweaks reform %}
	{% with field_type=field|get_form_field_type %}
	    {% if field_type == 'DateField' %}
	        {% render_field field type="date" %}
	    {% elif field_type == 'EmailField' %}
	        {% render_field field type="email" %}
	    {% elif field_type == 'URLField' %}
	        {% render_field field type="url" %}
	    {% else %}
	        {{ field }}
	    {% endif %}
	{% endwith %}

4. Advanced usage - controlling which fields to include, order of the fields as well as number of columns in which the form is rendered. The code below will render a form with the given fields, bootstrap vertical layout, no float and using 3-columns: ::

	{% reform form 'email, number, url, time' 'vertical,false,3' %}

Sans BS as promised :)




History
-------

0.1.0 (2013-11-25)
++++++++++++++++++

* First release on PyPI.

0.1.1 (2013-11-25)
++++++++++++++++++

* Basic documentation.

0.2.0 (2013-12-8)
++++++++++++++++++

* Added replacement for bootstrap_toolkit's as_bootstrap template filter. The reform template tag passed the original template context to the form templates enabling checks for instance for permissions etc.

0.2.1 (2013-12-8)
++++++++++++++++++

* Added bootstrp CDN.

0.3.0 (2013-12-10)
++++++++++++++++++

* Added bootstrp for field inclusions and orderings as well a multi-column layouts.
chssh 0.4.2
ssh wrappers to transparently use chef node names instead of hostnames
License: BSD

=================================================
chssh -- Interactive ssh and scp for chef server
=================================================

Inspired by ec2-ssh from instagram, this uses the pychef library to allow you to address your hosts by their chef node name instead of the dns name.

This differs from `knife ssh` because these tools operate with interactive shells, and are meant for working with 1 node at a time.

Prerequisities
--------------

You need to have an installed and configured chef client on your machine. The code uses the pychef autoconfigure() to discover and load the chef configuration

Usage
-----

        ``chssh node1``   # ssh to chef node node1

        ``chssh user@node1``  # ssh as user to chef node node1

        ``chscp file user@node1:path`` # scp file to chef node node1

        ``chscp user@node1:path`` . # scp file from chef node node1

Enjoy!