Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)

src/p/y/PyRM-HEAD/pyrm/PyLucid_stuff/PyRM_plugin/PyRM_plugin.py   PyRM(Download)
        self.context["PAGE"].title = _(u"PyRM - Übersicht")
#        raise SyntaxError("TEST")
        self.page_msg(u"Übersicht")
 
    def customers(self):
        self.context["PAGE"].title = _(u"PyRM - Kunden")
 
        self.page_msg(u"Kunden")
 
    #__________________________________________________________________________
    def _save_new_bill(self, form_data):
        self.page_msg(form_data)
        try:
            rechnung = Rechnung.objects.create(form_data)
            rechnung.save()
                if "preview" in self.request.POST:
                    context["preview"] = form_data["positionen"]
                    self.page_msg(repr(form_data["positionen"]))
                else:
                    return self._save_new_bill(form_data)

src/p/y/PyRM-HEAD/pyrm/PyLucid_stuff/PyRM_plugin/forms.py   PyRM(Download)
        self.context["PAGE"].title = _(u"PyRM - Übersicht")
 
        self.page_msg(u"Übersicht")
 
    def customers(self):
        self.context["PAGE"].title = _(u"PyRM - Kunden")
 
        self.page_msg(u"Kunden")
 
    #__________________________________________________________________________
    def _save_new_bill(self, form_data):
        self.page_msg(form_data)
        try:
            rechnung = Rechnung.objects.create(form_data)
            rechnung.save()
                if "preview" in self.request.POST:
                    context["preview"] = form_data["positionen"]
                    self.page_msg(repr(form_data["positionen"]))
                else:
                    return self._save_new_bill(form_data)

src/p/y/python-code-snippets-HEAD/PyLucidPlugins/StringFight/StringFight.py   python-code-snippets(Download)
        except (EngineError, REerror), e:
#            self.log("Error: %s" % e, "StringFight", "error")
            self.page_msg(e)
            return
 
            handle.close()
        except Exception, e:
            self.page_msg(url)
            raise EngineError("Request error: %s" % cgi.escape(str(e)))