Bug487-WuYuhan-Refactor #57
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "Bug487-WuYuhan-Refactor"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
重构了吴宇涵(@wuyuhan)在分支 Bug487-WuYuhan 中提交的检查username代码。
新增类 WarningMessage 对 username 的检查(见Login.py),将检查代码封装在 WarningMessage 类中。
好处:account_service.py中,只需要3行代码即可完成对username的检查,见函数"def signup()"。如果还要添加其他的检查,只需要更新 WarningMessage 类即可,改善代码易读性。
-Hui