allows to customize the A in a MENU, thanks ilvalle

This commit is contained in:
mdipierro
2012-10-31 10:22:20 -05:00
parent b18a2a7aa3
commit d67af48f29
2 changed files with 3 additions and 1 deletions

View File

@@ -1 +1 @@
Version 2.2.1 (2012-10-31 10:02:04) stable
Version 2.2.1 (2012-10-31 10:22:15) stable

View File

@@ -2320,6 +2320,8 @@ class MENU(DIV):
li = LI(link)
elif 'no_link_url' in self.attributes and self['no_link_url'] == link:
li = LI(DIV(name))
elif isinstance(link,dict):
li = LI(A(name, **link))
elif link:
li = LI(A(name, _href=link))
elif not link and isinstance(name, A):