Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Rename 'internal' dir to 'synapse'
Browse files Browse the repository at this point in the history
We needed to switch the admin import as else it tries to import relatively, and
we end up importing the wrong module.
  • Loading branch information
anoadragon453 committed Sep 9, 2020
1 parent c460e3b commit c5af421
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion synapse/app/homeserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def _configure_named_resource(self, name, compress=False):
resources["/_matrix/saml2"] = SAML2Resource(self)

if self.get_config().threepid_behaviour_email == ThreepidBehaviour.LOCAL:
from synapse.rest.internal.client.password_reset import (
from synapse.rest.synapse.client.password_reset import (
PasswordResetSubmitTokenResource,
)

Expand Down
6 changes: 2 additions & 4 deletions synapse/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import synapse.rest.admin
from synapse.http.server import JsonResource
from synapse.rest import admin
from synapse.rest.client import versions
from synapse.rest.client.v1 import (
directory,
Expand Down Expand Up @@ -123,9 +123,7 @@ def register_servlets(client_resource, hs):
password_policy.register_servlets(hs, client_resource)

# moving to /_synapse/admin
synapse.rest.admin.register_servlets_for_client_rest_resource(
hs, client_resource
)
admin.register_servlets_for_client_rest_resource(hs, client_resource)

# unstable
shared_rooms.register_servlets(hs, client_resource)
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/rest/client/v2_alpha/test_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from synapse.api.errors import Codes
from synapse.rest.client.v1 import login, room
from synapse.rest.client.v2_alpha import account, register
from synapse.rest.internal.client.password_reset import PasswordResetSubmitTokenResource
from synapse.rest.synapse.client.password_reset import PasswordResetSubmitTokenResource

from tests import unittest
from tests.unittest import override_config
Expand Down

0 comments on commit c5af421

Please sign in to comment.