Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Base
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
Container 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Black Fennec
Extensions
Base
Commits
02d50cb4
Commit
02d50cb4
authored
2 years ago
by
Caspar Martens
Browse files
Options
Downloads
Patches
Plain Diff
Refactor observable, change notify signature
parent
28f5dc0b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
base/date_time/date_time_view_model.py
+1
-1
1 addition, 1 deletion
base/date_time/date_time_view_model.py
doubles/date_time/double_date_time_view_model.py
+1
-1
1 addition, 1 deletion
doubles/date_time/double_date_time_view_model.py
with
2 additions
and
2 deletions
base/date_time/date_time_view_model.py
+
1
−
1
View file @
02d50cb4
...
...
@@ -31,7 +31,7 @@ class DateTimeViewModel(Observable):
@date_time.setter
def
date_time
(
self
,
value
:
datetime
):
self
.
_model
.
date_time
=
value
self
.
_notify
(
self
.
_model
.
date_time
,
'
date_time
'
)
self
.
_notify
(
'
date_time
'
,
self
.
_model
.
date_time
)
def
navigate
(
self
):
self
.
_interpretation
.
navigate
(
self
.
_interpretation
.
structure
)
This diff is collapsed.
Click to expand it.
doubles/date_time/double_date_time_view_model.py
+
1
−
1
View file @
02d50cb4
...
...
@@ -9,4 +9,4 @@ class DateTimeViewModelMock(Observable):
self
.
date_time
=
date_time
or
datetime
.
min
def
notify
(
self
,
changed_property
,
name
):
self
.
_notify
(
changed_property
,
name
,
self
)
self
.
_notify
(
name
,
changed_property
,
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