Changeset 689:7aa9d7136b41 for src
- Timestamp:
- 10/20/15 15:23:12 (9 years ago)
- Branch:
- cef
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r688 r689 234 234 235 235 self._useSimBrief = False 236 self._simBriefUserName = "" 237 self._simBriefPassword = "" 238 self._rememberSimBriefPassword = False 236 239 237 240 self._pirepDirectory = None … … 456 459 if self._useSimBrief != useSimBrief: 457 460 self._useSimBrief = useSimBrief 461 self._modified = True 462 463 @property 464 def simBriefUserName(self): 465 """Get the SimBrief user name last used""" 466 return self._simBriefUserName 467 468 @simBriefUserName.setter 469 def simBriefUserName(self, simBriefUserName): 470 """Set the SimBrief user name to be used next.""" 471 if self._simBriefUserName != simBriefUserName: 472 self._simBriefUserName = simBriefUserName 473 self._modified = True 474 475 @property 476 def simBriefPassword(self): 477 """Get the SimBrief password last used""" 478 return self._simBriefPassword 479 480 @simBriefPassword.setter 481 def simBriefPassword(self, simBriefPassword): 482 """Set the SimBrief password to be used next.""" 483 if self._simBriefPassword != simBriefPassword: 484 self._simBriefPassword = simBriefPassword 485 self._modified = True 486 487 @property 488 def rememberSimBriefPassword(self): 489 """Get if we should remember the SimBrief password.""" 490 return self._rememberSimBriefPassword 491 492 @rememberSimBriefPassword.setter 493 def rememberSimBriefPassword(self, rememberSimBriefPassword): 494 """Set if we should remember the SimBrief password.""" 495 if rememberSimBriefPassword!=self._rememberSimBriefPassword: 496 self._rememberSimBriefPassword = rememberSimBriefPassword 458 497 self._modified = True 459 498 … … 695 734 self._useSimBrief = self._getBoolean(config, "simbrief", 696 735 "use", False) 736 self._simBriefUserName = self._get(config, "simbrief", 737 "username", "") 738 self._simBriefPassword = self._get(config, "simbrief", 739 "password", "") 740 self._rememberSimBriefPassword = self._getBoolean(config, "simbrief", 741 "rememberPassword", 742 False) 697 743 698 744 self._pirepDirectory = self._get(config, "general", … … 779 825 config.set("simbrief", "use", 780 826 "yes" if self._useSimBrief else "no") 827 config.set("simbrief", "username", self._simBriefUserName) 828 config.set("simbrief", "password", self._simBriefPassword) 829 config.set("simbrief", "rememberPassword", 830 "yes" if self._rememberSimBriefPassword else "no") 781 831 782 832 if self._pirepDirectory is not None: … … 930 980 931 981 print " useSimBrief:", self._useSimBrief 982 print " simBriefUserName:", self._simBriefUserName 983 print " rememberSimBriefPassword:", self._rememberSimBriefPassword 932 984 933 985 print " pirepDirectory:", self._pirepDirectory
Note:
See TracChangeset
for help on using the changeset viewer.