Exemple #1
0
	def __get_address(self):
		pk = self.GetData()
		if pk is None:
			self.__address = None
			return None
		if self.__address is None:
			self.__old_pk = pk
			self.__address = gmDemographicRecord.cAddress(aPK_obj = pk)
		else:
			if pk != self.__old_pk:
				self.__old_pk = pk
				self.__address = gmDemographicRecord.cAddress(aPK_obj = pk)
		return self.__address
Exemple #2
0
 def __get_address(self):
     pk = self.GetData()
     if pk is None:
         self.__address = None
         return None
     if self.__address is None:
         self.__old_pk = pk
         self.__address = gmDemographicRecord.cAddress(aPK_obj=pk)
     else:
         if pk != self.__old_pk:
             self.__old_pk = pk
             self.__address = gmDemographicRecord.cAddress(aPK_obj=pk)
     return self.__address
Exemple #3
0
 def test_address_ea_pnl():
     app = wx.PyWidgetTester(size=(600, 400))
     app.SetWidget(cAddressEditAreaPnl,
                   address=gmDemographicRecord.cAddress(aPK_obj=1))
     app.MainLoop()
Exemple #4
0
 def _data2instance(self):
     return gmDemographicRecord.cAddress(aPK_obj=self.GetData())
Exemple #5
0
	def _get_address(self):
		if self._payload[self._idx['pk_address']] is None:
			return None
		return gmDemographicRecord.cAddress(aPK_obj = self._payload[self._idx['pk_address']])
Exemple #6
0
	def test_address_ea_pnl():
		app = wx.PyWidgetTester(size = (600, 400))
		app.SetWidget(cAddressEditAreaPnl, address = gmDemographicRecord.cAddress(aPK_obj = 1))
		app.MainLoop()
Exemple #7
0
	def _data2instance(self):
		return gmDemographicRecord.cAddress(aPK_obj = self.GetData())
Exemple #8
0
	def _get_address(self):
		if self._payload[self._idx['pk_address']] is None:
			return None
		return gmDemographicRecord.cAddress(aPK_obj = self._payload[self._idx['pk_address']])