#alhamdulillah Setelah beberapa hari yang lalu sempat shock dengan "Unable to acquire Oracle environment handle"-nya #py2exe dan #cx_oracle, hari ini berjalan dengan lancar. Solusi dari #stackoverflow menjawab pertanyaan ini. Dan ternyata (lagi), masalah ini sudah ditanyakan sejak 2009 dan jawabannya masih relevan. Wow !! Sekarang ane punya aplikasi portable .exe yang dibangun dengan #python dan support #oracle. :D
To handle different methods differently: Many of my HTTP handlers contain nothing but a switch statement like this:
switch r.Method {
case "GET":
// Serve the resource.
case "POST":
// Create a new record.
case "PUT":
// Update an existing record.
case "DELETE":
// Remove the record.
default:
// Give an error message.
}