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 16540d32ae
commit 863140fec9
2 changed files with 3 additions and 1 deletions
+1 -1
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
+2
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):