Skip to content

Commit 06130a3

Browse files
author
Emily Olshefski
committed
Update component_dialog.py
1 parent 74d2a0a commit 06130a3

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

libraries/botbuilder-dialogs/botbuilder/dialogs/component_dialog.py

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ async def continue_dialog(self, dialog_context: DialogContext) -> DialogTurnResu
8888
contain a return value.
8989
9090
If this method is *not* overriden the component dialog calls the
91-
:meth:`DialogContext.continue_dialog` method on it's inner dialog
91+
:meth:`botbuilder.dialogs.DialogContext.continue_dialog` method on it's inner dialog
9292
context. If the inner dialog stack is empty, the component dialog ends,
93-
and if a :class:`DialogTurnResult.result` is available, the component dialog
93+
and if a :var:`botbuilder.dialogs.DialogTurnResult.result` is available, the component dialog
9494
uses that as it's return value.
9595
9696
97-
:param dialog_context: The parent :class:`DialogContext` for the current turn of the conversation.
98-
:type dialog_context: :class:`DialogContext`
97+
:param dialog_context: The parent :class:`botbuilder.dialogs.DialogContext` for the current turn of the conversation.
98+
:type dialog_context: :class:`botbuilder.dialogs.DialogContext`
9999
:return: Signals the end of the turn
100100
:rtype: :var:`Dialog.end_of_turn`
101101
"""
@@ -126,8 +126,8 @@ async def resume_dialog(
126126
To avoid the container prematurely ending we need to implement this method and simply
127127
ask our inner dialog stack to re-prompt.
128128
129-
:param dialog_context: The :class:`DialogContext` for the current turn of the conversation.
130-
:type dialog_context: :class:`DialogContext`
129+
:param dialog_context: The :class:`botbuilder.dialogs.DialogContext` for the current turn of the conversation.
130+
:type dialog_context: :class:`botbuilder.dialogs.DialogContext`
131131
:param reason: Reason why the dialog resumed.
132132
:type reason: :class:`DialogReason`
133133
:param result: Optional, value returned from the dialog that was called.
@@ -148,7 +148,7 @@ async def reprompt_dialog(
148148
:param context: The context object for this turn.
149149
:type context: :class:`botbuilder.core.TurnContext`
150150
:param instance: State information for this dialog.
151-
:type instance: :class:`DialogInstance`
151+
:type instance: :class:`botbuilder.dialogs.DialogInstance`
152152
"""
153153
# Delegate to inner dialog.
154154
dialog_state = instance.state[self.persisted_dialog_state]
@@ -167,9 +167,9 @@ async def end_dialog(
167167
:param context: The context object for this turn.
168168
:type context: :class:`botbuilder.core.TurnContext`
169169
:param instance: State information associated with the instance of this component dialog.
170-
:type instance: :class:`DialogInstance`
170+
:type instance: :class:`botbuilder.dialogs.DialogInstance`
171171
:param reason: Reason why the dialog ended.
172-
:type reason: :class:`DialogReason`
172+
:type reason: :class:`botbuilder.dialogs.DialogReason`
173173
"""
174174
# Forward cancel to inner dialog
175175
if reason == DialogReason.CancelCalled:
@@ -183,7 +183,7 @@ def add_dialog(self, dialog: Dialog) -> object:
183183
Adds a :class:`Dialog` to the component dialog and returns the updated component.
184184
185185
:param dialog: The dialog to add.
186-
:type dialog: :class:`Dialog`
186+
:type dialog: :class:`botbuilder.dialogs.Dialog`
187187
:return self: The updated :class:`ComponentDialog`
188188
:rtype self: :class:`ComponentDialog`
189189
"""
@@ -198,7 +198,7 @@ def find_dialog(self, dialog_id: str) -> Dialog:
198198
199199
:param dialog_id: The dialog to add.
200200
:type dialog_id: str
201-
:return: The :class:`Dialog`; or None if there is not a match for the ID.
201+
:return: The :class:`botbuilder.dialogs.Dialog`; or None if there is not a match for the ID.
202202
"""
203203
return self._dialogs.find(dialog_id)
204204

@@ -212,13 +212,13 @@ async def on_begin_dialog(
212212
If the task is successful, the result indicates whether the dialog is still
213213
active after the turn has been processed by the dialog.
214214
215-
By default, this calls the :meth:`Dialog.begin_dialog()` method of the component
215+
By default, this calls the :meth:`botbuilder.dialogs.Dialog.begin_dialog()` method of the component
216216
dialog's initial dialog.
217217
218218
Override this method in a derived class to implement interrupt logic.
219219
220-
:param inner_dc: The inner :class:`DialogContext` for the current turn of conversation.
221-
:type inner_dc: :class:`DialogContext`
220+
:param inner_dc: The inner :class:`botbuilder.dialogs.DialogContext` for the current turn of conversation.
221+
:type inner_dc: :class:`botbuilder.dialogs.DialogContext`
222222
:param options: Optional, initial information to pass to the dialog.
223223
:type options: object
224224
"""
@@ -228,8 +228,8 @@ async def on_continue_dialog(self, inner_dc: DialogContext) -> DialogTurnResult:
228228
"""
229229
Called when the dialog is continued, where it is the active dialog and the user replies with a new activity.
230230
231-
:param inner_dc: The inner :class:`DialogContext` for the current turn of conversation.
232-
:type inner_dc: :class:`DialogContext`
231+
:param inner_dc: The inner :class:`botbuilder.dialogs.DialogContext` for the current turn of conversation.
232+
:type inner_dc: :class:`botbuilder.dialogs.DialogContext`
233233
"""
234234
return await inner_dc.continue_dialog()
235235

@@ -242,9 +242,9 @@ async def on_end_dialog( # pylint: disable=unused-argument
242242
:param turn_context: The :class:`botbuilder.core.TurnContext` for the current turn of the conversation.
243243
:type turn_context: :class:`botbuilder.core.TurnContext`
244244
:param instance: State information associated with the instance of this component dialog.
245-
:type instance: :class:`DialogInstance`
245+
:type instance: :class:`botbuilder.dialogs.DialogInstance`
246246
:param reason: Reason why the dialog ended.
247-
:type reason: :class:`DialogReason`
247+
:type reason: :class:`botbuilder.dialogs.DialogReason`
248248
"""
249249
return
250250

@@ -253,9 +253,9 @@ async def on_reprompt_dialog( # pylint: disable=unused-argument
253253
) -> None:
254254
"""
255255
:param turn_context: The :class:`botbuilder.core.TurnContext` for the current turn of the conversation.
256-
:type turn_context: :class:`DialogInstance`
256+
:type turn_context: :class:`botbuilder.dialogs.DialogInstance`
257257
:param instance: State information associated with the instance of this component dialog.
258-
:type instance: :class:`DialogInstance`
258+
:type instance: :class:`botbuilder.dialogs.DialogInstance`
259259
"""
260260
return
261261

@@ -270,19 +270,19 @@ async def end_component(
270270
turn was processed by the dialog.
271271
272272
In general, the parent context is the dialog or bot turn handler that started the dialog.
273-
If the parent is a dialog, the stack calls the parent's :meth:`Dialog.resume_dialog()` method
273+
If the parent is a dialog, the stack calls the parent's :meth:`botbuilder.dialogs.Dialog.resume_dialog()` method
274274
to return a result to the parent dialog. If the parent dialog does not implement
275-
:meth:`Dialog.resume_dialog()`, then the parent will end, too, and the result is passed to the next
275+
:meth:`botbuilder.dialogs.Dialog.resume_dialog()`, then the parent will end, too, and the result is passed to the next
276276
parent context, if one exists.
277277
278-
The returned :class:`DialogTurnResult`contains the return value in its
279-
:class:`DialogTurnResult.result` property.
278+
The returned :class:`botbuilder.dialogs.DialogTurnResult`contains the return value in its
279+
:var:`botbuilder.dialogs.DialogTurnResult.result` property.
280280
281-
:param outer_dc: The parent :class:`DialogContext` for the current turn of conversation.
282-
:type outer_dc: :class:`DialogContext`
281+
:param outer_dc: The parent :class:`botbuilder.dialogs.DialogContext` for the current turn of conversation.
282+
:type outer_dc: :class:`botbuilder.dialogs.DialogContext`
283283
:param result: Optional, value to return from the dialog component to the parent context.
284284
:type result: object
285285
:return : Value to return.
286-
:rtype: :var:`DialogTurnResult.result`
286+
:rtype: :var:`botbuilder.dialogs.DialogTurnResult.result`
287287
"""
288288
return await outer_dc.end_dialog(result)

0 commit comments

Comments
 (0)