Exemplo n.º 1
0
	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))
Exemplo n.º 2
0
 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))