Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Goblin OGM
Goblin
Commits
44145302
Commit
44145302
authored
Aug 01, 2016
by
davebshow
Browse files
remove val kwarg again?
parent
b3ebe3ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
goblin/element.py
View file @
44145302
...
...
@@ -154,12 +154,11 @@ class VertexProperty(Vertex, abc.BaseProperty):
__descriptor__
=
VertexPropertyDescriptor
def
__init__
(
self
,
data_type
,
*
,
val
=
None
,
default
=
None
,
db_name
=
None
,
def
__init__
(
self
,
data_type
,
*
,
default
=
None
,
db_name
=
None
,
card
=
None
):
if
isinstance
(
data_type
,
type
):
data_type
=
data_type
()
self
.
_data_type
=
data_type
self
.
_val
=
val
self
.
_default
=
default
self
.
_db_name
=
db_name
if
card
is
None
:
...
...
@@ -180,6 +179,8 @@ class VertexProperty(Vertex, abc.BaseProperty):
def
setvalue
(
self
,
val
):
self
.
_val
=
val
value
=
property
(
getvalue
,
setvalue
)
@
property
def
db_name
(
self
):
return
self
.
_db_name
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment