Skip to content

Commit

Permalink
3.3 docs-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sehmaschine committed May 30, 2011
1 parent f1c9aea commit 01f407a
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 25 deletions.
27 changes: 13 additions & 14 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -237,14 +237,6 @@ Datetime object::
>>> print fileobject.datetime
datetime.datetime(2011, 3, 10, 13, 32, 27)

``folder``
^^^^^^^^^^

XXX::

>>> print fileobject.folder
u'testfolder'

Path and URL attributes
-----------------------

Expand Down Expand Up @@ -335,13 +327,12 @@ Image orientation, either "landscape" or "portrait"::
Folder attributes
-----------------

``directory``
^^^^^^^^^^^^^

XXX::
``folder``
^^^^^^^^^^

>>> print fileobject.directory
u'testfolder/testimage.jpg'
>>> print fileobject.folder
u'testfolder'

``is_folder``
^^^^^^^^^^^^^
Expand All @@ -361,10 +352,18 @@ XXX::
Version attributes
------------------

``is_version``
^^^^^^^^^^^^^^

``true`` if the File is a ``version`` of another File::

>>> print fileobject.is_version
False

``version_basedir``
^^^^^^^^^^^^^^^^^^^

Either ``VERSIONS_BASEDIR`` or ``self.head``::
The absolute path to the versions-folder::

>>> print fileobject.version_basedir
'/var/www/testsite/media/uploads/testfolder'
Expand Down
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Changelog
=========

3.3.0 (08/03/2011)
3.3.0 (30/05/2011)
^^^^^^^^^^^^^^^^^^

* Initial Release of the 3.3-series.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
# built documents.
#
# The short X.Y version.
version = '3.3'
version = '3.3.0'
# The full version, including alpha/beta/rc tags.
release = '3.3'
release = '3.3.0'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
15 changes: 13 additions & 2 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,21 @@ Why is there no mercurial– or git–repository?

We have discussed this issue on the `Grappelli Google-Group <http://groups.google.com/group/django-grappelli>`_. Since the outcome has been ambiguous, we stay with svn for now. Of course, the same is true for the |filebrowser|.

Why should I need imageversions?
Why should I need image-versions?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You need image–versions if your website is based on a *grid*.
You need image-versions if your website is based on a *grid*.

Upload does NOT work?
^^^^^^^^^^^^^^^^^^^^^

* Upload doesn't work if your server is setup using http-authentication.
* Uploading from one server to another requires a crossdomain-policy, see http://www.uploadify.com/faqs/how-do-i-upload-files-from-one-server-to-another/.

Is the |filebrowser| stable?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

We've developed the |filebrowser| for a couple of years and use it with almost all of our clients. That said, |grappelli| is the more stable and mature application.

How can I contribute?
^^^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Django FileBrowser Documentation

**Media-Management with the Django admin-interface**.

This documentation covers version 3.3 of the |filebrowser|. With the |filebrowser|, you're able to browse your media-directory
This documentation covers version 3.3.0 of the |filebrowser|. With the |filebrowser|, you're able to browse your media-directory
and upload/rename/delete files and folders.

**Installation and Setup**
Expand Down
1 change: 1 addition & 0 deletions docs/releasenotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Design changes
* Instead, there is now an edit-button.
* The edit-view allows for renaming/deleting a File/Folder (similar to editing a database-object with the admin-interface).
* Selecting a File/Folder is done with one button on the changelist with a drop-down for ``VERSIONS``.
* Versions are now shown with the change-link/edit-view.

Deprecated in 3.3
^^^^^^^^^^^^^^^^^
Expand Down
10 changes: 5 additions & 5 deletions docs/versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,26 @@ Templatetag ``version``

**Generate a version and retrieve the URL**::

{% version model.field_name version_prefix %}
{% version model.field_name.path version_prefix %}

With the above Model, in order to generate a version you type::

{% version blogentry.image 'medium' %}
{% version blogentry.image.path 'medium' %}

Since you retrieve the URL, you can display the image with::

<img src="{% version blogentry.image 'medium' %}" />
<img src="{% version blogentry.image.path 'medium' %}" />

Templatetag ``version_object``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**Generate a version and retrieve the FileObject**::

{% version_object model.field_name version_prefix as variable %}
{% version_object model.field_name.path version_prefix as variable %}

With the above Model, in order to generate a version you type::

{% version_object blogentry.image 'medium' as version_medium %}
{% version_object blogentry.image.path 'medium' as version_medium %}

Since you retrieve a ``FileObject``, you can use all attributes::

Expand Down

0 comments on commit 01f407a

Please sign in to comment.