Package Pyblio :: Package Cite :: Package WP :: Module LyX :: Class LyX
[hide private]
[frames] | no frames]

Class LyX

source code

object --+
         |
        LyX

Instance Methods [hide private]
 
__init__(self, pipe='~/.lyx/lyxpipe')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
connect(self)
Establish connection with LyX.
source code
 
is_connected(self) source code
 
disconnect(self) source code
 
cite(self, keys, db)
Insert the keys in the actual wordprocessor document.
source code
 
fetch(self) source code
 
update_keys(self, keymap) source code
 
update_biblio(self) source code
 
_close(self) source code
 
_send(self, msg, base='LYXCMD')
Send a command 'msg' to the LyX process.
source code
 
__del__(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, pipe='~/.lyx/lyxpipe')
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

connect(self)

source code 

Establish connection with LyX.

Common failures are: nonexitent pipe, or LyX not running...

cite(self, keys, db)

source code 
Insert the keys in the actual wordprocessor document. Each
key contains the actual key and a readable representation for
the reference.

Args:
  keys: [(Pyblio.Store.Key, str)]
  db: Pyblio.Store.Database

_send(self, msg, base='LYXCMD')

source code 
Send a command 'msg' to the LyX process.

Once a client has identified itself, it can issue commands in
its own context 'base'.

Args:
  msg: string
  base: string