Project

General

Profile

Revision daa19d09

IDdaa19d093b739a1a14e7f03d0c8f7a2366dab354
Parent e181e86c
Child d9669e56

Added by Francois POIROTTE about 14 years ago

Améliorations pylint/epydoc.

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

View differences:

vigiboard/widgets/edit_event.py
9 9
                        HiddenField, Label
10 10

  
11 11
__all__ = (
12
    'EditEventForm',
13 12
    'edit_event_status_options',
14
    'create_edit_event_form',
13
    'EditEventForm',
15 14
)
16 15

  
17 16
edit_event_status_options = [
......
30 29
    liste déroulante pour le nouveau status
31 30

  
32 31
    Ce widget permet de répondre aux exigences suivantes :
33
    - VIGILO_EXIG_VIGILO_BAC_0060
34
    - VIGILO_EXIG_VIGILO_BAC_0110
32
        - VIGILO_EXIG_VIGILO_BAC_0060
33
        - VIGILO_EXIG_VIGILO_BAC_0110
35 34
    """
36 35

  
37 36
    class fields(WidgetsList):
......
42 41
        ack = SingleSelectField(label_text=l_('Acknowledgement Status'),
43 42
                                options=edit_event_status_options)
44 43
        last_modification = HiddenField()
45
    
46
create_edit_event_form = EditEventForm("edit_event_form",
47
    submit_text=l_('Apply'), action=tg.url('/update'))
48 44

  
vigiboard/widgets/search_form.py
2 2
# vim:set expandtab tabstop=4 shiftwidth=4:
3 3
"""Le formulaire de recherche/filtrage."""
4 4

  
5
import tg
6 5
from pylons.i18n import lazy_ugettext as l_
7 6
from tw.api import WidgetsList
8 7
from tw.forms import TableForm, TextField, CalendarDateTimePicker
9 8

  
10
__all__ = ('SearchForm', 'create_search_form')
9
__all__ = (
10
    'SearchForm',
11
)
11 12

  
12 13
class SearchForm(TableForm):
13 14
    """
......
17 18
    le ticket d'incidence, et la date.
18 19

  
19 20
    Ce widget permet de répondre aux exigences suivantes :
20
    - VIGILO_EXIG_VIGILO_BAC_0070
21
    - VIGILO_EXIG_VIGILO_BAC_0100
21
        - VIGILO_EXIG_VIGILO_BAC_0070
22
        - VIGILO_EXIG_VIGILO_BAC_0100
22 23
    """
23 24
        
24 25
    method = 'GET'
......
38 39
            label_text = l_('To'),
39 40
            button_text = l_("Choose"),
40 41
            not_empty = False)
41
    
42
create_search_form = SearchForm("search_form",
43
    submit_text=l_('Search'), action=tg.url('/'))
44 42

  

Also available in: Unified diff