98 Class implementing the Pyramid project plugin. |
98 Class implementing the Pyramid project plugin. |
99 """ |
99 """ |
100 PreferencesKey = "Django" |
100 PreferencesKey = "Django" |
101 |
101 |
102 lexerAssociations = { |
102 lexerAssociations = { |
103 "*.html" : "Pygments|HTML+Django/Jinja", |
103 "*.html": "Pygments|HTML+Django/Jinja", |
104 "*.htm" : "Pygments|HTML+Django/Jinja", |
104 "*.htm": "Pygments|HTML+Django/Jinja", |
105 } |
105 } |
106 |
106 |
107 def __init__(self, ui): |
107 def __init__(self, ui): |
108 """ |
108 """ |
109 Constructor |
109 Constructor |
113 QObject.__init__(self, ui) |
113 QObject.__init__(self, ui) |
114 self.__ui = ui |
114 self.__ui = ui |
115 self.__initialize() |
115 self.__initialize() |
116 |
116 |
117 self.__defaults = { |
117 self.__defaults = { |
118 "ServerAddress" : "", |
118 "ServerAddress": "", |
119 |
119 |
120 "RecentNumberApps" : 10, |
120 "RecentNumberApps": 10, |
121 "UsePlainPython" : False, |
121 "UsePlainPython": False, |
122 "UseIPv6": False, |
122 "UseIPv6": False, |
123 } |
123 } |
124 if isWindowsPlatform(): |
124 if isWindowsPlatform(): |
125 self.__defaults["ConsoleCommandNoClose"] = "cmd.exe /k" |
125 self.__defaults["ConsoleCommandNoClose"] = "cmd.exe /k" |
126 self.__defaults["ConsoleCommand"] = "cmd.exe /c" |
126 self.__defaults["ConsoleCommand"] = "cmd.exe /c" |
294 |
294 |
295 @return dictionary with file type associations |
295 @return dictionary with file type associations |
296 """ |
296 """ |
297 if self.__e5project.getProjectType() == "Django": |
297 if self.__e5project.getProjectType() == "Django": |
298 fileTypes = { |
298 fileTypes = { |
299 "*.html" : "FORMS", |
299 "*.html": "FORMS", |
300 "*.htm" : "FORMS", |
300 "*.htm": "FORMS", |
301 "*.js": "SOURCES", |
301 "*.js": "SOURCES", |
302 "*.pot": "TRANSLATIONS", |
302 "*.pot": "TRANSLATIONS", |
303 "*.po": "TRANSLATIONS", |
303 "*.po": "TRANSLATIONS", |
304 "*.mo": "TRANSLATIONS", |
304 "*.mo": "TRANSLATIONS", |
305 } |
305 } |