2008年9月18日 星期四

app engine sdk 1.1.3 版開放下載

主要開放了幾個新功能
1. zipimport 和 zipserve : 本來app engine中有個限制 就是靜態檔案大小不能超過1mb 數量不能超過1000個 但是如果import很多自己抓的lib時 因為lib裡的檔案都很小很多 因此可能就會超過1000個的限制 現在新多的zip功能就是可以把這些小檔壓縮成一個檔 然後在zipimport進來取出其中的小部份 (它沒說有開放單一檔案1mb的限制 所以整體壓縮檔應該還是不能超過1mb) 這樣就可以突破app engine中所設的1000檔案數量限制
除了引用函式庫可以用zip這功能之外 也提供了zipserve 從單一的zip壓縮檔中提取小檔給使用者下載 例如把10張圖片壓成一個zip檔 要用再把其中的圖檔解壓出來
至於範例code目前官方教學還沒有 最近也有點忙 下週再試看看

---
補充:
剛剛找到的python官方關於 zipimport的文件 http://docs.python.org/lib/module-zipimport.html

還有google code上的zipserve的文件 裡頭有簡單的範例
http://code.google.com/p/googleappengine/source/browse/trunk/google/appengine/ext/zipserve/__init__.py?r=19
---


2. 新增了在本機開發伺服器觀看memcache狀態的功能 使用發法就是在devserver app正在運行的時候 進入 http://localhost:8080/_ah/admin 即可

3. URLFetch 現在可以自訂要不要自動轉向到新網址 (redirect)

4. 修正了其他的一些bug.....

---->最期待的開放1mb限制還是沒有 嗚嗚

以下是原文



SDK 1.1.3 Now Available for download

Yesterday we released the latest SDK, and you can read all about it in the release notes.

Notable new features in this SDK are:

  • Support for zipimport and a new module, zipserve, which serves static files from a zip archive. These allow you to work past the 1000-file app deployment limit.
  • The development console now includes a memcache viewer (you can use this by accessing http://localhost:8080/_ah/admin while your app is running on the SDK).
  • URLFetch now allows users to disable automatically following HTTP redirects.
  • We now allow composite indexes with repeated properties.

It also includes the following issue fixes:

  • It correctly escapes path separators in static_dir path on windows.
  • Sending email messages with unicode content now works.
  • Fixed db.run_in_transaction so that it doesn't allow inserting two (or more) new root entities in a single transaction.

    The new SDK is available for download, and as always, we welcome your feedback on the group!

  •