Skip to content

Commit ab5db8d

Browse files
committed
docs update for 3.4.0
1 parent aeef686 commit ab5db8d

10 files changed

+16
-61
lines changed

AUTHORS

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Patrick Kranzlmueller <[email protected]>
22
Axel Swoboda <[email protected]>
3-
Klemens Mantzos <[email protected]>
3+
Klemens Mantzos <[email protected]>
4+
Vaclav Mikolasek <[email protected]>

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ The FileBrowser is an extension to the `Django <http://www.djangoproject.com>`_
1212
Requirements
1313
------------
1414

15-
FileBrowser 3.4 requires
15+
FileBrowser 3.4.0 requires
1616

1717
* Django 1.3 (http://www.djangoproject.com)
18-
* Grappelli 2.3 (https://github.com/sehmaschine/django-grappelli)
18+
* Grappelli 2.3.5 (https://github.com/sehmaschine/django-grappelli)
1919
* PIL (http://www.pythonware.com/products/pil/)
2020

2121
Documentation

docs/actions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
Custom Actions
1010
==============
1111

12-
.. versionadded:: 3.4
12+
.. versionadded:: 3.4.0
1313

1414
In analogy to Django's admin actions, you can define your |fb| actions and thus automate the typical tasks of your users. Registered custom actions are listed in the detail view of a file and a user can select a single action at a time. The selected action will then be applied to the file.
1515

docs/changelog.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Changelog
99
=========
1010

11-
3.4.0 (2011-10-10)
11+
3.4.0 (11/10/2011)
1212
^^^^^^^^^^^^^^^^^^
1313

14-
see :ref:`releasenotes`
14+
* Final release of 3.4, see :ref:`releasenotes`

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = '3.4'
51+
version = '3.4.0'
5252
# The full version, including alpha/beta/rc tags.
53-
release = '3.4'
53+
release = '3.4.0'
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.

docs/file_storages.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
File Storages
1010
=============
1111

12-
.. versionadded:: 3.4
12+
.. versionadded:: 3.4.0
1313

1414
Starting with |fb| 3.4, you have the option to specify which file storage engine a |fb| should use to browse/upload/modify your media files. This enables you to use a |fb| even if your media files are located at some remote system.
1515

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Django FileBrowser Documentation
1010

1111
**Media-Management with Grappelli**.
1212

13-
This documentation covers version 3.4 of the |filebrowser|.
13+
This documentation covers version 3.4.0 of the |filebrowser|.
1414

1515
**Installation and Setup**
1616

docs/quickstart.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Go to https://github.com/sehmaschine/django-filebrowser if you need to download
2727
Installation
2828
------------
2929

30-
.. versionchanged:: 3.4
30+
.. versionchanged:: 3.4.0
3131

3232
Open ``settings.py`` and add ``filebrowser`` to your ``INSTALLED_APPS`` (before ``django.contrib.admin``)::
3333

docs/settings.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Versions
9494
VERSIONS_BASEDIR (relative to ``MEDIA_ROOT``)
9595
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9696

97-
.. versionchanged:: 3.4
97+
.. versionchanged:: 3.4.0
9898

9999
Directory to save image versions (and thumbnails). If no directory is given, versions are stored at the same location as the original image::
100100

@@ -140,7 +140,7 @@ Extra Settings
140140
SAVE_FULL_URL
141141
^^^^^^^^^^^^^
142142

143-
.. deprecated:: 3.4
143+
.. deprecated:: 3.4.0
144144
With custom storage engines, saving the full URL (including MEDIA_ROOT) doesn´t make sense anymore. Moreover, removing this settings allows for easily replacing a FileBrowseField with Djangos File- or ImageField.
145145

146146
STRICT_PIL

docs/sites.rst

+2-48
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
FileBrowser Sites
99
=================
1010

11-
.. versionadded:: 3.4
11+
.. versionadded:: 3.4.0
1212

1313
As of version 3.4, the FileBrowser application is respresented by an object of ``filebrowser.sites.FileBrowserSite`` (in analogy to Django's admin site). FileBrowser sites allow you to:
1414

@@ -22,50 +22,4 @@ The module variable ``site`` from filebrowser.sites is the default FileBrowser a
2222
Backward Incompatibilites
2323
-------------------------
2424

25-
The only thing that you need to pay attention to when migrating to FileBrowser 3.4, is the specification of your URL-patterns. URL-patterns are now associated with a FileBrowser site, that is, each FileBrowser site can have different URL-patterns. See :ref:`quickstart` for how to setup your URL-patterns.
26-
27-
.. Mutliple FileBrowser Sites
28-
.. --------------------------
29-
30-
.. .. important::
31-
32-
.. In majority of cases, there's no need for seting up multiple instances of FileBrowser sites. It is a supported, but not very standard way of using FileBrowser. However, there might be a few good reasons to use multiple |sites|. For example, you want to allow users to upload/delete/modify files at a location outside MEDIA_ROOT or you have implemented some custom actions that should be accessible only to certain users. In these cases, having multiple |sites| can do the job.
33-
34-
.. Before you start including additional FileBrowser sites to your project, note that there will be always a **single** FileBrowser site associated with FileBrowseFields. This site, called the **main site**, is invoked, when a user clicks on the search button of a FieldBrowseField. If you use multiple |sites|, then the main site is the one with the instance namespace "filebrowser" (or the last deployed instance, if there is no instance named "filebrowser").
35-
36-
.. When creating a site, you can specify its instance namespace like this::
37-
38-
.. fb_site = FileBrowserSite(name="fb-site")
39-
40-
.. The default |site| ``filebrowser.sites.site`` has the instance name "filebrowser" and will be therefore the main site if you use it.
41-
42-
.. The Main Site
43-
.. ^^^^^^^^^^^^^
44-
45-
.. Although it is possible to define MEDIA_ROOT and MEDIA_URL on per-site basis, the main site *must* have these variables equal to the global, default values given in ``settings.py``. See :ref:`settings` for the details about MEDIA_ROOT and MEDIA_URL.
46-
47-
.. Additional Sites
48-
.. ^^^^^^^^^^^^^^^^
49-
50-
.. Any site, that is not the main site can have its MEDIA_ROOT and MEDIA_URL set to a whatever value you wish. In order to deploy an additional |site|, create the instance and give it a unique name::
51-
52-
.. fb_site = FileBrowserSite(name="fb-site")
53-
54-
.. set its MEDIA_ROOT and MEDIA_URL::
55-
56-
.. fb_site.media_root = '/usr/var/www/some-project/ohter-media/'
57-
.. fb_site.media_url = 'other-media/'
58-
59-
.. and register the site's URLs in your ``url.py``::
60-
61-
.. from some_project import fb_site
62-
63-
.. urlpatterns = patterns('',
64-
.. (r'^admin/filebrowser-other-media/', include(fb_site.urls)),
65-
.. )
66-
67-
68-
69-
70-
71-
25+
The only thing that you need to pay attention to when migrating to FileBrowser 3.4, is the specification of your URL-patterns. URL-patterns are now associated with a FileBrowser site, that is, each FileBrowser site can have different URL-patterns. See :ref:`quickstart` for how to setup your URL-patterns.

0 commit comments

Comments
 (0)