semvec/pypi-packages huggingface dataset:
TracCaptcha 0.3.1
pluggable captcha infrastructure for Trac with reCAPTCHA included
License: MIT

TracCaptcha is a Trac plugin to embed a captcha in the ticket page in addition 
to Trac's regular permission checks so that spammers are kept out.

**"It just works":** Installation and configuration is very simple, just 
install the egg and put two configuration options in your trac.ini. No 
database changes required.

**Batteries included:** The popular reCAPTCHA system is supported out of the box.
Technically it's a plugin - if you don't like it you're free to use any other 
plugin while still leverage the benefits from the general captcha 
infrastructure.

**Does not annoy users:** After the user entered the captcha once, he does not have
to solve the captcha again for the same ticket when he just clicks 'preview'.
Also you can configure exempt certain users or groups (e.g. 'all authenticated 
users') from the captchas just by using Trac's permission system.

**Easy to extend:** Protecting an additional page with a captcha is very 
simple. Implementing captchas for the ticket module took only 20 lines of code! 
Captchas for the DiscussionPlugin needed 21 lines of code!

**Easy to write custom captchas:** If you don't like reCAPTCHA, you can still 
use the generic infrastructure with all its features: You implement the code to 
generate the captcha and validate the user's input. TracCaptcha will take care 
of displaying your plugin in all supported pages!


Changelog
******************************

0.3.1 (30.03.2011)
====================
- add config option to omit noscript section for recaptcha to enforce Javascript
  support for users

0.3 (25.03.2011)
====================
- add more debug logging about CAPTCHA display and accepted/rejected solutions 
  to identify better how spammers managed to file a spam ticket

0.2.2 (04.02.2011)
====================
- fix tests on current Trac trunk (0.13dev)
- fix: TICKET_ADMIN looses other ticket-related permissions on Trac < 0.13
  thanks to Anton V. for reporting

0.2.1 (10.11.2010)
====================
- fix "installation" as egg file in Trac plugins folder

0.2 (10.07.2010)
====================
- integration in 3rd party Trac plugins: TracDiscussionPlugin and 
  AccountManager (registration only)
- reCAPTCHA: select widget theme via trac.ini (requires simplejson for 
  Python 2.3-2.5)
- reCAPTCHA: display the widget in the user's locale (if translation is provided
  by the reCAPTCHA service)
- reCAPTCHA: use HTTPS to include script files if Trac page was served with 
  HTTPS
- reCAPTCHA: show link for reCAPTCHA signup if no keys configured
- reCAPTCHA: use new Google URLs

0.1 (25.06.2010)
==================
 - initial release
django-flatpages-tinymce 0.1.1
HTML editor on django.contrib.flatpages
License: MIT
Keywords: flatpages tinymce WYSIWYG

-----
About
-----

**django-flatpages-tinymce** provides on-site editing of "Flat Pages" with minimal
impact on the rest of code.

django-flatpages-tinymce is available under the MIT license.


-----
Usage
-----

First of all, you need to have **django-flatpages-tinymce**  and
**django-tinymce** installed; for your convenience, recent
versions should be available from PyPI.

To use, just add these applications to your INSTALLED_APPS **after**
**django.contrib.flatpages** app::

	INSTALLED_APPS = (
	    ...
            'django.contrib.flatpages',
            ...
            'tinymce',
            'flatpages_tinymce',
	)

If you want on-site editing of templates, you must edit **flatpages**
templates: change {{flatpage.content} to {% flatpage_admin flatpage %}
from flatpage_admin template library. So

::

       {% extends "base.html" %}
       {% block body %}
       {% endblock %}
       {% block body %}
       <h1>{{flatpage.title}}</h1>
       {{flatpage.content}}
       {% endblock %}

will become

::

       {% extends "base.html" %}
       {% load flatpage_admin %}
       {% block body %}
       <h1>{{flatpage.title}}</h1>
       {% flatpage_admin flatpage %]
       {% endblock %}


If you are bothered with <script>/<link> tags, being inserted in <body> tag and your
template has something like {% block extrahead %}, you can move all plugin media in head,
using {% flatpage_media %} tag.

::

       {% extends "base.html" %}
       {% block extrahead %}
       {% flatpage_media %}
       {% endblock %}
       {% block body %}
       <h1>{{flatpage.title}}</h1>
       {% flatpage_admin flatpage %}
       {% endblock %}

--------
Settings
--------


Default settings are in flatpages_tinymce.settings.py file. Also, you can
override them in site-wide settings.py file. The main of them are:

  * FLATPAGES_TINYMCE_ADMIN (default True) - use TinyMCE widget in admin area
  * FLATPAGES_TINYMCE_FRONTEND (default True) - use TinyMCE widget in frontend
  * FLATPAGES_TEMPLATE_DIR (default: TEMPLATE_DIRS[0] + 'flatpages') - directory where
    flatpages templates are placed
  * FLATPAGES USE_MINIFIED (defalut: not settings.DEBUG) - use minified versions of JS/CSS

Further, you will want to change default settings of TinyMCE Editor.

::

 	 TINYMCE_DEFAULT_CONFIG = {
	     # custom plugins
             'plugins': "table,spellchecker,paste,searchreplace",
	     # editor theme
	     'theme': "advanced",
	     # custom CSS file for styling editor area
             'content_css': MEDIA_URL + "css/custom_tinymce.css",
             # use absolute urls when inserting links/images
             'relative_urls': False,
         }

-------
Changes
-------

Changes in version 0.1.1
=========================

  * Minor issues with IE8.0.

Changes in version 0.1
======================

  * First public release.