Changeset 1802:0d0bfa938334
- Timestamp:
- 05/04/09 13:44:23 (16 months ago)
- Author:
- Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
- Branch:
- default
- Message:
-
get rid of uuid based vim server names
- Location:
- pida/editors/vim
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1409
|
r1802
|
|
| 1 | 1 | # -*- coding: utf-8 -*- |
| | 2 | |
| 2 | 3 | # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: |
| 3 | 4 | """ |
| … |
… |
|
| 16 | 17 | class VimEmbedWidget(gtk.EventBox): |
| 17 | 18 | |
| 18 | | def __init__(self, command, script_path, uid, args=[]): |
| | 19 | def __init__(self, command, script_path, args=[]): |
| 19 | 20 | gtk.EventBox.__init__(self) |
| 20 | | self.server_name = uid |
| | 21 | # XXX: leftover from vim com |
| | 22 | # self.server_name = uid |
| 21 | 23 | self._command = command |
| 22 | 24 | self._init_script = script_path |
| … |
… |
|
| 48 | 50 | popen = subprocess.Popen( |
| 49 | 51 | [self._command, |
| 50 | | '--servername', self.server_name, |
| | 52 | # XXX: leftover from vim com |
| | 53 | #'--servername', self.server_name, |
| 51 | 54 | '--cmd', 'let PIDA_EMBEDDED=1', |
| 52 | 55 | '--cmd', 'so %s' % self._init_script, |
-
|
r1679
|
r1802
|
|
| 7 | 7 | :copyright: 2007-2008 the Pida Project |
| 8 | 8 | """ |
| 9 | | import os, uuid |
| | 9 | import os |
| 10 | 10 | |
| 11 | 11 | # PIDA Imports |
| … |
… |
|
| 21 | 21 | from pida.core.editors import EditorService, _ |
| 22 | 22 | |
| 23 | | UID = 'PIDA_EMBEDDED_%s' % uuid.uuid4().get_hex() |
| 24 | | |
| 25 | 23 | |
| 26 | 24 | def _do_nothing(*args): |
| … |
… |
|
| 33 | 31 | |
| 34 | 32 | def create_ui(self): |
| 35 | | self._vim = VimEmbedWidget('gvim', self.svc.script_path, UID) |
| | 33 | self._vim = VimEmbedWidget('gvim', self.svc.script_path) |
| 36 | 34 | self.add_main_widget(self._vim) |
| 37 | 35 | |