Skip to content

Commit 417dd98

Browse files
committed
file and line ending
1 parent 08d3b3d commit 417dd98

File tree

15 files changed

+38
-47
lines changed

15 files changed

+38
-47
lines changed

.tx/config

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ source_lang = en
55

66
[main]
77
host = https://www.transifex.com
8-

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1616
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1717
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1818
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19-
THE SOFTWARE.
19+
THE SOFTWARE.

django_extensions/locale/fr/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SOME DESCRIPTIVE TITLE.
22
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
33
# This file is distributed under the same license as the PACKAGE package.
4-
#
4+
#
55
# Translators:
66
# mathiasuk, 2014
77
# mathiasuk, 2014

django_extensions/templates/django_extensions/graph_models/relation.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
>]{% endif %}
88
{{ model.app_name }}_{{ model.name }} -> {{ relation.target_app }}_{{ relation.target }}
99
[label="{{ relation.label }}"] {{ relation.arrows }};
10-
{% endfor %}{% endfor %}
10+
{% endfor %}{% endfor %}

docs/AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Marc Tudurí (marctc)
2424
Rick van Hattem (WoLpH)
2525
Rodolphe Quiédeville (rodo)
2626
Nik Nyby (nikolas)
27-
Joshua Miller (thecardcheat)
27+
Joshua Miller (thecardcheat)

docs/admin_extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Current Admin Extensions
1010
to do configurable autocompletion.
1111

1212
* *ForeignKeyAutocompleteStackedInline*, *ForeignKeyAutocompleteTabularInline* -
13-
in the same fashion of the *ForeignKeyAutocompleteAdmin* these two classes
13+
in the same fashion of the *ForeignKeyAutocompleteAdmin* these two classes
1414
enable a search input field for ForeginKey fields in AdminInline classes.
1515

1616

docs/command_extensions.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Current Command Extensions
88

99
* *admin_generator* - Generate automatic Django Admin classes by providing an app name. Outputs
1010
source code at STDOUT.
11-
11+
1212
* *clean_pyc* - Remove all python bytecode compiled files from the project
1313

1414
* `create_app`_ - Creates an application directory structure for the specified
@@ -44,7 +44,7 @@ Current Command Extensions
4444
* `export_emails`_ - export the email addresses for your
4545
users in one of many formats. Currently supports Address, Google, Outlook,
4646
LinkedIn, and VCard formats.
47-
47+
4848
* *find_template* - Finds the location of the given template by resolving its path
4949

5050
* *generate_secret_key* - Creates a new secret key that you can put in your
@@ -56,7 +56,7 @@ Current Command Extensions
5656

5757
* *mail_debug* - Starts a mail server which echos out the contents of the email
5858
instead of sending it.
59-
59+
6060
* *notes* - Show all annotations like TODO, FIXME, BUG, HACK, WARNING, NOTE or XXX in your py and HTML files.
6161

6262
* *passwd* - Makes it easy to reset a user's password.
@@ -115,7 +115,7 @@ Current Command Extensions
115115
Optionally can also gzip CSS and Javascript files and set the
116116
Content-Encoding header, and also set a far future expires header for browser
117117
caching.
118-
118+
119119
* *syncdata* - Makes the current database have the same data as the fixture(s), no more, no less.
120120

121121
* *unreferenced_files* - Prints a list of all files in MEDIA_ROOT that are not referenced in the database.

docs/command_signals.rst

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Command Signals
33

44
:synopsis: Signals fired before and after a command is executed.
55

6-
A signal is thrown pre/post each management command allowing your application
6+
A signal is thrown pre/post each management command allowing your application
77
to hook into each commands execution.
88

99

@@ -16,48 +16,48 @@ An example hooking into show_template_tags:
1616

1717
from django_extensions.management.signals import pre_command, post_command
1818
from django_extensions.management.commands.show_template_tags import Command
19-
19+
2020
def pre_receiver(sender, args, kwargs):
2121
# I'm executed prior to the management command
22-
22+
2323
def post_receiver(sender, args, kwargs, outcome):
2424
# I'm executed after the management command
25-
25+
2626
pre_command.connect(pre_receiver, Command)
2727
post_command.connect(post_receiver, Command)
2828

