|
@@ -154,19 +154,6 @@ class RootController(StandardController):
|
154
|
154
|
fake_api.favorites = Context(CTX.CONTENT_LIST).toDict(items, 'contents', 'nb')
|
155
|
155
|
return DictLikeClass(fake_api=fake_api)
|
156
|
156
|
|
157
|
|
- # user_id = tmpl_context.current_user.user_id
|
158
|
|
- #
|
159
|
|
- # current_user = tmpl_context.current_user
|
160
|
|
- # assert user_id==current_user.user_id
|
161
|
|
- # api = UserApi(current_user)
|
162
|
|
- # current_user = api.get_one(current_user.user_id)
|
163
|
|
- # dictified_user = Context(CTX.USER).toDict(current_user, 'user')
|
164
|
|
- # current_user_content = Context(CTX.CURRENT_USER).toDict(tmpl_context.current_user)
|
165
|
|
- # fake_api_content = DictLikeClass(current_user=current_user_content)
|
166
|
|
- # fake_api = Context(CTX.WORKSPACE).toDict(fake_api_content)
|
167
|
|
- #
|
168
|
|
- # return DictLikeClass(result = dictified_user, fake_api=fake_api)
|
169
|
|
-
|
170
|
157
|
@require(predicates.not_anonymous())
|
171
|
158
|
@expose('tracim.templates.search.display')
|
172
|
159
|
def search(self, keywords=''):
|