Пример #1
0
	def toDict( self, full=False ):
		out = self.to_dict( exclude=["user_key","target_key","created_at"] );
		out["id"] = self.key.id()

		# user_key からリファレンスを取得
		user = self.user_key.get();
		out["user"] = functions.userToDict( user )

		return out
Пример #2
0
	def toDict( self ):
		out = self.to_dict( exclude=["user_key"] );
		out["id"] = self.key.id()

		# user_key からリファレンスを取得
		if self.user_key:
			user = self.user_key.get();
			out["user"] = functions.userToDict( user )

		return out
Пример #3
0
	def toDict( self ):
		out = self.to_dict( exclude=["blob_key","created_at","user_key"] )
		out["id"] = self.key.id()
		out["url"] = self.getDownloadUrl();

		# user_key からリファレンスを取得
		if self.user_key:
			user = self.user_key.get();
			out["user"] = functions.userToDict( user )
		return out
Пример #4
0
	def toDict( self, full=False ):
		out = self.to_dict( exclude=["user_key","target_key","created_at"] );
		out["id"] = self.key.id()
		out["created_at"] = functions.convertDatetimeToJp( self.created_at )

		# user_key からリファレンスを取得
		if self.user_key:
			user = self.user_key.get();
			out["user"] = functions.userToDict( user )

		return out