Skip to content

Commit

Permalink
fix some small glitches
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Oberstein committed Sep 27, 2011
1 parent 55382a4 commit defca03
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
57 changes: 57 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,3 +1,60 @@
Common Tasks
============

1. Build Python Documentation
-----------------------------

1.1 Building the documentation
..............................

Requires Sphinx:

easy_install sphinx

To build the documentation, do

cd doc/python
make html

This will create the documentation under

doc/python/_build/html


1.2 Deployment to Tavendo Web site
..................................

The generated contents of above folder then needs to
be checked into the

wwwtavendo

repository in this directory

tavendo/tavendo/static/autobahn/doc/python

The repository change has to be pulled on the
Web site production host www.tavendo.de


2. Publishing to PyPi
---------------------

cd lib/python

The distribution has to be registered

python setup.py register

Now build and upload the following build variants:

python setup.py sdist upload
python setup.py bdist_egg upload
python setup.py bdist_wininst upload




Test Suite
==========

Expand Down
2 changes: 1 addition & 1 deletion demo/pubsub/simple/client.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

function test()
{
sess.publish("event:simple", {name: "foo", value: "bar", num: 23});
sess.publish("event:simple", {name: "foo", created: new Date(), num: 23, rand: Math.random()});
sess.publish("event:simple-foobar", {name: "foo", value: "bar", num: 333});
sess.publish("event:foobar1", {count: 42});
sess.publish("event:foobar1", {count: -1});
Expand Down
2 changes: 2 additions & 0 deletions lib/python/autobahn/autobahn.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,8 @@ def _dispatchEvent(self, topicuri, event):
o = [AutobahnProtocol.MESSAGE_TYPEID_EVENT, topicuri, event]
try:
msg = json.dumps(o)
if self.debug_autobahn:
log.msg("serialized event msg: " + str(msg))
except:
raise Exception("invalid type for event (not JSON serializable)")
for proto in self.subscriptions[topicuri]:
Expand Down

0 comments on commit defca03

Please sign in to comment.