semvec/pypi-packages huggingface dataset:
django-dajax-ng 0.9.4
Easy to use library to create asynchronous presentation logic with django and dajaxice-ng
License: BSD

dajax is a powerful tool to easily and super-quickly develop asynchronous presentation logic in web applications using python and almost no JS code. It supports up to four of the most popular JS frameworks: jQuery, Prototype, Dojo and mootols.This is the Next Gen dajax maintained by saz.
checkout 0.2.0
Python wrapper for the Checkout Finland API.
License: BSD

checkout
------------

|build status|_

.. |build status| image:: https://secure.travis-ci.org/tuomasb/python-checkout.png?branch=master
   :alt: Build Status
.. _build status: http://travis-ci.org/tuomasb/python-checkout

Python wrapper for the Checkout Finland API.

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

::

    $ pip install checkout

Resources
---------

- `Issue Tracker <http://github.com/tuomasb/python-checkout/issues>`_
- `Code <http://github.com/tuomasb/python-checkout>`_
- `Development Version
  <http://github.com/tuomasb/python-checkout/zipball/master#egg=checkout-dev>`_

Changelog
---------

Here you can see the full list of changes between each python-checkout
release.

0.3.0 (February 6, 2014)
^^^^^^^^^^^^^^^^^^^^

- Initual public release of python-checkout.

0.2.0 (June 6, 2013)
^^^^^^^^^^^^^^^^^^^^

- Initial public release of python-verkkomaksut.
mezzanine-grappelli 0.1.0
mezzanine-grappelli makes Mezzanine ♥ Grappelli
License: BSD

===================
mezzanine-grappelli
===================

Mezzanine-Grappelli makes Mezzanine ♥ Grappelli.

For compatibility reasons, Mezzanine uses forks of Grappelli and Filebrowser,
known as grappelli-safe and filebrowser-safe.

You want the awesomeness of Mezzanine with the sweetness of the latest
Grappelli version? This application does exactly that: it allows you to use the
full power of the latest vanilla versions of both Grappelli and Filebrowser in
your Mezzanine projects.


.. image:: https://github.com/sephii/mezzanine-grappelli/raw/master/docs/images/login.png
.. image:: https://github.com/sephii/mezzanine-grappelli/raw/master/docs/images/filebrowser.png

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

First, install mezzanine-grappelli with pip (this will automatically install
Grappelli and Filebrowser as well)::

    pip install mezzanine-grappelli

In your ``settings.py`` file, adapt the value of
``PACKAGE_NAME_FILEBROWSER`` and ``PACKAGE_NAME_GRAPPELLI``::

    PACKAGE_NAME_FILEBROWSER = "filebrowser"
    PACKAGE_NAME_GRAPPELLI = "grappelli"

Still in your ``settings.py`` file, add mezzanine_grappelli, grappelli and
filebrowser to your ``INSTALLED_APPS`` (make sure they appear before any
mezzanine app)::

    INSTALLED_APPS = (
        "mezzanine_grappelli",
        PACKAGE_NAME_GRAPPELLI,
        PACKAGE_NAME_FILEBROWSER,
        ...
    )

Add Grappelli URLs to your ``urls.py`` file::

    urlpatterns += patterns("",
        ...
        ("^grappelli/", include("grappelli.urls")),
        ...
    )

You're done!

Rough edges
===========

The project still being in its early days, it has a few rough edges you should
be aware of.

TabularDynamicInlineAdmin doesn't work
--------------------------------------

Use classic Django ``TabularInline`` instead.

Filebrowser error: "Error finding Upload-Folder (site.storage.location + site.directory). Maybe it does not exist?"
-------------------------------------------------------------------------------------------------------------------

That's because Filebrowser doesn't automatically create the uploads directory,
so just create the ``MEDIA_ROOT + 'uploads/'`` directory

FileField doesn't work
----------------------

When using ``FileField`` fields you need to put the ``format`` in lowercase
(ie.  "image" instead of "Image") otherwise you'll get a Filebrowser exception.
That's especially true for already defined Mezzanine models (such as the
``BlogPost`` model). To fix the issue for already-defined Mezzanine models, you
can add the following to your settings file::

    FILEBROWSER_SELECT_FORMATS = {
        'File': ['Folder', 'Image', 'Document', 'Video', 'Audio'],
        'Document': ['Document'],
        'Media': ['Video', 'Audio'],
        'Image': ['Image'],
        'image': ['Image'],
    }

TODO
====

* Make ``TabularDynamicInlineAdmin`` work or at least fall back to a usable
  solution

Bugs, contributing
==================

If you find bugs, you're very welcome to report them using the Github issue
tracker.
django-historicalrecords 1.1
Marty Alchin's HistoricalRecords from the ProDjango book.
License: BSD

Django Historical Records
=========================

This is from Marty Alchin's `Pro Django`_ book.

Setup the virtualenv

::

    $ virtualenv --no-site-packages ve
    $ source ve/bin/activate
    (ve)$ pip install -r requirements.pip
    
Or install from PyPI

::

    $ pip install django-historicalrecords

Import the HistoricalRecords and attach it to your model like you would a custom Django manager.

::

    from django.db import models
    from history.models import HistoricalRecords

    class TestModel(models.Model):
        """A model for testing"""
        boolean = models.BooleanField(default=True)
        characters = models.CharField(blank=True, max_length=100)
        
        history = HistoricalRecords()

        class Admin:
            list_display = ('',)
            search_fields = ('',)

        def __unicode__(self):
            return u"TestModel"

If you run `manage.py syncdb` you'll see that it automatically creates a `Historical` version of whatever model you've attached it to.

::

    (ve)$ ./manage.py syncdb
    Creating table auth_permission
    ... // snip // ...
    Creating table example_app_historicaltestmodel <- HistoricalTestModel!
    Creating table example_app_testmodel
    ... // snip // ...

The `HistoricalRecords` clone the model it is attached to and adds some extra fields that allow you to track the type of change made, the timestamp of when the change was saved and it has a descriptor that will return the original object at the time of the change.

::

    (ve)$ ./manage.py shell
    >>> from example_app.models import TestModel
    >>> tm = TestModel.objects.create(boolean=True,characters="abc")
    >>> tm.history.count()
    1
    >>> most_recent = tm.history.most_recent()
    >>> most_recent.boolean
    True
    >>> most_recent.characters
    u'abc'
    >>> tm.boolean = False
    >>> tm.characters = "def"
    >>> tm.save()
    >>> tm.history.count()
    2
    >>> tm.history.all()
    [<HistoricalTestModel: TestModel as of 2010-09-10 03:29:59.424761>, <HistoricalTestModel: TestModel as of 2010-09-10 03:28:31.358548>]
    >>> from datetime import datetime
    >>> timestamp = datetime(2010,9,10,3,28,31,358548)
    >>> old_version = tm.history.as_of(timestamp)
    >>> old_version.boolean
    True
    >>> tm.boolean
    False
    >>> old_version.characters
    u'abc'
    >>> tm.characters
    'def'
    >>> 
    
.. _Pro Django: http://prodjango.com