Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TSRh
gajim
Commits
4c55eda6
Commit
4c55eda6
authored
18 years ago
by
Liorithiel
Browse files
Options
Downloads
Patches
Plain Diff
Do not destroy a form twice.
parent
b7261d39
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dataforms_widget.py
+5
-0
5 additions, 0 deletions
src/dataforms_widget.py
with
5 additions
and
0 deletions
src/dataforms_widget.py
+
5
−
0
View file @
4c55eda6
...
...
@@ -111,6 +111,9 @@ def show(self):
# we have actually two different kinds of data forms: one is a simple form to fill,
# second is a table with several records;
def
empty_method
(
self
):
pass
def
clean_data_form
(
self
):
'''
Remove data about existing form. This metod is empty, because
it is rewritten by build_*_data_form, according to type of form
...
...
@@ -136,6 +139,7 @@ def clean_single_data_form(self):
'''
(Called as clean_data_form, read the docs of clean_data_form()).
Remove form from widget.
'''
self
.
singleform
.
destroy
()
self
.
clean_data_form
=
self
.
empty_method
# we won't call it twice
del
self
.
singleform
def
build_multiple_data_form
(
self
):
...
...
@@ -183,6 +187,7 @@ def build_multiple_data_form(self):
def
clean_multiple_data_form
(
self
):
'''
(Called as clean_data_form, read the docs of clean_data_form()).
Remove form from widget.
'''
self
.
clean_data_form
=
self
.
empty_method
# we won't call it twice
del
self
.
multiplemodel
def
refresh_multiple_buttons
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment