comparison MoinMoin/themes/__init__.py @ 2590:92a9c6ef1ec7

reduce number of warning and error messages when running "m docs"
author RogerHaase <haaserd@gmail.com>
date Wed, 02 Apr 2014 15:04:19 -0700
parents ee404f81afe9
children 2003e3685733
comparison
equal deleted inserted replaced
2589:ee404f81afe9 2590:92a9c6ef1ec7
531 531
532 Shorten a given long fqname so that it looks good depending upon whether 532 Shorten a given long fqname so that it looks good depending upon whether
533 the field is a UUID or not. 533 the field is a UUID or not.
534 534
535 :param fqname: fqname, namedtuple 535 :param fqname: fqname, namedtuple
536 :param length maximum length for shortened fqnames in case the field 536 :param length: maximum length for shortened fqnames in case the field is not a UUID.
537 is not a UUID.
538 :rtype: unicode 537 :rtype: unicode
539 :returns: shortened fqname. 538 :returns: shortened fqname.
540 """ 539 """
541 name = fqname.value 540 name = fqname.value
542 if len(name) > length: 541 if len(name) > length: