http://pypi.python.org/pypi/zope.sqlalchemy
addEventListenerで毎秒addEventListenerする
setInterval(function() { element.addEventListener('click', function(event){ hoge(); }, false) }, 1000);
・イベントリスナーで同じFunctionの場合は追加されない??
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventListener
「They do not cause the EventListener to be called twice and since they are discarded they do not need to be removed with the removeEventListener method.(EventListener が 2 度呼び出されることはなく、重複するインスタンスは反映されないので、removeEventListener で手動で削除する必要はありません。)」
コマンドをPythonで実行
import os os.system('pip install tornado')
PythonのFacebook SDKのTornadoサンプル
python-mysqldbが必要sudo pip install MySQL-python
こんなのがでるかも?
EnvironmentError: mysql_config not found
XAMPPのときmysql_configの場所は
「/Applications/xampp/xamppfiles/bin/mysql_config」なので、
こう書き換える
・build/MySQL-python/setup_posix.py
# mysql_config.path = "mysql_config" mysql_config.path = "/Applications/xampp/xamppfiles/bin/mysql_config"