Re: Generating valid identifiers
On 26 July 2012 13:26, Laszlo Nagy <email@example.com> wrote:
> I do not want this program to generate very long identifiers. It would
> increase SQL parsing time, and don't look good. Let's just say that the
> limit should be 32 characters. But I also want to recognize the identifiers
> when I look at their modified/truncated names.
> print repr(Connection.makename("group1_group2_group3_som e_field_name"))
You've exceeded 32 characters! Perhaps you could change:
But then you'd get something like this for your long identifier:
which seems to miss out on a crucial bit: namely the field name.
Also it's hard to imagine a way to keep things readable when we don't
know what the original identifiers look like :)
|All times are GMT. The time now is 05:36 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.