diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-04 14:58:05 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-04 17:27:54 +0200 | 
| commit | 8e19be1b27cf14cf0f76d7c4bcd81e520ac95407 (patch) | |
| tree | 388ccdce5f40fe3bda8c457daeb397805925526d /ishtar_common/forms.py | |
| parent | 3f6567507978281761005dc12951511e0c81a9ae (diff) | |
| download | Ishtar-8e19be1b27cf14cf0f76d7c4bcd81e520ac95407.tar.bz2 Ishtar-8e19be1b27cf14cf0f76d7c4bcd81e520ac95407.zip | |
Forms (operations, context records, files): add search by parcel (refs #575)
Diffstat (limited to 'ishtar_common/forms.py')
| -rw-r--r-- | ishtar_common/forms.py | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index d66d6d4cc..cb007442e 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -1,6 +1,6 @@  #!/usr/bin/env python  # -*- coding: utf-8 -*- -# Copyright (C) 2010-2011  Étienne Loks  <etienne.loks_AT_peacefrogsDOTnet> +# Copyright (C) 2010-2013  Étienne Loks  <etienne.loks_AT_peacefrogsDOTnet>  # This program is free software: you can redistribute it and/or modify  # it under the terms of the GNU Affero General Public License as @@ -101,6 +101,10 @@ class FormSet(BaseFormSet):          form.fields[DELETION_FIELD_NAME].label = ''          form.fields[DELETION_FIELD_NAME].widget = widgets.DeleteWidget() +class TableSelect(forms.Form): +    def get_input_ids(self): +        return self.fields.keys() +  def get_now():      format = formats.get_format('DATE_INPUT_FORMATS')[0]      value = datetime.datetime.now().strftime(format) | 
