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))
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))