You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During creating of new Team via command line with command
PipeCad.CreateTeam("CS", "TEAM FOR STRUCTURE DISCIPLINE")
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
self.tmwlItem=PipeCad.GetItem("/*T") # Correct world can be assigned by PipeCad automatically in CorePipeCad.SetCurrentItem(self.tmwlItem) # Correct world can be assigned by PipeCad automatically in CorePipeCad.StartTransaction("Create Team")
try:
PipeCad.CreateTeam(aName, self.textDescription.text)
exceptNameErrorase:
# repr(e)QMessageBox.critical(self, "", str(e))
raise# tryaTeamItem=PipeCad.CurrentItem()
PipeCad.CreateItem("DBLI") # All required members for Team can be created automatically during Team creation and implemented into Core.
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:
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)
exceptNameErrorase:
# repr(e)QMessageBox.critical(self, "", str(e))
raise# try# Here is block for adding usersPipeCad.CommitTransaction()
PipeCad.SaveWork()
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: