Did I find the right examples for you? yes no

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

src/b/o/bomfu-HEAD/admin/boms.py   bomfu(Download)
    def get_or_404(self, bom_id):
        try:
            bom = Bom.get_by_id(long(bom_id))
            if bom:
                return bom

src/b/o/bomfu-HEAD/web/bom_edit.py   bomfu(Download)
    def get(self, bom_id):
        # TODO:
        #   check user
        bom = Bom.get_by_id(long(bom_id))
        if bom:
    def post(self, bom_id):
        name = self.request.get('name')
        public = self.request.get('public')
        bom = Bom.get_by_id(long(bom_id))
        if bom: