Project

General

Profile

Revision 8cb5da40

ID8cb5da4058e533d252c7ec1dc1924d6ad4bf19d5
Parent 9c0dbb6a
Child 4f9d6461

Added by Thomas ANDREJAK about 15 years ago

Correction Pylint

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@294 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

README/README_jquery/ui_dialog.py
1 1
# -*- coding: utf-8 -*-
2 2
# vim:set expandtab tabstop=4 shiftwidth=4:
3
"""JQuery UI Dialog"""
3 4

  
4 5
# Permission is hereby granted, free of charge, to any person obtaining a copy
5 6
# of this software and associated documentation files (the "Software"), to deal
......
29 30
jquery_ui_dialog_css    = CSSLink(modname=__name__,
30 31
		filename='static/css/ui.all.css')
31 32

  
32
jQuery = js_function('jQuery')
33
jquery = js_function('jQuery')
33 34

  
34 35
class JQueryUIDialog(Widget):
35 36
    
......
64 65
    width = "auto"
65 66
    zindex = 1000
66 67

  
67
    def update_params(self, d):
68
    def update_params(self, dparm):
68 69
        
69 70
        """Allow the user to update the UI Dialog parameters"""
70 71

  
71
        super(JQueryUIDialog, self).update_params(d)
72
        super(JQueryUIDialog, self).update_params(dparm)
72 73
        
73
        if not getattr(d, "id", None):
74
        if not getattr(dparm, "id", None):
74 75
            raise ValueError, "JQueryUIDialog is supposed to have id"
75 76
    	
76 77
        dialog_params = dict (     autoOpen = self.autoOpen,
......
95 96
			zindex = self.zindex
96 97

  
97 98
			)
98
        self.add_call(jQuery("#%s" % d.id).dialog(dialog_params))
99
        self.add_call(jquery("#%s" % dparm.id).dialog(dialog_params))

Also available in: Unified diff