Working on the rest of the main objects

svn: r19640
This commit is contained in:
Doug Blank
2012-05-24 20:51:46 +00:00
parent b29c7969ed
commit bb1bf9ac7a
24 changed files with 1726 additions and 561 deletions

View File

@@ -298,13 +298,11 @@ def surname_table(obj, user, action, url=None, *args):
name = None
if name:
links = []
count = 1
for surname in name.surname_set.all():
table.row(str(count), surname.surname)
for surname in name.surname_set.all().order_by("order"):
table.row(str(surname.order), surname.surname)
links.append(('URL',
# url is "/person/%s/name/%s/surname"
(url % args) + ("/%s" % count)))
count += 1
(url % args) + ("/%s" % surname.order)))
table.links(links)
retval += table.get_html()
else:
@@ -715,6 +713,9 @@ def person_get_event(person, event_type=None):
for event_handle in event_ref_list]
return [j for i in retval for j in i]
def boolean(s):
return s.lower() in ["true", "1", "yes", "y", "t"]
register_plugins()
# works after registering plugins: