Commits

shchemelevev  committed 50982a9

add some tags

  • Participants
  • Parent commits 8a5aa5d

Comments (0)

Files changed (12)

 # use glob syntax.
 syntax: glob
 
+dist/*
+jingo_tags.egg-info/*
+build/*
 *.elc
 *.pyc
 *.swp
+# file GENERATED by distutils, do NOT edit
+setup.py
+jingo_tags/__init__.py

File jingo_tags/__init__.py

Empty file added.

File jingo_tags/django/__init__.py

Empty file added.

File jingo_tags/django/helpers.py

Empty file added.

File jingo_tags/guardian/__init__.py

Empty file added.

File jingo_tags/guardian/helpers.py

+#-*- coding:utf-8 -*-
+from jingo import register
+from guardian.shortcuts import get_perms as guardian_get_perms
+
+
+@register.function
+def get_perms(user, obj):
+    return guardian_get_perms(user, obj)

File jingo_tags/pymorphy/__init__.py

Empty file added.

File jingo_tags/pymorphy/helpers.py

+#-*- coding:utf-8 -*-
+from pymorphy.django_conf import default_morph
+from jingo import register
+
+
+@register.filter
+def plural(string, count):
+    string = unicode(string)
+    result = default_morph.pluralize_inflected_ru(string.upper(), count)
+    return result.lower()

File jingo_tags/sorl/__init__.py

Empty file added.

File jingo_tags/sorl/helpers.py

Empty file added.
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
+
+
+setup(
+    name='jingo_tags',
+    packages=['jingo_tags'],
+    version='0.0.1a',
+    description='Jingo tags for popular django applications',
+    author='Yevgeniy Shchemelev',
+    author_email='shchemelevev@gmail.com',
+    url='https://bitbucket.org/silver_sky/jingo_tags',
+    license='License :: OSI Approved :: GNU General Public License (GPL)',
+    classifiers=[
+        'Development Status :: 2 - Pre-Alpha',
+        'Environment :: Web Environment',
+        'Environment :: Console',
+        'Environment :: Plugins',
+        'Framework :: Django',
+        'Intended Audience :: Developers',
+        'Operating System :: MacOS :: MacOS X',
+        'Operating System :: Microsoft :: Windows',
+        'Operating System :: POSIX',
+        'Programming Language :: Python',
+        'Topic :: Internet',
+        'Topic :: Software Development :: Libraries :: Python Modules',
+    ],
+)