@@ -124,20 +124,42 @@ def _backend(self):
124124
125125 def get_autologin (self , key , cache = False , cache_ttl = None ):
126126 # type: (str, bool, typing.Optional[int]) -> typing.Optional[dict]
127- output = self ._backend .execute ('get_autologin' , key = key )\
128- # type: typing.Optional[dict]
127+ output = self ._backend .execute (
128+ 'get_autologin' ,
129+ key = key ,
130+ cache = cache ,
131+ cache_ttl = cache_ttl ,
132+ ) # type: typing.Optional[dict]
129133 return output
130134
131135 def get_session (self , session_id , cache = False , cache_ttl = None ):
132136 # type: (str, bool, typing.Optional[int]) -> typing.Optional[dict]
133- output = self ._backend .execute ('get_session' , session_id = session_id )\
134- # type: typing.Optional[dict]
137+ output = self ._backend .execute (
138+ 'get_session' ,
139+ session_id = session_id ,
140+ cache = cache ,
141+ cache_ttl = cache_ttl ,
142+ ) # type: typing.Optional[dict]
135143 return output
136144
137145 def get_user (self , user_id , cache = False , cache_ttl = None ):
138146 # type: (int, bool, typing.Optional[int]) -> typing.Optional[dict]
139- output = self ._backend .execute ('get_user' , user_id = user_id )\
140- # type: typing.Optional[dict]
147+ output = self ._backend .execute (
148+ 'get_user' ,
149+ user_id = user_id ,
150+ cache = cache ,
151+ cache_ttl = cache_ttl ,
152+ ) # type: typing.Optional[dict]
153+ return output
154+
155+ def get_user_profile (self , user_id , cache = False , cache_ttl = None ):
156+ # type: (int, bool, typing.Optional[int]) -> typing.Optional[dict]
157+ output = self ._backend .execute (
158+ 'get_user_profile' ,
159+ user_id = user_id ,
160+ cache = cache ,
161+ cache_ttl = cache_ttl ,
162+ ) # type: typing.Optional[dict]
141163 return output
142164
143165 def has_membership (
@@ -210,6 +232,22 @@ def get_user_acl(self, raw_user_permissions):
210232 # type: (str) -> flask_phpbb3.backends.base.UserAcl
211233 return self ._backend .get_user_acl (raw_user_permissions )
212234
235+ def execute_custom (
236+ self ,
237+ command , # type: str
238+ cache = False , # type: bool
239+ cache_ttl = None , # type: typing.Optional[int]
240+ ** kwargs # type: typing.Any
241+ ):
242+ # type: (...) -> typing.Any
243+ output = self ._backend .execute (
244+ command ,
245+ cache = cache ,
246+ cache_ttl = cache_ttl ,
247+ ** kwargs
248+ ) # type: typing.Any
249+ return output
250+
213251 def teardown (self , exception ):
214252 # type: (typing.Any) -> None
215253 ctx = flask ._app_ctx_stack .top
0 commit comments