semvec/pypi-packages huggingface dataset:
plonetheme.html5_hotpink 0.1
Diazo theme for Plone
License: BSD
Keywords: plone diazo theme

====================
HTML5 Hot Pink Theme
====================

Installable theme for `Plone`_ (using `plone.app.theming`_).

:Source: https://github.com/garbas/plonetheme.html5_hotpink
:Issues: https://github.com/garbas/plonetheme.html5_hotpink/issues
:Original theme: http://jayj.dk/2011/html5-theme-v2
:Licence: http://www.opensource.org/licenses/bsd-license.php

Since original theme is named ``HTML5``, which is a little to too common name,
I renamed it to ``HTML5 Hot Pink``.


.. contents::


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

Using buildout
--------------

Add ``plonetheme.html5_hotpink`` to eggs section of your zope client.::
    [instance]
    ...
    eggs =
        ...
        plonetheme.html5_hotpink


Using .zip
----------

::

    % git clone git://github.com/garbas/plonetheme.html5_hotpink.git
    % cd plonetheme.html5_hotpink
    % git archive --format=zip --prefix=html5_hotpink/ HEAD:plonetheme/html5_hotpink/static/ > html5_hotpink.zip

Import created zip file via ``@@theming-controlpanel`` -> ``Import theme`` tab.


Activating theme
----------------

Browse to ``http://yoursite/Plone/@@theming-controlpanel`` click on ``Enable
theme`` check box and select ``HTML5 Hot Pink (plonetheme.html5_hotpink)`` from
dropdown.

Parameters
==========

    * ``site-title``, Default: ``string: A HTML5 Hot Pink Theme``

        Site title. 

    * ``site-description``, Default: ``string: This is an awesome HTML5 Hot Pink theme!``

        Site description.

    * ``footer``, Default: ``string: Copyright &copy; 2011 ...``

        Footer of site. HTML marks allowed.

    * ``notheme``, Default: ``python: 'ajax_load' in request.form``

        Expression which makes page unthemed.


Credits
=======

    * `Rok Garbas`_, initial implementation
    * `Jesper`_, original theme author


Changelog
=========

0.1 - 2011-06-06
----------------

    * initial implementation of theme with Diazo_ rules.
      [garbas]


.. _`Rok Garbas`: http://www.garbas.si
.. _`Jesper`: http://jayj.dk

.. _`Plone`: http://plone.org
.. _`plone.app.theming`: http://pypi.python.org/pypi/plone.app.theming
.. _`Diazo': http://diazo.org
django-secdownload-storage 0.1.1
Django storage backend that can be used to serve files via lighttpd's mod_secdownload module. This 
storage backend is an extension to the reqular FileSystemStorage that will generate proper signed 
download urls.
License: BSD

==========================
django-secdownload-storage
==========================

Django storage backend that can be used to serve files via lighttpd's mod_secdownload module. This 
storage backend is an extension to the reqular FileSystemStorage that will generate proper signed 
download urls.

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

::

  pip install django-secdownload-storage
  
or::

  easy_install django-secdownload-storage

or via source checkout::

  hg clone https://bitbucket.org/ionelmc/django-secdownload-storage
  cd django-secdownload-storage
  python setup.py install

Usage 
-----

In your django models you should add ``storage=SecDownloadFileSystemStorage()`` to the fields you 
want served via secdownload. 

Required settings: ::

  SEC_DOWNLOAD_ENABLED = True
  SEC_DOWNLOAD_SECRET_KEY = 'VERYVERYSECRET'
  SEC_DOWNLOAD_MEDIA_URL = MEDIA_URL + 'dl/'

Example model: ::

  import secdownload_storage
  
  class Foo(models.Model):
    secret_picture = models.ImageField(upload_to='secret-pictures', storage=secdownload_storage.SecDownloadFileSystemStorage())

You need to enable mod_secdownload and have configuration similar to this (see 
http://redmine.lighttpd.net/wiki/1/Docs:ModSecDownload for more info): ::

  secdownload.secret = "VERYVERYSECRET"
  secdownload.document-root = "/path/to/media"
  secdownload.uri-prefix = "/dl/"
  secdownload.timeout = 3600
    
Also, note that you should disallow access to those files in the lighttpd configuration as they 
would be served with your regular media files. Eg: ::

  $HTTP["url"] =~ "^/media/secret-pictures" {
      url.access-deny = ("")
  }

Configuration
-------------

* SEC_DOWNLOAD_ENABLED - set this to False to disable signing the urls and generate them like 
  FileSystemStorage. This is useful for development (if you use django's devserver).
* SEC_DOWNLOAD_SECRET_KEY - this is the secret key that is used to sign the requests  
* SEC_DOWNLOAD_MEDIA_URL - this is the prefix path that's used instead of MEDIA_URL when 
  SEC_DOWNLOAD_ENABLED is set to True. If SEC_DOWNLOAD_ENABLED is set to False 
  SecDownloadFileSystemStorage will use MEDIA_URL for the prefix instead.
pyroutes.js 0.1.0
PyRoutesJS provide a Javascript routes generation function like Python Routes Mapper.generate method
License: BSD

===========
PyRoutes.JS
===========

``PyRoutes.JS`` provide a Javascript routes generation function like Python `Routes <http://routes.groovie.org/>`_ `Mapper.generate <http://routes.groovie.org/modules/mapper.html#routes.mapper.Mapper.generate>`_ method.

Introduction
============

* Do you use `Python Routes <http://routes.groovie.org/>`_ library in `Pylons <http://docs.pylonsproject.org/projects/pylons_framework/dev/>`_ or other applications ?
* Do you use something like ``${h.url('entry_view', entry_id=2)}`` in your templates ?

So, now do you dream to have Javascript routes generation function ?

PyRoutes.JS is the tool that you need !

If you have this Routes Mapper configuration :

::

    ...
    map = Mapper()
    ...
    map.connect('entry_view', '/entries/{issue_id:\d*}/', controller='issues', action='view')
    map.connect('entry_edit', '/entries/{issue_id:\d*}/edit', controller='issues', action='edit')
    ...


In your javascript files, you can use ``PyRoutes.JS`` like this :

::

    pyroutes.generate('entry_view', entry_id=2); // return '/entries/1/'
    pyroutes.generate('entry_edit', entry_id=5); // return '/entries/5/edit/'


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

::

    $ pip install pyroutes.js


Pylons integration
==================

In ``my_app/config/middleware.py`` file, append :

::

    ...
    from pylons.middleware import ErrorHandler, StatusCodeRedirect
    from pylons.wsgiapp import PylonsApp
    from routes.middleware import RoutesMiddleware
    
    ...
    
    from pyroutesjs import Middleware as PyRoutesJSMiddleware       # <= append this line
    
    ...
    
    from my_app.config.environment import load_environment
    
    ...

    def make_app(global_conf, full_stack=True, static_files=True, **app_conf):

        ...

        # Append PyRoutes.js middleware                         
        app = PyRoutesJSMiddleware(app, config['routes.map'])      # <= append this line

        app.config = config
        return app


In your template, append :

::

    <script type="text/javascript" src="${h.url('/js/pyroutes.js')}"></script>


Limitations
===========

* Currently you can only generate named routes

Source code
===========

Mercurial repository is here : https://bitbucket.org/harobed/pyroutes.js/src

You can clone the code :

::

    $ hg clone http://bitbucket.org/harobed/pyroutes.js

Issue tracker
=============

You can report your bugs here : https://bitbucket.org/harobed/pyroutes.js/issues



News
====

0.1.0 (not released)
--------------------

* Initial version