158 'help': 'regular expression matching URLs that may be embeded. \ |
158 'help': 'regular expression matching URLs that may be embeded. \ |
159 leave it blank if you don\'t want the embedding feature, or set it to ".*" \ |
159 leave it blank if you don\'t want the embedding feature, or set it to ".*" \ |
160 if you want to allow everything', |
160 if you want to allow everything', |
161 'group': 'web', 'inputlevel': 1, |
161 'group': 'web', 'inputlevel': 1, |
162 }), |
162 }), |
163 ('submit-url', |
|
164 {'type' : 'string', |
|
165 'default': Method('default_submit_url'), |
|
166 'help': ('URL that may be used to report bug in this instance ' |
|
167 'by direct access to the project\'s (jpl) tracker, ' |
|
168 'if you want this feature on. The url should looks like ' |
|
169 'http://mytracker.com/view?__linkto=concerns:1234:subject&etype=Ticket&type=bug&vid=creation ' |
|
170 'where 1234 should be replaced by the eid of your project in ' |
|
171 'the tracker. If you have no idea about what I\'am talking ' |
|
172 'about, you should probably let no value for this option.'), |
|
173 'group': 'web', 'inputlevel': 2, |
|
174 }), |
|
175 ('submit-mail', |
163 ('submit-mail', |
176 {'type' : 'string', |
164 {'type' : 'string', |
177 'default': None, |
165 'default': None, |
178 'help': ('Mail used as recipient to report bug in this instance, ' |
166 'help': ('Mail used as recipient to report bug in this instance, ' |
179 'if you want this feature on'), |
167 'if you want this feature on'), |
193 'default': not CubicWebConfiguration.mode == 'installed', |
181 'default': not CubicWebConfiguration.mode == 'installed', |
194 'help': 'print the traceback on the error page when an error occured', |
182 'help': 'print the traceback on the error page when an error occured', |
195 'group': 'web', 'inputlevel': 2, |
183 'group': 'web', 'inputlevel': 2, |
196 }), |
184 }), |
197 )) |
185 )) |
198 |
|
199 def default_submit_url(self): |
|
200 try: |
|
201 cube = self.cubes()[0] |
|
202 cubeeid = self.cube_pkginfo(cube).cube_eid |
|
203 except Exception: |
|
204 return None |
|
205 if cubeeid: |
|
206 return 'http://intranet.logilab.fr/jpl/view?__linkto=concerns:%s:subject&etype=Ticket&type=bug&vid=creation' % cubeeid |
|
207 return None |
|
208 |
186 |
209 def fckeditor_installed(self): |
187 def fckeditor_installed(self): |
210 return exists(self.ext_resources['FCKEDITOR_PATH']) |
188 return exists(self.ext_resources['FCKEDITOR_PATH']) |
211 |
189 |
212 def eproperty_definitions(self): |
190 def eproperty_definitions(self): |