4 # |
4 # |
5 |
5 |
6 """ |
6 """ |
7 Module implementing a dialog for the Mercurial server. |
7 Module implementing a dialog for the Mercurial server. |
8 """ |
8 """ |
|
9 |
|
10 from __future__ import unicode_literals # __IGNORE_WARNING__ |
|
11 try: |
|
12 str = unicode |
|
13 except (NameError): |
|
14 pass |
9 |
15 |
10 import os |
16 import os |
11 |
17 |
12 from PyQt4.QtCore import QProcess, Qt, QSize |
18 from PyQt4.QtCore import QProcess, Qt, QSize |
13 from PyQt4.QtGui import QAction, QToolBar, QPlainTextEdit, \ |
19 from PyQt4.QtGui import QAction, QToolBar, QPlainTextEdit, \ |
32 |
38 |
33 @param vcs reference to the vcs object |
39 @param vcs reference to the vcs object |
34 @param path path of the repository to serve (string) |
40 @param path path of the repository to serve (string) |
35 @param parent reference to the parent widget (QWidget) |
41 @param parent reference to the parent widget (QWidget) |
36 """ |
42 """ |
37 super().__init__(parent) |
43 super(HgServeDialog, self).__init__(parent) |
38 |
44 |
39 self.vcs = vcs |
45 self.vcs = vcs |
40 self.__repoPath = path |
46 self.__repoPath = path |
41 |
47 |
42 self.__styles = ["paper", "coal", "gitweb", "monoblue", "spartan", ] |
48 self.__styles = ["paper", "coal", "gitweb", "monoblue", "spartan", ] |