semvec/pypi-packages huggingface dataset:
django-contrib-comments-auth 0.1.1
This adds authentication to django.contrib.comments.
License: BSD
Keywords: comments django web

README
======

To make sure no bad hacker adds a comment with no authentication, you have to install a small app called django-contrib-comments-auth::

	pip install django-contrib-comments-auth
	
Add it to the INSTALLED_APPS::

 	INSTALLED_APPS = (
    # ...
    'django.contrib.comments',
    'commentsauth',
	)
	
Add these lines to your root urls.py::

	urlpatterns = patterns('',
    # ...
    (r'^comments/', include('commentsauth.urls'),
    (r'^comments/', include('django.contrib.comments.urls'))
	)
	
It must be *before* the django.contrib.comments.urls-directive and have the same prefix. 

The template for the comment-form could look like::

	{% load comments %}
	{% if request.user.is_authenticated %}
	<h2>Leave a comment</h2>
	{% get_comment_form for object as form %}
    <form action="{% comment_form_target %}" method="POST"> 
	{{ form.comment }} 
	{{ form.honeypot }} 
	{{ form.content_type }} 
	{{ form.object_pk }} 
	{{ form.timestamp }} 
	{{ form.security_hash }} 
	<input type="submit" value="Add comment" id="id_submit" />
	</form> 
	{% else %}
	<h1>Display login form or link to login page!</h1>
	{% endif %}
	
Please make sure to have these two lines in your MIDDLEWARE_CLASSES::

	MIDDLEWARE_CLASSES = (
	# ...
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.middleware.csrf.CsrfResponseMiddleware',
	)

	



News
====

0.1.1

*Release date: 12-Aug-2010*

* Added news to the NEWS.txt.

0.1
---

*Release date: 12-Aug-2010*

* First untested version published.
bitbucket-batch 0.1.2
A tool for bulk updating access to bitbucket.org repos.
License: BSD

===============
bitbucket-batch
===============

``bitbucket-batch`` is a command-line tool for making bulk access updates to 
`Bitbucket`_ repositories. It is useful in a corporate team situation where 
a single company account exists for managing private repositories with each 
team member having their own account with write access to these repositories.
When a new member joins or leaves the team, the process of manually adding or 
removing write access to all of the company's repositories can be tedious.
``bitbucket-batch`` allows you to make access updates to all of the company's 
repositories in a single command.

Installation
============

Assuming you have `setuptools`_ installed, the easiest method is to install 
directly from pypi by running the following command::

    $ easy_install -U bitbucket-batch

Otherwise you can download ``bitbucket-batch`` and install it directly from 
source::

    $ python setup.py install
    
Usage
=====

Once installed, the command ``bitbucket-batch`` should be available which 
can be run in the following format::

    $ bitbucket-batch repo_owner operation role user

Each of the required arguments are:

  * ``repo_owner``: The Bitbucket username for the owner of the repositories the bulk update will be made to.
  * ``operation``: The operation to apply which is either ``add`` or ``remove``.
  * ``role``: The role to use for the operation which is either ``reader``, ``writer`` or ``admin``.
  * ``user``: The Bitbucket username that the operation will be made for.
  
For example, to add the user ``stephenmcd`` as a ``writer`` to all 
repositories owned by the user ``citrus``, the command would be::

    $ bitbucket-batch citrus add writer stephenmcd
    
.. _`Bitbucket`: http://bitbucket.org/
.. _`setuptools`: http://pypi.python.org/pypi/setuptools