[p4] p4com: p4 group -i without ParseForms()
Robert Cowham
robert at vaccaperna.co.uk
Thu May 25 02:01:42 PDT 2006
Hi Nic
A feature of the ParseForms() call is that as per the API it is a set once
and then you can't unset. Therefore just create another instance - one with,
one without and use the appropriate one as you wish.
Robert
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of
> Nicolas St-Amour
> Sent: 24 May 2006 22:14
> To: perforce-user at perforce.com
> Subject: [p4] p4com: p4 group -i without ParseForms()
>
> Hey guys,
>
>
>
> Just wondering if it's possible to use a p4com object without
> using ParseForms and still use the -i flag for a command
> (i.e. the equivalent of a $p4->SetInput and then
> $p4->Run("cmd", "-i") in p4perl).
>
> Seems like the only way to set the input is by using
> set_ArraVar and that method is unavailable via a p4 object
> that is not ParseForms enabled, right?
>
>
>
> If it's not possible, then would it be possible to do the following?
> (i.e. reset the protocol)
>
> p4.ParseForms()
>
> p4.Connect
>
> p4.DoYourStuff
>
> p4.Disconnect
>
> p4.Connect, without using ParseForms, p4.SetProtocol(?!?)
>
> ...
>
>
>
> The reason behind that (based on p4perl) is that depending on
> the server's p4 version, some commands will return parsed
> values and some won't.
>
> To ensure that every plugin/script/whatever we write is
> compatible with the server's version; I like to write my
> stuff w/o using parsed values...
More information about the perforce-user
mailing list