Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
786576b3
Commit
786576b3
authored
Jul 26, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dump added, account serialization added to add info
parent
c5b78fc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
messaging_extension_action_preview_bot.py
bots/messaging_extension_action_preview_bot.py
+4
-4
camel_case_mixin.py
entities/json/camel_case_mixin.py
+5
-1
No files found.
bots/messaging_extension_action_preview_bot.py
View file @
786576b3
...
@@ -12,7 +12,8 @@ import aiohttp
...
@@ -12,7 +12,8 @@ import aiohttp
from
aiohttp.web_app
import
Application
from
aiohttp.web_app
import
Application
from
botbuilder.core
import
(
TurnContext
,
CardFactory
,
BotFrameworkAdapter
,
from
botbuilder.core
import
(
TurnContext
,
CardFactory
,
BotFrameworkAdapter
,
BotFrameworkAdapterSettings
)
BotFrameworkAdapterSettings
)
from
botbuilder.schema
import
Activity
,
ActivityTypes
,
ResourceResponse
from
botbuilder.schema
import
Activity
,
ActivityTypes
,
ResourceResponse
,
\
ChannelAccount
from
botbuilder.schema.teams
import
(
TaskModuleContinueResponse
,
from
botbuilder.schema.teams
import
(
TaskModuleContinueResponse
,
TaskModuleTaskInfo
,
TaskModuleResponse
,
TaskModuleTaskInfo
,
TaskModuleResponse
,
TaskModuleRequest
)
TaskModuleRequest
)
...
@@ -460,9 +461,8 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
...
@@ -460,9 +461,8 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
conversation_id
=
conversation_id
)
conversation_id
=
conversation_id
)
)
)
members
=
await
self
.
adapter
.
get_conversation_members
(
turn_context
)
members
=
await
self
.
adapter
.
get_conversation_members
(
turn_context
)
await
turn_context
.
send_activity
(
str
([
members
=
[
Account
.
load
(
x
)
.
dump
()
for
x
in
members
]
repr
(
x
)
for
x
in
members
await
turn_context
.
send_activity
(
str
(
members
))
]))
Log
.
d
(
TAG
,
"on_message_activity::help_resp: {}"
.
format
(
response
))
Log
.
d
(
TAG
,
"on_message_activity::help_resp: {}"
.
format
(
response
))
return
return
...
...
entities/json/camel_case_mixin.py
View file @
786576b3
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
import
uuid
import
uuid
from
datetime
import
datetime
from
datetime
import
datetime
from
time
import
time
from
time
import
time
from
typing
import
Dict
,
Any
from
typing
import
Dict
,
Any
,
Union
,
List
import
marshmallow_dataclass
import
marshmallow_dataclass
from
marshmallow
import
pre_load
,
post_dump
,
EXCLUDE
from
marshmallow
import
pre_load
,
post_dump
,
EXCLUDE
...
@@ -46,3 +46,7 @@ class CamelCaseMixin:
...
@@ -46,3 +46,7 @@ class CamelCaseMixin:
""" load data into the object """
""" load data into the object """
schema
=
cls
.
get_schema
(
*
args
,
**
kwargs
)
schema
=
cls
.
get_schema
(
*
args
,
**
kwargs
)
return
schema
.
load
(
data
)
return
schema
.
load
(
data
)
def
dump
(
self
,
*
args
,
**
kwargs
)
->
Union
[
Dict
[
str
,
Any
],
List
]:
""" Dump the object to json dict """
return
self
.
get_schema
(
*
args
,
**
kwargs
)
.
dump
(
self
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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