コード例 #1
0
ファイル: reference.py プロジェクト: AdminCNP/appscript
	def AS_newreference(self, ref):
		"""Create a new appscript reference from an aem reference."""
		if isinstance(ref, GenericReference):
			return ref.AS_resolve(self.AS_appdata)
		elif isinstance(ref, aem.types.BASE):
			return Reference(self.AS_appdata, ref)
		elif ref is None:
			return Reference(self.AS_appdata, aem.app)
		else:
			return Reference(self.AS_appdata, aem.customroot(ref))
コード例 #2
0
ファイル: reference.py プロジェクト: wkschwartz/appscript
 def AS_newreference(self, ref):
     """Create a new appscript reference from an aem reference."""
     if isinstance(ref, GenericReference):
         return ref.AS_resolve(Reference, self.AS_appdata)
     elif isinstance(ref, aem.Query):
         return Reference(self.AS_appdata, ref)
     elif ref is None:
         return Reference(self.AS_appdata, aem.app)
     else:
         return Reference(self.AS_appdata, aem.customroot(ref))