comparison libervia/backend/plugins/plugin_comp_file_sharing_management.py @ 4341:e9971a4b0627

remove uses of twisted.internet.defer.returnValue This function has been deprecated in Twisted 24.7.0.
author Povilas Kanapickas <povilas@radix.lt>
date Wed, 11 Dec 2024 01:17:09 +0200
parents 0d7bb4df2343
children 627f872bc16e
comparison
equal deleted inserted replaced
4340:ea72364131d5 4341:e9971a4b0627
128 def _err(self, reason): 128 def _err(self, reason):
129 """Helper method to get argument to return for error 129 """Helper method to get argument to return for error
130 130
131 workflow will be interrupted with an error note 131 workflow will be interrupted with an error note
132 @param reason(unicode): reason of the error 132 @param reason(unicode): reason of the error
133 @return (tuple): arguments to use in defer.returnValue 133 @return (tuple): value to return
134 """ 134 """
135 status = self._c.STATUS.COMPLETED 135 status = self._c.STATUS.COMPLETED
136 payload = None 136 payload = None
137 note = (self._c.NOTE.ERROR, reason) 137 note = (self._c.NOTE.ERROR, reason)
138 return payload, status, None, note 138 return payload, status, None, note
139 139
140 def _get_root_args(self): 140 def _get_root_args(self):
141 """Create the form to select the file to use 141 """Create the form to select the file to use
142 142
143 @return (tuple): arguments to use in defer.returnValue 143 @return (tuple): value to return
144 """ 144 """
145 status = self._c.STATUS.EXECUTING 145 status = self._c.STATUS.EXECUTING
146 form = data_form.Form( 146 form = data_form.Form(
147 "form", title="File Management", formNamespace=NS_FILE_MANAGEMENT 147 "form", title="File Management", formNamespace=NS_FILE_MANAGEMENT
148 ) 148 )