Skip to content
Browse files

added example showing how to update task presenter

  • Loading branch information...
1 parent c1e90d5 commit 19ffea4c28dbfcb7f7735cad37e6ed8089978348 @gka gka committed Dec 10, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 README
View
9 README
@@ -28,11 +28,18 @@ Create an application::
Change the long description of an app::
- app = pbclient.find_app(short_name='flickrperson')
+ app = pbclient.find_app(short_name='flickrperson')[0]
app.long_description = open('longdesc.html').read()
pbclient.update_app(app)
+Replace the task presenter template::
+
+ app = pbclient.find_app(short_name='flickrperson')[0]
+ app.info['task_presenter'] = open('presenter.html').read()
+
+ pbclient.update_app(app)
+
Create a new task::
task_info = {

0 comments on commit 19ffea4

Please sign in to comment.
Something went wrong with that request. Please try again.