dlamotte / django-tagging

Automatically exported from code.google.com/p/django-tagging
Other
0 stars 0 forks source link

quotes option for edit_string_for_tags() #237

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Current situation is:
edit_string_for_tags(tags)
"[...] If any tag name which isn't being quoted contains whitespace, the
resulting string of tag names will be comma-delimited, otherwise it will be
space-delimited."

It's be nice to have:
edit_string_for_tags(tags, DefaultQuotes = False)
"[...]
If DefaultQuotes is False: If any tag name which isn't being quoted
contains whitespace, the resulting string of tag names will be
comma-delimited, otherwise it will be space-delimited.

If DefaultQuotes is True: If any tag name which isn't being quoted contains
whitespace it will be quoted, the resulting string of tag names will be
space-delimited."

I'd really appreciate that option, thanks!

Original issue reported on code.google.com by nskoric@gmail.com on 23 Jan 2010 at 1:48

GoogleCodeExporter commented 8 years ago
Here's a patch for what I proposed.

Original comment by nskoric@gmail.com on 24 Jan 2010 at 8:30

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Or, if you prefer doing it through settings.py, here is the patch for that way 
of
doing it. Hope you choose to commit any of those two to your trunk.

Original comment by nskoric@gmail.com on 25 Jan 2010 at 6:15

Attachments: