Re: [9fans] Any examples of using the py9p client code?

2015-03-25 Thread Skip Tavakkolian
it is easy using Go

https://github.com/9fans/go


On Wed, Mar 25, 2015 at 12:55 AM 6o205z...@sneakemail.com wrote:

 Can anyone point me at an example of using the py9p
 (http://mirtchovski.com/p9/py9p/ or
 https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a
 server.  I've been playing around with a little bit, but haven't had any
 luck.

 More specifically, I would like to use it to write a client that talks
 to P9P acme.  Is that even possible?  If not is there some other python
 library that would help?

  thanks,
  Peter Canning





[9fans] Any examples of using the py9p client code?

2015-03-25 Thread 6o205zd02
Can anyone point me at an example of using the py9p 
(http://mirtchovski.com/p9/py9p/ or 
https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a 
server.  I've been playing around with a little bit, but haven't had any 
luck.


More specifically, I would like to use it to write a client that talks 
to P9P acme.  Is that even possible?  If not is there some other python 
library that would help?


thanks,
Peter Canning




Re: [9fans] ACME Getall ?

2015-03-25 Thread Aram Santogidis
Great, your suggestion solves my problem.

Thanks Antons.

On Tue, Mar 24, 2015 at 7:38 PM, Antons Suspans an...@ml.lv wrote:

 I guess you could try:

 Edit X/^'.. ./ e

 The leading apostrophe selects dirty windows (also directories won't
 match), and the trailing dot (note the space) ensures filename is set.

 If you want to reread non-dirty... then +Errors and dirs/ should be
 excluded - this looks uglier:

 Edit X:^... [^+].*[^\/]$: e

 (and will also ignore 1-letter filenames, if you care).


 On Tue, Mar 24, 2015 at 06:21:19PM +0100, Aram Santogidis wrote:
  Thanks for your response Ilya.
 
  I tried your first suggestion I get the following Error.
 
  Edit: no file name given
 
  For the second suggestion I get this Error.
 
  Edit: dir-name is a directory
 
  I closed the directory windows and it was executed, however dot was
 replaced
  with the contents of a file.
  In this case the dot is not pointing to all text.
 
  So this didn't worked either.
 
  PS: I'm using p9p acme.
 
  On Tue, Mar 24, 2015 at 6:14 PM, Kostarev Ilya uvelichi...@gmail.com
 wrote:
 
Or even
Edit X r
 
--
Kostarev Ilya
 
 
On 24 Mar 2015 at 20:04:41, Kostarev Ilya (uvelichi...@gmail.com)
 wrote:
 
  Seems
  Edit X/.*/ r
  can do
  --
  Kostarev Ilya
 
 
  On 24 Mar 2015 at 19:54:03, Aram Santogidis (gnubun...@gmail.com)
 wrote:
 
Hi all,
 
imagine you have multiple files open in acme and then you
 
$ git checkout somebranch
 
now there is the need to update the views of each open file. You
 can type
Get in the tag of each
window and middle-click it, yes. It would be nice to have a Getall
 along
the lines of Putall, though.
 
I was wondering what is the best way to handle the above situation.
 
Thanks!
Aram
 
 

 --
 Antons Šušpans (Suspans),
 +371 29498719,
 an...@ml.lv




Re: [9fans] Any examples of using the py9p client code?

2015-03-25 Thread Bence Fábián
that doesn't help much if you want to use python though :)

How far did you get Peter? Did you get past the auth stage?
Have you looked into examples/cl.py ?
py9p.Client class should do most of the heavylifting for you.

bence

2015-03-25 9:01 GMT+01:00 Skip Tavakkolian skip.tavakkol...@gmail.com:

 it is easy using Go

 https://github.com/9fans/go


 On Wed, Mar 25, 2015 at 12:55 AM 6o205z...@sneakemail.com wrote:

 Can anyone point me at an example of using the py9p
 (http://mirtchovski.com/p9/py9p/ or
 https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a
 server.  I've been playing around with a little bit, but haven't had any
 luck.

 More specifically, I would like to use it to write a client that talks
 to P9P acme.  Is that even possible?  If not is there some other python
 library that would help?

  thanks,
  Peter Canning





Re: [9fans] jas' cpython

2015-03-25 Thread Jeff Sickel

 On Mar 25, 2015, at 6:12 AM, David du Colombier 0in...@gmail.com wrote:
 
 How should I extract files from an .arch archive?
 
 disk/mkext -d /  cpython-src.arch


Once you have that there will be a new v2.7.9 build available in the near
future.  A huge re-write of ssl.py and _ssl.c (we use _p9ssl.c instead) took
place going from the v2.7.8 to v2.7.9 bump to accommodate/work around some
OpenSSL bugs.  I’m finishing up the Plan 9 _p9ssl.c to support the new
API in ssl.py.  Once that’s done there will be an announcement and additional
pointers about building it.

-jas




Re: [9fans] jas' cpython

2015-03-25 Thread Giacomo Tesio
Thanks David!

2015-03-25 12:12 GMT+01:00 David du Colombier 0in...@gmail.com:

  How should I extract files from an .arch archive?

 disk/mkext -d /  cpython-src.arch

 --
 David du Colombier




Re: [9fans] Any examples of using the py9p client code?

2015-03-25 Thread Skip Tavakkolian
he asked Is that even possible?, hence my suggestion.

On Wed, Mar 25, 2015 at 3:12 AM Bence Fábián beg...@gmail.com wrote:

 that doesn't help much if you want to use python though :)

 How far did you get Peter? Did you get past the auth stage?
 Have you looked into examples/cl.py ?
 py9p.Client class should do most of the heavylifting for you.

 bence

 2015-03-25 9:01 GMT+01:00 Skip Tavakkolian skip.tavakkol...@gmail.com:

 it is easy using Go

 https://github.com/9fans/go


 On Wed, Mar 25, 2015 at 12:55 AM 6o205z...@sneakemail.com wrote:

 Can anyone point me at an example of using the py9p
 (http://mirtchovski.com/p9/py9p/ or
 https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a
 server.  I've been playing around with a little bit, but haven't had any
 luck.

 More specifically, I would like to use it to write a client that talks
 to P9P acme.  Is that even possible?  If not is there some other python
 library that would help?

  thanks,
  Peter Canning






Re: [9fans] jas' cpython

2015-03-25 Thread David du Colombier
 How should I extract files from an .arch archive?

disk/mkext -d /  cpython-src.arch

-- 
David du Colombier



[9fans] jas' cpython

2015-03-25 Thread Giacomo Tesio
I feel a bit dumb, but I can't grasp how to extracts file from

http://plan9.bell-labs.com/sources/contrib/jas/cpython-src.arch.bz2

and

http://plan9.bell-labs.com/sources/contrib/jas/hg-src.arch.bz2


tar(1), gzip(1) and ar(1) did not helped.

How should I extract files from an .arch archive?


Giacomo