Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/f/m/FMPusher-HEAD/main/admin.py   FMPusher(Download)
	def make_push(self, request, queryset):
		from APNSWrapper import APNSNotificationWrapper, APNSNotification, APNSProperty
		import binascii
		wrapper = {}
		for msg in queryset:
				wrapper[key] = APNSNotificationWrapper("/home/mrgaolei/%s" % pem, msg.device.development)
			#wrapper = APNSNotificationWrapper("/home/mrgaolei/%s" % pem, msg.device.development)
			message = APNSNotification()
			message.token(binascii.unhexlify(msg.device.devtoken))
			message.alert(msg.alert.encode("UTF-8"))