diff --git a/LICENSE b/LICENSE index 8024d65..741cb7d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2011 Val L33 (val@neekware.com) +Copyright (c) 2012 Val Neekman (val@neekware.com) All rights reserved. Redistribution and use in source and binary forms, with or without modification, diff --git a/README b/README index 33a3d25..e36f410 100644 --- a/README +++ b/README @@ -1,14 +1,6 @@ django-uuslug ================ - -This fork notes ------------------------------------------------------------------------------------------------- -Here ' symbol in result of unidecode.unidecode() is deleted instead of replacing with -. -For example for Russian word "Компьютер" unidecode.unidecode() returns "komp'uter", -then uuslug create "komp-uter" from this, but translitiration "komputer" seems more natural. - - A Django slugify application that guarantees uniqueness and handles unicode. UUSlug = (``U``nique + ``U``nicode Slug) @@ -47,7 +39,7 @@ self.assertEquals(r, "this-is-a-test") s = 'C\'est déjà l\'été.' r = slugify(s) -self.assertEquals(r, "c-est-deja-l-ete") +self.assertEquals(r, "c-est-deja-lete") s = 'Nín hǎo. Wǒ shì zhōng guó rén' r = slugify(s) @@ -104,7 +96,7 @@ add more test and examples Credits: ========= -This is a cleaned and packaged up version of snippet (369) from http://www.djangosnippets.org/ +This is inspired by a snippet from http://www.djangosnippets.org/ Improved to handle unique slugs and unicode chars and packaged for easy install. diff --git a/buildout.cfg b/buildout.cfg index 6278212..b072afa 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -7,7 +7,7 @@ eggs = django-uuslug Django [versions] -django = 1.3.1 +django = 1.4.1 [python] recipe = zc.recipe.egg diff --git a/history.txt b/history.txt new file mode 100644 index 0000000..e3d5759 --- /dev/null +++ b/history.txt @@ -0,0 +1,10 @@ + +- August 6, 2012 +------------------------ +1. history file created to track the changes +2. singleton "'" handling feature broke the testunit (fix pulled in from re_compile branch) +3. re cleanup (pulled in from re_compile branch) +4. up the version +5. updated the credit section from the README as the referred snippet no longer exists +6. include full name in setup.py +7. up Django to 1.4.1 diff --git a/setup.py b/setup.py index 9a3ece4..2a7545d 100644 --- a/setup.py +++ b/setup.py @@ -5,10 +5,10 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name='django-uuslug', - version='0.6', + version='0.7', description = "A Django slugify application that guarantees uniqueness and handles unicode", long_description = read('README'), - author='Val L33', + author='Val Neekman', author_email='val@neekware.com', url='http://github.com/un33k/django-uuslug', packages=['uuslug'], diff --git a/uuslug/__init__.py b/uuslug/__init__.py index 1ca81f8..8a52b2d 100644 --- a/uuslug/__init__.py +++ b/uuslug/__init__.py @@ -109,11 +109,6 @@ def uuslug(s, instance, entities=True, decimal=True, hexadecimal=True, import uuslug as slugify self.slug = slugify(self.name, instance=self) - - Notes - ----- - - From http://www.djangosnippets.org/snippets/369/ """ if hasattr(instance, 'objects'): raise Exception("Error: you must pass an instance to uuslug, not a model.")