-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module Admin - Crash of module during creating Team via command line #38
Comments
Okay, I will set the world item in team, user, db and mdb creation functions. |
I see updates, thank you! But I thought to move block for creating DBLI element of Team inside Qt Core also: aTeamItem = PipeCad.CurrentItem()
PipeCad.CreateItem("DBLI") DBLI element is required for proper functionality of PipeCad and better to keep such thing under Core control but not user. In this case code for creating Team will be more compact and robust: PipeCad.StartTransaction("Create Team")
try:
PipeCad.CreateTeam(aName, self.textDescription.text)
except NameError as e:
# repr(e)
QMessageBox.critical(self, "", str(e))
raise
# try
# Here is block for adding users
PipeCad.CommitTransaction()
PipeCad.SaveWork() |
When create DBLI in CreateTeam funcion, current item is DBLI item, it need set current item back to TEAM Item, this will cost little time. Your suggestion is reasonable, I will move the create DBLI function into function CreateTeam. |
PipeCAD-1.0.13 |
Thank you for fixing, now it works the same manned as expected:) |
During creating of new Team via command line with command
application just crash w/out any warning. As I see in Admin.py code, it could happen due to non selecting proper Team's world container /*T. So for correct using CreateTeam command, there is need to add additional code
I offer to move part for selecting proper world into Qt Core code, so Python code for creating any Team, Db, User, MDB will be simplified as these elements can be created in only dedicated world which are constant during life of project. For example, in this case possible code in Python for creating Team(User, Db, MDB) will be shorter and Python developer will make less mistake:
Module.Admin.-.Crash.of.module.during.creation.team.mp4
The text was updated successfully, but these errors were encountered: