Permalink
Browse files

Created the examples/misc and moved some examples to this new directory

  • Loading branch information...
1 parent f63ba48 commit 9f5e27547b8875cc874f3412faf96d18894e03bf @keesbos keesbos committed Apr 23, 2011
Showing with 68 additions and 124 deletions.
  1. +11 −0 examples/README
  2. +2 −0 examples/__main__.py
  3. +7 −0 examples/_examples/util.py
  4. +6 −0 examples/deprecated/README
  5. +0 −102 examples/index.html
  6. +3 −0 examples/misc/README
  7. 0 examples/{ → misc}/djangotasks/AUTHORS
  8. 0 examples/{ → misc}/djangotasks/README
  9. 0 examples/{ → misc}/djangotasks/__init__.py
  10. +5 −3 examples/{ → misc}/djangotasks/__main__.py
  11. 0 examples/{ → misc}/djangotasks/manage.py
  12. 0 examples/{ → misc}/djangotasks/media/TodoApp.html
  13. 0 examples/{ → misc}/djangotasks/media/TodoApp.py
  14. 0 examples/{ → misc}/djangotasks/media/build.sh
  15. 0 examples/{ → misc}/djangotasks/settings.py
  16. 0 examples/{ → misc}/djangotasks/todo/__init__.py
  17. 0 examples/{ → misc}/djangotasks/todo/models.py
  18. 0 examples/{ → misc}/djangotasks/todo/views.py
  19. 0 examples/{ → misc}/djangotasks/urls.py
  20. 0 examples/{ → misc}/djangowanted/__init__.py
  21. +7 −4 examples/{ → misc}/djangowanted/__main__.py
  22. 0 examples/{ → misc}/djangowanted/djangowanted.wsgi
  23. 0 examples/{ → misc}/djangowanted/djangowantedforms.wsgi
  24. 0 examples/{ → misc}/djangowanted/djangowantedindex.wsgi
  25. 0 examples/{ → misc}/djangowanted/localmanage.py
  26. 0 examples/{ → misc}/djangowanted/localsettings.py
  27. 0 examples/{ → misc}/djangowanted/localurls.py
  28. 0 examples/{ → misc}/djangowanted/manage.py
  29. 0 examples/{ → misc}/djangowanted/media/HTMLDialog.py
  30. 0 examples/{ → misc}/djangowanted/media/HTMLLinkPanel.py
  31. 0 examples/{ → misc}/djangowanted/media/Popups.py
  32. 0 examples/{ → misc}/djangowanted/media/WebPage.py
  33. 0 examples/{ → misc}/djangowanted/media/WebPageEdit.py
  34. 0 examples/{ → misc}/djangowanted/media/build.sh
  35. 0 examples/{ → misc}/djangowanted/media/public/WebPage.css
  36. 0 examples/{ → misc}/djangowanted/media/public/fckconfig.js
  37. 0 examples/{ → misc}/djangowanted/media/public/index.html
  38. 0 examples/{ → misc}/djangowanted/media/public/pyjdblank.html
  39. 0 examples/{ → misc}/djangowanted/settings.py
  40. 0 examples/{ → misc}/djangowanted/templates/index.html
  41. 0 examples/{ → misc}/djangowanted/test_add_flagtypes.sh
  42. 0 examples/{ → misc}/djangowanted/test_forms.sh
  43. 0 examples/{ → misc}/djangowanted/testjsonrpc.py
  44. 0 examples/{ → misc}/djangowanted/urls.py
  45. 0 examples/{ → misc}/djangowanted/wanted/__init__.py
  46. 0 examples/{ → misc}/djangowanted/wanted/forms.py
  47. 0 examples/{ → misc}/djangowanted/wanted/jsonrpc.py
  48. 0 examples/{ → misc}/djangowanted/wanted/models.py
  49. 0 examples/{ → misc}/djangowanted/wanted/views.py
  50. 0 examples/{ → misc}/djangoweb/AUTHORS
  51. 0 examples/{ → misc}/djangoweb/README
  52. 0 examples/{ → misc}/djangoweb/__init__.py
  53. +7 −4 examples/{ → misc}/djangoweb/__main__.py
  54. 0 examples/{ → misc}/djangoweb/djangoweb.wsgi
  55. 0 examples/{ → misc}/djangoweb/djangowebindex.wsgi
  56. 0 examples/{ → misc}/djangoweb/localsettings.py
  57. 0 examples/{ → misc}/djangoweb/localurls.py
  58. 0 examples/{ → misc}/djangoweb/manage.py
  59. 0 examples/{ → misc}/djangoweb/media/Email.py
  60. 0 examples/{ → misc}/djangoweb/media/HTMLDialog.py
  61. 0 examples/{ → misc}/djangoweb/media/HTMLLinkPanel.py
  62. 0 examples/{ → misc}/djangoweb/media/Popups.py
  63. 0 examples/{ → misc}/djangoweb/media/WebPage.py
  64. 0 examples/{ → misc}/djangoweb/media/WebPageEdit.py
  65. 0 examples/{ → misc}/djangoweb/media/build.sh
  66. 0 examples/{ → misc}/djangoweb/media/public/WebPage.css
  67. 0 examples/{ → misc}/djangoweb/media/public/fckconfig.js
  68. 0 examples/{ → misc}/djangoweb/media/public/index.html
  69. 0 examples/{ → misc}/djangoweb/settings.py
  70. 0 examples/{ → misc}/djangoweb/templates/index.html
  71. 0 examples/{ → misc}/djangoweb/urls.py
  72. 0 examples/{ → misc}/djangoweb/webpages/__init__.py
  73. 0 examples/{ → misc}/djangoweb/webpages/jsonrpc.py
  74. 0 examples/{ → misc}/djangoweb/webpages/models.py
  75. 0 examples/{ → misc}/djangoweb/webpages/views.py
  76. 0 examples/{ → misc}/flowplayer/README
  77. 0 examples/{ → misc}/flowplayer/__init__.py
  78. 0 examples/{ → misc}/flowplayer/__main__.py
  79. +1 −1 examples/{ → misc}/flowplayer/build.sh
  80. 0 examples/{ → misc}/flowplayer/fp.py
  81. 0 examples/{ → misc}/flowplayer/server.py
  82. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/LICENSE
  83. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/README
  84. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/__init__.py
  85. +1 −1 examples/{ → misc}/gaedjangononrelpuremvcblog/__main__.py
  86. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/app.yaml
  87. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/cron.yaml
  88. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/index.yaml
  89. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/manage.py
  90. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/Blog.py
  91. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/build.sh
  92. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/components.py
  93. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/controller.py
  94. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/model.py
  95. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/public/Blog.css
  96. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/public/Blog.html
  97. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/view.py
  98. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/media/vo.py
  99. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/post/__init__.py
  100. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/post/jsonrpc.py
  101. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/post/models.py
  102. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/post/views.py
  103. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/settings.py
  104. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/templates/index.html
  105. 0 examples/{ → misc}/gaedjangononrelpuremvcblog/urls.py
  106. 0 examples/{ → misc}/pywebgtkbuilder/AutoGtk.py
  107. +12 −3 examples/{ → misc}/pywebgtkbuilder/__main__.py
  108. +2 −0 examples/misc/pywebgtkbuilder/build.sh
  109. 0 examples/{ → misc}/pywebgtkbuilder/public/AutoGtk.html
  110. 0 examples/{ → misc}/pywebgtkbuilder/public/address_form.ui
  111. 0 examples/{ → misc}/scoping/Foo.py
  112. 0 examples/{ → misc}/scoping/Scope.html
  113. 0 examples/{ → misc}/scoping/Scope.py
  114. 0 examples/{ → misc}/scoping/__main__.py
  115. +2 −0 examples/misc/scoping/build.sh
  116. 0 examples/{ → misc}/simplewiki/AUTHORS
  117. 0 examples/{ → misc}/simplewiki/JsonHandler.py
  118. 0 examples/{ → misc}/simplewiki/README
  119. 0 examples/{ → misc}/simplewiki/Wiki.html
  120. 0 examples/{ → misc}/simplewiki/Wiki.py
  121. 0 examples/{ → misc}/simplewiki/__main__.py
  122. +1 −1 examples/{ → misc}/simplewiki/build.sh
  123. 0 examples/{ → misc}/simplewiki/markdown.py
  124. 0 examples/{ → misc}/simplewiki/server.py
  125. 0 examples/{ → misc}/swfupload/README
  126. 0 examples/{ → misc}/swfupload/__init__.py
  127. 0 examples/{ → misc}/swfupload/__main__.py
  128. +1 −1 examples/{ → misc}/swfupload/build.sh
  129. 0 examples/{ → misc}/swfupload/server.py
  130. 0 examples/{ → misc}/swfupload/swfu.py
  131. +0 −2 examples/pywebgtkbuilder/build.sh
  132. +0 −2 examples/scoping/build.sh
View
@@ -10,3 +10,14 @@ the pyjamas root. To build a specific example, execute 'python dirname'
If you've got a python version older than 2.6, you'll have to add
'/__main__.py' to the command (e.g. 'python ./__main__.py')
+
+The examples in this directory should be runnable right away (after
+compiling of course) from an apache server (some need some apache
+settings/configuration).
+
+In the misc directory you'll find examples that need additional steps
+(e.g. setting up a server) or are more for displaying certain
+coding/compiling features than showing some ui related features.
+
+In the deprecated directory contains examples that are not maintained
+(anymore).
View
@@ -18,6 +18,8 @@
if not head:
head = '.'
paths = [head]
+if opts.misc:
+ paths.append(os.path.join(head, 'misc'))
if opts.deprecated:
paths.append(os.path.join(head, 'deprecated'))
@@ -217,6 +217,13 @@ def get_optparser():
help='permit downloads of files or libraries',
)
add_option(
+ '--misc',
+ dest='misc',
+ action='store_true',
+ default=False,
+ help='build miscellaneous examples',
+ )
+ add_option(
'--deprecated',
dest='deprecated',
action='store_true',
@@ -0,0 +1,6 @@
+All examples in the deprecated are (guess what?) deprecated. This means that
+they might work but don't have to. They are also not tested for releases or
+whatsoever. Moreover, they might work for one browser and fail for another.
+
+Updates/fixes are welcome and might change the status from deprecated to
+maintained.
View
@@ -156,36 +156,6 @@ <h3 class='desc'>Calendar usage</h3>
<h4 class='source'><a href="datefield/">source directory</a> (datefield)<h4>
<hr/>
-<!-- start djangotasks {example.djangotasks._comment_end}
- <h2 class='title'>{example.djangotasks.title}</h2>
- <h3 class='desc'>{example.djangotasks.desc}</h3>
- <ul class='demos'>
- {example.djangotasks.demos}
- </ul>
-{example.djangotasks._comment_start} -->
- <h4 class='source'><a href="djangotasks/">source directory</a> (djangotasks)<h4>
-
- <hr/>
-<!-- start djangowanted {example.djangowanted._comment_end}
- <h2 class='title'>{example.djangowanted.title}</h2>
- <h3 class='desc'>{example.djangowanted.desc}</h3>
- <ul class='demos'>
- {example.djangowanted.demos}
- </ul>
-{example.djangowanted._comment_start} -->
- <h4 class='source'><a href="djangowanted/">source directory</a> (djangowanted)<h4>
-
- <hr/>
-<!-- start djangoweb {example.djangoweb._comment_end}
- <h2 class='title'>{example.djangoweb.title}</h2>
- <h3 class='desc'>{example.djangoweb.desc}</h3>
- <ul class='demos'>
- {example.djangoweb.demos}
- </ul>
-{example.djangoweb._comment_start} -->
- <h4 class='source'><a href="djangoweb/">source directory</a> (djangoweb)<h4>
-
- <hr/>
<!-- start dnd -->
<h2 class='title'>Drag and Drop Tests</h2>
<h3 class='desc'>Several tests of pyjamas drag and drop</h3>
@@ -234,18 +204,6 @@ <h3 class='desc'>(unknown)</h3>
<h4 class='source'><a href="flowpanel/">source directory</a> (flowpanel)<h4>
<hr/>
-<!-- start flowplayer -->
- <h2 class='title'>FlowPlayer</h2>
- <h3 class='desc'>Use of flash component flowplayer</h3>
- <ul class='demos'>
-
- <li class='demo'>(demo) <a href="flowplayer/output/fp.html">fp</a></li>
-
- </ul>
-<!-- -->
- <h4 class='source'><a href="flowplayer/">source directory</a> (flowplayer)<h4>
-
- <hr/>
<!-- start formpanel -->
<h2 class='title'>Form Panel</h2>
<h3 class='desc'>FormPanel example</h3>
@@ -270,18 +228,6 @@ <h3 class='desc'>(unknown)</h3>
<h4 class='source'><a href="funnysortedgridthing/">source directory</a> (funnysortedgridthing)<h4>
<hr/>
-<!-- start gaedjangononrelpuremvcblog -->
- <h2 class='title'>GAE django-nonrel puremvc blog</h2>
- <h3 class='desc'>Combines concepts from django-nonrel, puremvc and google app engine.</h3>
- <ul class='demos'>
-
- <li class='demo'>(demo) <a href="gaedjangononrelpuremvcblog/output/Blog.html">Blog</a></li>
-
- </ul>
-<!-- -->
- <h4 class='source'><a href="gaedjangononrelpuremvcblog/">source directory</a> (gaedjangononrelpuremvcblog)<h4>
-
- <hr/>
<!-- start gcharttestapp -->
<h2 class='title'>GChart Test</h2>
<h3 class='desc'>Port of GChart Example</h3>
@@ -558,18 +504,6 @@ <h3 class='desc'>Access RESTful services such as google provide with their gdata
<h4 class='source'><a href="picasaweb/">source directory</a> (picasaweb)<h4>
<hr/>
-<!-- start pywebgtkbuilder -->
- <h2 class='title'>pywebgtkbuilder</h2>
- <h3 class='desc'>Python Web-Gtk "GtkBuilder" example</h3>
- <ul class='demos'>
-
- <li class='demo'>(demo) <a href="pywebgtkbuilder/output/AutoGtk.html">AutoGtk</a></li>
-
- </ul>
-<!-- -->
- <h4 class='source'><a href="pywebgtkbuilder/">source directory</a> (pywebgtkbuilder)<h4>
-
- <hr/>
<!-- start raphael -->
<h2 class='title'>raphael</h2>
<h3 class='desc'>Raphael JS wrapper example</h3>
@@ -582,18 +516,6 @@ <h3 class='desc'>Raphael JS wrapper example</h3>
<h4 class='source'><a href="raphael/">source directory</a> (raphael)<h4>
<hr/>
-<!-- start scoping -->
- <h2 class='title'>Scope</h2>
- <h3 class='desc'>Scope example</h3>
- <ul class='demos'>
-
- <li class='demo'>(demo) <a href="scoping/output/Scope.html">Scope</a></li>
-
- </ul>
-<!-- -->
- <h4 class='source'><a href="scoping/">source directory</a> (scoping)<h4>
-
- <hr/>
<!-- start shell -->
<h2 class='title'>shell</h2>
<h3 class='desc'>Shell / Window example</h3>
@@ -616,18 +538,6 @@ <h3 class='desc'>Showcase example</h3>
<h4 class='source'><a href="showcase/">source directory</a> (showcase)<h4>
<hr/>
-<!-- start simplewiki -->
- <h2 class='title'>simplewiki</h2>
- <h3 class='desc'>Simple Wiki example</h3>
- <ul class='demos'>
-
- <li class='demo'>(demo) <a href="simplewiki/output/Wiki.html">Wiki</a></li>
-
- </ul>
-<!-- -->
- <h4 class='source'><a href="simplewiki/">source directory</a> (simplewiki)<h4>
-
- <hr/>
<!-- start slideshow -->
<h2 class='title'>slideshow</h2>
<h3 class='desc'>Slideshow example</h3>
@@ -664,18 +574,6 @@ <h3 class='desc'>svg test example</h3>
<h4 class='source'><a href="svgtest/">source directory</a> (svgtest)<h4>
<hr/>
-<!-- start swfupload -->
- <h2 class='title'>swfupload</h2>
- <h3 class='desc'>swfupload example</h3>
- <ul class='demos'>
-
- <li class='demo'>(demo) <a href="swfupload/output/swfu.html">swfu</a></li>
-
- </ul>
-<!-- -->
- <h4 class='source'><a href="swfupload/">source directory</a> (swfupload)<h4>
-
- <hr/>
<!-- start tabpanelwidget -->
<h2 class='title'>tabpanelwidget</h2>
<h3 class='desc'>Tab Panel example</h3>
View
@@ -0,0 +1,3 @@
+This directory contains examples that need either a specific server
+or other additional software, or are more for explaining certain coding
+of compiling features.
File renamed without changes.
File renamed without changes.
@@ -2,9 +2,11 @@
# -*- coding: utf-8 -*-
-TARGETS = [
- 'TodoApp.py',
-]
+TARGETS = {
+ 'TodoApp.py': dict(
+ path='media',
+ ),
+}
PACKAGE = {
File renamed without changes.
@@ -3,10 +3,13 @@
TARGETS = {
- 'WebPage.py': dict(options=[
- '--bootstrap-file=bootstrap_progress.js',
- '--include-js=public/fckeditor/fckeditor.js',
- ])
+ 'WebPage.py': dict(
+ path='media',
+ options=[
+ '--bootstrap-file=bootstrap_progress.js',
+ '--include-js=public/fckeditor/fckeditor.js',
+ ],
+ )
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -3,10 +3,13 @@
TARGETS = {
- 'WebPage.py': dict(options=[
- '--bootstrap-file=bootstrap_progress.js',
- '--include-js=public/fckeditor/fckeditor.js',
- ]),
+ 'WebPage.py': dict(
+ path='media',
+ options=[
+ '--bootstrap-file=bootstrap_progress.js',
+ '--include-js=public/fckeditor/fckeditor.js',
+ ],
+ ),
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,6 @@
#!/bin/sh
-PYJSBUILD="../../bin/pyjsbuild"
+PYJSBUILD="../../../bin/pyjsbuild"
options="$*"
#if [ -z $options ] ; then options="-O";fi
File renamed without changes.
File renamed without changes.
@@ -4,7 +4,7 @@
import os.path
head = os.path.dirname(__file__)
-puremvc = os.path.join(head, '..', 'employeeadmin')
+puremvc = os.path.join(head, '..', '..', 'employeeadmin')
TARGETS = {
'Blog.py': dict(
@@ -1,10 +1,19 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
+import os
+
+head = os.path.dirname(__file__)
+pygtkweb = os.path.join(head, '..', '..', '..', 'pygtkweb')
-TARGETS = [
- 'AutoGtk.py',
-]
+TARGETS = {
+ 'AutoGtk.py': dict(
+ options=[
+ '--library_dir',
+ os.path.join(pygtkweb, 'library'),
+ ],
+ )
+}
PACKAGE = {
@@ -0,0 +1,2 @@
+#!/bin/sh
+../../../bin/pyjsbuild --library_dir=../../../pygtkweb/library $@ AutoGtk
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,2 @@
+#!/bin/sh
+../../../bin/pyjsbuild $@ Scope
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -6,5 +6,5 @@ ln -s ./output ./static
options="$*"
#if [ -z $options ] ; then options="-O";fi
-../../bin/pyjsbuild --print-statements $options Wiki
+../../../bin/pyjsbuild --print-statements $options Wiki
File renamed without changes.
File renamed without changes.
@@ -1,6 +1,6 @@
#!/bin/sh
-PYJSBUILD="../../bin/pyjsbuild"
+PYJSBUILD="../../../bin/pyjsbuild"
options="$*"
#if [ -z $options ] ; then options="-O";fi
File renamed without changes.
File renamed without changes.
@@ -1,2 +0,0 @@
-#!/bin/sh
-../../bin/pyjsbuild $@ AutoGtk
@@ -1,2 +0,0 @@
-#!/bin/sh
-../../bin/pyjsbuild $@ Scope

0 comments on commit 9f5e275

Please sign in to comment.