Mailing List Archive

Using xenapi.event.from() in python
Hello,

I found a funciton named 'sesson.xenapi.event.from()' in XAPI.

The question is How can I use it with python, as 'from' is a reserved word ?

--
-----------
Cao Tong



_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: Using xenapi.event.from() in python [ In reply to ]
Got the solution and thanks @johnelse

session.xenapi.event.__getattr__("from")()
session.xenapi.__getattr__("event.from")()

-----------
Cao Tong

On 08/17/2015 03:30 PM, tony_caotong@163.com wrote:
>
> Hello,
>
> I found a funciton named 'sesson.xenapi.event.from()' in XAPI.
>
> The question is How can I use it with python, as 'from' is a reserved
> word ?
>



_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
Re: Using xenapi.event.from() in python [ In reply to ]
Hi,

When I use the function 'sesson.xenapi.event.from()', is there a
way to get the latest 'event_token' instead of get all events at first
time ?

-----------
Cao Tong

On 08/17/2015 03:30 PM, tony_caotong@163.com wrote:
>
> Hello,
>
> I found a funciton named 'sesson.xenapi.event.from()' in XAPI.
>
> The question is How can I use it with python, as 'from' is a reserved
> word ?
>



_______________________________________________
Xen-api mailing list
Xen-api@lists.xen.org
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api