Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Memri
plugins
dropbox
Commits
ea84c173
Commit
ea84c173
authored
3 years ago
by
alexander p
Browse files
Options
Download
Email Patches
Plain Diff
Added CVU
parent
32ba760a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
dropbox_plugin/data/schema.py
+1
-1
dropbox_plugin/data/schema.py
dropbox_plugin/plugin_flow/plugin_flow.py
+6
-0
dropbox_plugin/plugin_flow/plugin_flow.py
scripts/client-simulator.py
+0
-1
scripts/client-simulator.py
with
7 additions
and
2 deletions
+7
-2
dropbox_plugin/data/schema.py
+
1
-
1
View file @
ea84c173
...
...
@@ -65,7 +65,7 @@ class StartPlugin(Item):
self
.
oAuthUrl
=
oAuthUrl
self
.
interval
=
interval
# CVUStoredDefinitions
self
.
view
=
view
if
view
else
None
self
.
view
=
view
if
view
else
[]
@
classmethod
...
...
This diff is collapsed.
Click to expand it.
dropbox_plugin/plugin_flow/plugin_flow.py
+
6
-
0
View file @
ea84c173
import
logging
from
time
import
time
,
sleep
from
pymemri.data.schema
import
CVUStoredDefinition
from
dropbox_plugin.data.schema
import
Plugin
,
StartPlugin
,
Account
,
Photo
,
Video
,
Folder
...
...
@@ -120,6 +123,9 @@ class PluginFlow:
plugin
=
self
.
client
.
get
(
self
.
plugin_id
)
starter
=
StartPlugin
(
targetItemId
=
self
.
plugin_id
,
container
=
plugin
.
container
,
state
=
RUN_IDLE
,
interval
=
interval
)
# add cvus here
cvu
=
CVUStoredDefinition
(
name
=
'oauth-view'
)
self
.
client
.
create
(
cvu
)
starter
.
add_edge
(
'view'
,
cvu
)
self
.
client
.
create
(
starter
)
self
.
run_id
=
starter
.
id
print
(
f
"Started plugin
{
plugin
.
name
}
-
{
self
.
plugin_id
}
and run id
{
self
.
run_id
}
"
)
...
...
This diff is collapsed.
Click to expand it.
scripts/client-simulator.py
+
0
-
1
View file @
ea84c173
from
plugin_template.plugin_flow.plugin_flow
import
PluginFlow
from
dropbox_plugin.dropbox_plugin
import
DropboxPlugin
from
pymemri.pod.client
import
PodClient
import
sys
,
logging
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets