Skip to content

Commit

Permalink
fix the issue with date text not displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
plq committed Mar 6, 2012
1 parent 010f1b7 commit c880772
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
33 changes: 16 additions & 17 deletions examples/multiple_protocols/clock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions examples/multiple_protocols/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def serialize(self, ctx, message):

d = ctx.out_object[0] # this has to be a datetime.datetime() instance.

ctx.out_body_doc.xpath("//x:flowPara[@id='date_text']", namespaces=ns)[0] \
ctx.out_body_doc.xpath("//x:tspan[@id='date_text']", namespaces=ns)[0] \
.text = '%04d-%02d-%02d' % (d.year, d.month, d.day)

yelkovan_deg = d.minute * 360 / 60;
Expand Down Expand Up @@ -102,7 +102,7 @@ def create_out_string(self, ctx, charset=None):

pixbuf = h.get_pixbuf()

ctx.out_string= []
ctx.out_string = []

def cb(buf, data=None):
ctx.out_string.append(buf)
Expand Down

0 comments on commit c880772

Please sign in to comment.