semvec/pypi-packages huggingface dataset:
django-svnlit 0.1.1
Django-based subversion browser.
License: BSD
Keywords: django subversion svn browser

=============
django-svnlit
=============

A Subversion browser for `Django`_ that can track and display the
contents multiple repositories.

.. _`Django`: http://www.djangoproject.com

.. contents::
   :depth: 3


Installation
============

Using svnlit in your Django site
--------------------------------

Once you've installed the svnlit source into your Python site
environment:

   1. Put ``'svnlit'`` in your ``INSTALLED_APPS`` setting.
   2. Run the command ``manage.py syncdb``.
   3. Add Subversion repositories either through the Django
      admin application or through the svnlit management command
      ``manage.py svnadd``.


Settings
========

Some of the application's behaviour can be configured by adding the
appropriate settings to your project's settings file.

The following settings are available:

SVNLIT_CLIENT_TIMEOUT
---------------------

Default: ``20``

Amount of time in seconds to allow a prolonged ``pysvn`` API call
before cancelling.

SVNLIT_CACHE_TIMEOUT
--------------------

Default: ``86400``

Amount of time in seconds to retained data cached by svnlit.

SVNLIT_SVN_CONFIG_PATH
----------------------

Default: ``None``

Optionally specify a subversion config file that can be passed to
``pysvn.Client``.

SVNLIT_CHANGESETS_PER_PAGE
--------------------------

Default: ``50``

Number of changesets to display on the changeset list view.

SVNLIT_AUTO_SYNC
----------------

Default: ``True``

If this setting is enabled, svnlit will sync repositories'
changesets' on most views. How often the syncing happens when a view
is served depends on the ``SVNLIT_SYNC_INTERVAL`` setting.

SVNLIT_SYNC_INTERVAL
--------------------

Default: ``60``

When ``SVNLIT_AUTO_SYNC`` is set to ``True``, this setting controls
how often the syncing happens. Every time a view is served, the time
elapsed since the last sync is checked. If it has exceeded the number
of seconds specified by this setting, svnlit will sync the
changesets of the repository being viewed.


Management commands
===================

svnlit comes with some commands you can use with ``manage.py``.

The ``svnadd`` command
----------------------

Add a repository. The ``label`` is the name of the repository to be
used in the URLs. The ``root`` argument is the repository URI, such as
``file:///var/svn/myrepository`` or ``svn://code.example.com/myrepository``. 
The command has several additional options. See details by running
``manage.py help svnadd``.

The ``svnsync`` command
-----------------------

Get repository changes. If no arguments are specified, all
repositories tracked by svnlit are synced. Alternately you can specify
individual repositories by passing their labels as arguments.

The ``svnclean`` command
------------------------

Clean up expired cache data generated by svnlit. This command can be
used as a job in a crontab.
js.html5boilerplate 1.0
Fanstatic packaging of html5boilerplate
License: BSD

js.html5boilerplate
*******************

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

This library packages `html5boilerplate`_ for `fanstatic`_.

.. _`fanstatic`: http://fanstatic.org
.. _`html5boilerplate`: http://www.html5boilerplate.com

This requires integration between your web framework and ``fanstatic``,
and making sure that the original resources (shipped in the ``resources``
directory in ``js.html5boilerplate``) are published to some URL.


How to use?
===========

  >>> from fanstatic import NeededResources
  >>> needed = NeededResources(bottom=True)

You can import the various files from ``js.html5boilerplate`` and ``need()``
them in your page::

  >>> from js.html5boilerplate import style, pngfix
  >>> needed.need(style)
  >>> needed.need(pngfix)

  >>> html = '''
  ... <!doctype html> 
  ... <html>
  ...   <head>
  ...   </head>
  ...   <body>
  ...     my content
  ...   </body>
  ... </html>'''
  >>> print needed.render_topbottom_into_html(html)
  <BLANKLINE>
  <!doctype html> 
  <html>
    <head>
      <link rel="stylesheet" type="text/css" href="/fanstatic/html5boilerplate/css/style.css" />
  <BLANKLINE>
    </head>
    <body>
      my content
    <!--[if lt IE 7 ]>
      <script src="/fanstatic/html5boilerplate/js/dd_belatedpng.js"></script>
      <script>DD_belatedPNG.fix("img, .png_bg");
    <![endif]--></body>
  </html>

If you need the ``boilerplate`` group, jquery and modernizr are also included::

  >>> from js.html5boilerplate import boilerplate
  >>> needed = NeededResources(resources=[boilerplate], bottom=True)
  >>> print needed.render_topbottom_into_html(html)
  <BLANKLINE>
  <!doctype html> 
  <html>
    <head>
      <link rel="stylesheet" type="text/css" href="/fanstatic/html5boilerplate/css/style.css" />
  <script type="text/javascript" src="/fanstatic/jquery/jquery.js"></script>
  <script type="text/javascript" src="/fanstatic/modernizr/modernizr.js"></script>
  <BLANKLINE>
    </head>
    <body>
      my content
    <!--[if lt IE 7 ]>
      <script src="/fanstatic/html5boilerplate/js/dd_belatedpng.js"></script>
      <script>DD_belatedPNG.fix("img, .png_bg");
    <![endif]--></body>
  </html>

CHANGES
*******

1.0 (2011-07-08)
================

- Initial release.