Fixed error and some warning returned by pylint

This commit is contained in:
Roberto Rosario
2011-04-05 00:04:11 -04:00
parent 283df926d1
commit f66c8ec6e2
37 changed files with 269 additions and 287 deletions

View File

@@ -1,8 +1,5 @@
import copy
from django.db.utils import DatabaseError
object_navigation = {}
multi_object_navigation = {}
menu_links = []
@@ -57,7 +54,7 @@ def register_menu(links):
for link in links:
menu_links.append(link)
menu_links.sort(lambda x,y: 1 if x>y else -1, lambda x:x['position'] if 'position' in x else 1)
menu_links.sort(lambda x, y: 1 if x>y else -1, lambda x:x['position'] if 'position' in x else 1)
def register_model_list_columns(model, columns):