2929

3030
Custom Permissions For All Models
3131
---------------------------------
32-
33-
You can use the post signal to hook into the ``update_permissions`` command so that
32+
33+
You can use the post signal to hook into the ``update_permissions`` command so that
3434
you can add your own permissions to each model.
35-
36-
For instance, lets say you want to add ``list`` and ``view`` permissions to
35+
36+
For instance, lets say you want to add ``list`` and ``view`` permissions to
3737
each model. You could do this by adding them to the ``permissions`` tuple inside
3838
your models ``Meta`` class but this gets pretty tedious.
39-
39+
4040
An easier solution is to hook into the ``update_permissions`` call, as follows;
41-
41+
4242
::
4343

4444
from django.db.models.signals import post_syncdb
4545
from django.contrib.contenttypes.models import ContentType
4646
from django.contrib.auth.models import Permission
4747
from django_extensions.management.signals import post_command
4848
from django_extensions.management.commands.update_permissions import Command as UpdatePermissionsCommand
49-
49+
5050
def add_permissions(sender, **kwargs):
5151
"""
5252
Add view and list permissions to all content types.
5353
"""
5454
# for each of our content types
5555
for content_type in ContentType.objects.all():
56-
56+
5757
for action in ['view', 'list']:
5858
# build our permission slug
5959
codename = "%s_%s" % (action, content_type.model)
60-
60+
6161
try:
6262
Permission.objects.get(content_type=content_type, codename=codename)
6363
# Already exists, ignore
@@ -68,23 +68,23 @@ An easier solution is to hook into the ``update_permissions`` call, as follows;
6868
name="Can %s %s" % (action, content_type.name))
6969
print "Added %s permission for %s" % (action, content_type.name)
7070
post_command.connect(add_permissions, UpdatePermissionsCommand)
71-
72-
Each time ``update_permissions`` is called ``add_permissions`` will be called which
71+
72+
Each time ``update_permissions`` is called ``add_permissions`` will be called which
7373
ensures there are view and list permissions to all content types.
7474

7575

7676
Using pre/post signals on your own commands
7777
-------------------------------------------
78-
79-
The signals are implemented using a decorator on the handle method of a management command,
78+
79+
The signals are implemented using a decorator on the handle method of a management command,
8080
thus using this functionality in your own application is trivial:
8181

8282
::
8383

8484
from django_extensions.management.utils import signalcommand
85-
85+
8686
class Command(BaseCommand):
87-
87+
8888
@signalcommand
8989
def handle(self, *args, **kwargs):
9090
...

docs/dumpscript.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,16 @@ Naming conflicts
7272

7373
Please take care that when naming the output files these filenames do not
7474
clash with other names in your import path. For instance, if the appname is
75-
the same as the script name, an importerror can occur because rather than importing
75+
the same as the script name, an importerror can occur because rather than importing
7676
the application modules it tries to load the modules from the dumpscript file itself.
7777

7878
Examples::
7979

8080
# Wrong
8181
$ ./manage.py dumpscript appname > dumps/appname.py
82-
82+
8383
# Right
8484
$ ./manage.py dumpscript appname > dumps/appname_all.py
85-
85+
8686
# Right
8787
$ ./manage.py dumpscript appname.Somemodel > dumps/appname_somemodel.py
88-
89-
90-

docs/installation_instructions.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Tracking the development version of *django command extensions* should be
2727
pretty stable and will keep you up-to-date with the latests fixes.
2828

2929
$ pip install -e git+https://github.com/django-extensions/django-extensions.git#egg=django-extensions
30-
30+
3131
You find the sources in src/django-extensions now.
3232

3333
You can verify that the application is available on your PYTHONPATH by opening a python interpreter and entering the following commands:
@@ -70,4 +70,3 @@ for example:
7070
If the given application or python library is not installed on your system (or
7171
not in the python path) the executed command will raise an exception and inform
7272
you of the missing dependency.
73-

0 commit comments

Comments
 (0)