Пример #1
0
 def get_bugreport(self):
     email = utils.mangle_email(self.g_email.get_text())
     buf = self.g_tw.get_buffer()
     description = buf.get_text(buf.get_start_iter(), buf.get_end_iter())
     try:
         windowsversion = str(sys.getwindowsversion())
     except AttributeError:
         windowsversion = "(not running ms windows)"
     return "\n".join([
         "!%s" % self.g_description.get_text(),
         "Submitter: %s\\\\" % email,
         "Long desciption: %s\n" % description,
         "||border=1",
         "|| Solfege version||%s ||" % buildinfo.VERSION_STRING,
         "|| Bzr revision info ||%s ||" % buildinfo.get_bzr_revision_info_pmwiki(),
         "|| gtk.pygtk_version||%s ||" % str(gtk.pygtk_version),
         "|| gtk||%s ||" % gtk,
         "|| sys.version_info||%s||" % str(sys.version_info),
         "|| sys.version||%s||" % sys.version.replace("\n", ""),
         "|| sys.prefix||%s||" % sys.prefix,
         "|| sys.platform||%s||" % sys.platform,
         "|| windowsversion||%s||" % windowsversion,
         "\n",
         "Message from stderr:",
         " %apply=block bgcolor=silver margin=1em padding=1em border='1px dashed black'%[=",
         self.m_error_text,
         "=]",
         ])
Пример #2
0
 def on_update_mangle(self,  *v):
     cfg.set_string('user/email', self.g_email.get_text())
     self.g_mangled_email.set_text(utils.mangle_email(self.g_email.get_text()))